Helper for rendering a template fragment in its own variable scope; iterates over data provided and renders for each iteration.
package | Zend_View |
---|---|
subpackage | Helper |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_View_Helper_Partial |
cloneView() : \Zend_View_Interface
\Zend_View_Interface
direct() : void
inherited_from | \Zend_View_Helper_Interface::direct() |
---|
getObjectKey() : null | string
The objectKey is the variable to which an object in the iterator will be assigned.
null
string
partial(string $name= null
, string|array $module= null
, array $model= null
) : string | \Zend_View_Helper_Partial
If no arguments are passed, returns the helper instance.
If the $model is an array, it is passed to the view object's assign() method.
If the $model is an object, it first checks to see if the object implements a 'toArray' method; if so, it passes the result of that method to to the view object's assign() method. Otherwise, the result of get_object_vars() is passed.
string
Name of view script
string
array
If $model is empty, and $module is an array, these are the variables to populate in the view. Otherwise, the module in which the partial resides
array
Variables to populate in the view
string
\Zend_View_Helper_Partial
partialLoop(string $name= null
, string|array $module= null
, array $model= null
) : string
If no arguments are provided, returns object instance.
string
Name of view script
string
array
If $model is empty, and $module is an array, these are the variables to populate in the view. Otherwise, the module in which the partial resides
array
Variables to populate in the view
string
setObjectKey(string $key) : \Zend_View_Helper_Partial
string
\Zend_View_Helper_Partial
setView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
inherited_from | \Zend_View_Helper_Interface::setView() |
---|
\Zend_View_Interface
\Zend_View_Helper_Abstract
$view : \Zend_View_Interface
null
$_objectKey : string
$partialCounter : integer
0