Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_View_Helper_Partial Class Reference

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.
 
- Public Member Functions inherited from Zend_View_Helper_Abstract
 setView (Zend_View_Interface $view)
 Set the View object.
 
 direct ()
 Strategy pattern: currently unutilized.
 

Protected Attributes

 $_objectKey
 

Additional Inherited Members

- Public Attributes inherited from Zend_View_Helper_Abstract
 $view = null
 

Member Function Documentation

cloneView ( )

Clone the current View.

Returns
Zend_View_Interface
getObjectKey ( )

Retrieve object key.

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

Returns
null|string
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
setObjectKey (   $key)

Set object key.

Parameters
string$key
Returns
Zend_View_Helper_Partial

Member Data Documentation

$_objectKey
protected