Zend\View\Helper\PartialLoop
Helper for rendering a template fragment in its own variable scope; iterates over data provided and renders for each iteration.
Synopsis
class PartialLoop
extends Partial
{
- // members
- protected integer $partialCounter;
- // Inherited members from Partial
- protected string $objectKey;
- // Inherited members from AbstractHelper
- protected RendererInterface $view;
- // methods
- public string __invoke()
- public int getPartialCounter()
- // Inherited methods from Partial
- public string|Partial __invoke()
- public Partial setObjectKey()
- public null|string getObjectKey()
- // Inherited methods from AbstractHelper
- public AbstractHelper setView()
- public null|Renderer getView()
Hierarchy
Extends
Members
protected
- $objectKey
—
string
Variable to which object will be assigned - $partialCounter
—
int
Marker to where the pointer is at in the loop - $view
—
Zend\View\Renderer\RendererInterface
View object instance
Methods
public
- __invoke() — Renders a template fragment within a variable scope distinct from the calling View object.
- getPartialCounter() — Get the partial counter
Inherited from Zend\View\Helper\Partial
public
- __invoke() — Renders a template fragment within a variable scope distinct from the calling View object. It proxies to view's render function
- getObjectKey() — Retrieve object key
- setObjectKey() — Set object key