Public Member Functions | |
partial ($name=null, $module=null, $model=null) | |
cloneView () | |
setObjectKey ($key) | |
getObjectKey () | |
Protected Attributes | |
$_objectKey |
Definition at line 34 of file Partial.php.
cloneView | ( | ) |
getObjectKey | ( | ) |
Retrieve object key
The objectKey is the variable to which an object in the iterator will be assigned.
Definition at line 143 of file Partial.php.
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 |
Definition at line 64 of file Partial.php.
setObjectKey | ( | $ | key ) |
Set object key
string | $key |
Definition at line 124 of file Partial.php.