Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
PartialLoop Class Reference

Helper for rendering a template fragment in its own variable scope; iterates over data provided and renders for each iteration. More...

Public Member Functions

 __invoke ($name=null, $values=null)
 Renders a template fragment within a variable scope distinct from the calling View object.
 
 loop ($name=null, $values=null)
 Renders a template fragment within a variable scope distinct from the calling View object.
 
 getPartialCounter ()
 Get the partial counter.
 
 setObjectKey ($key)
 Set object key in this loop and any child loop.
 
- Public Member Functions inherited from Partial
 __invoke ($name=null, $values=null)
 Renders a template fragment within a variable scope distinct from the calling View object.
 
 setObjectKey ($key)
 Set object key.
 
 getObjectKey ()
 Retrieve object key.
 
- Public Member Functions inherited from AbstractHelper
 setView (Renderer $view)
 Set the View object.
 
 getView ()
 Get the view object.
 

Protected Attributes

 $partialCounter = 0
 
- Protected Attributes inherited from Partial
 $objectKey
 
- Protected Attributes inherited from AbstractHelper
 $view = null
 

Detailed Description

Helper for rendering a template fragment in its own variable scope; iterates over data provided and renders for each iteration.

Member Function Documentation

__invoke (   $name = null,
  $values = null 
)

Renders a template fragment within a variable scope distinct from the calling View object.

If no arguments are provided, returns object instance.

Parameters
string$nameName of view script
array$valuesVariables to populate in the view
Exceptions
Exception\InvalidArgumentException
Returns
string
getPartialCounter ( )

Get the partial counter.

Returns
int
loop (   $name = null,
  $values = null 
)

Renders a template fragment within a variable scope distinct from the calling View object.

Parameters
string$nameName of view script
array$valuesVariables to populate in the view
Exceptions
Exception\InvalidArgumentException
Returns
string
setObjectKey (   $key)

Set object key in this loop and any child loop.

Parameters
string | null$key
Returns
self

Member Data Documentation

$partialCounter = 0
protected