Zend Framework
1.12
|
Public Member Functions | |
partial ($name=null, $module=null, $model=null) | |
Renders a template fragment within a variable scope distinct from the calling View object. | |
cloneView () | |
Clone the current View. | |
setObjectKey ($key) | |
Set object key. | |
getObjectKey () | |
Retrieve object key. | |
![]() | |
setView (Zend_View_Interface $view) | |
Set the View object. | |
direct () | |
Strategy pattern: currently unutilized. | |
Protected Attributes | |
$_objectKey | |
Additional Inherited Members | |
![]() | |
$view = null | |
cloneView | ( | ) |
Clone the current View.
getObjectKey | ( | ) |
Retrieve object key.
The objectKey is the variable to which an object in the iterator will be assigned.
partial | ( | $name = null , |
|
$module = null , |
|||
$model = null |
|||
) |
Renders a template fragment within a variable scope distinct from the calling View object.
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 | Name of view script |
string | array | $module | 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 | $model | Variables to populate in the view |
setObjectKey | ( | $key | ) |
|
protected |