Helper for rendering a template fragment in its own variable scope; iterates
over data provided and renders for each iteration.
Methods
Renders a template fragment within a variable scope distinct from the
calling View object.
__invoke(string $name, array $values) : string
If no arguments are provided, returns object instance.
Parameters
$name
string
Name of view script
$values
array
Variables to populate in the view
Exceptions
Returns
string
Retrieve object key
getObjectKey() : null | string
Inherited
The objectKey is the variable to which an object in the iterator will be
assigned.
inherited_from |
\Zend\View\Helper\Partial::getObjectKey() |
Returns
null
string
Get the partial counter
getPartialCounter() : int
Get the view object
getView() : null | \Zend\View\Renderer\RendererInterface
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::getView() |
inherited_from |
\Zend\View\Helper\Partial::getView() |
Returns
Set object key
setObjectKey(string $key) : \Zend\View\Helper\Partial
Inherited
inherited_from |
\Zend\View\Helper\Partial::setObjectKey() |
Parameters
$key
string
Returns
Set the View object
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::setView() |
inherited_from |
\Zend\View\Helper\Partial::setView() |
Parameters
Returns
Properties
Variable to which object will be assigned
$objectKey : string
Inherited
inherited_from |
\Zend\View\Helper\Partial::$$objectKey |
Marker to where the pointer is at in the loop
$partialCounter : int