Public Member Functions | Protected Attributes

Zend_View_Helper_Partial Class Reference

Inheritance diagram for Zend_View_Helper_Partial:
Zend_View_Helper_Abstract Zend_View_Helper_Interface Zend_View_Helper_PartialLoop

Public Member Functions

 partial ($name=null, $module=null, $model=null)
 cloneView ()
 setObjectKey ($key)
 getObjectKey ()

Protected Attributes

 $_objectKey

Detailed Description

Definition at line 34 of file Partial.php.


Member Function Documentation

cloneView (  )

Clone the current View

Returns:
Zend_View_Interface

Definition at line 111 of file Partial.php.

getObjectKey (  )

Retrieve object key

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

Returns:
null|string

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.

Parameters:
string$nameName of view script
string | array$moduleIf $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$modelVariables to populate in the view
Returns:
string|Zend_View_Helper_Partial

Definition at line 64 of file Partial.php.

setObjectKey ( key )

Set object key

Parameters:
string$key
Returns:
Zend_View_Helper_Partial

Definition at line 124 of file Partial.php.


The documentation for this class was generated from the following file: