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

Helper for rendering a template fragment in its own variable scope. More...

Public Member Functions

 __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

 $objectKey
 
- Protected Attributes inherited from AbstractHelper
 $view = null
 

Detailed Description

Helper for rendering a template fragment in its own variable scope.

Member Function Documentation

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

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

It proxies to view's render function

Parameters
string | ModelInterface$nameName of view script, or a view model
array | object$valuesVariables to populate in the view
Exceptions
Exception\RuntimeException
Returns
string|Partial
getObjectKey ( )

Retrieve object key.

The objectKey is the variable to which an object in the iterator will be assigned.

Returns
null|string
setObjectKey (   $key)

Set object key.

Parameters
string | null$key
Returns
self

Member Data Documentation

$objectKey
protected