Class Zend_View_Helper_Partial

Description

Helper for rendering a template fragment in its own variable scope.

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /View/Helper/Partial.php (line 34)

Zend_View_Helper_Abstract
   |
   --Zend_View_Helper_Partial
Direct descendents
Class Description
 class Zend_View_Helper_PartialLoop Helper for rendering a template fragment in its own variable scope; iterates over data provided and renders for each iteration.
Variable Summary
 string $_objectKey
Method Summary
 null|string getObjectKey ()
 string|Zend_View_Helper_Partial partial ([string $name = null], [string|array $module = null], [array $model = null])
Variables
string $_objectKey (line 40)

Variable to which object will be assigned

  • access: protected

Inherited Variables

Inherited from Zend_View_Helper_Abstract

Zend_View_Helper_Abstract::$view
Methods
cloneView (line 113)

Clone the current View

  • access: public
Zend_View_Interface cloneView ()
getObjectKey (line 145)

Retrieve object key

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

  • access: public
null|string getObjectKey ()
partial (line 64)

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.

  • access: public
string|Zend_View_Helper_Partial partial ([string $name = null], [string|array $module = null], [array $model = null])
  • 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 (line 126)

Set object key

  • access: public
Zend_View_Helper_Partial setObjectKey (string $key)
  • string $key

Inherited Methods

Inherited From Zend_View_Helper_Abstract

 Zend_View_Helper_Abstract::direct()
 Zend_View_Helper_Abstract::setView()

Documentation generated on Mon, 21 Jun 2010 15:37:39 -0400 by phpDocumentor 1.4.3