Mage_Core_Block_Template_Zend Class Reference

Inheritance diagram for Mage_Core_Block_Template_Zend:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 _construct ()
 assign ($key, $value=null)
 setScriptPath ($dir)
 fetchView ($fileName)

Protected Attributes

 $_view = null


Detailed Description

Definition at line 35 of file Zend.php.


Member Function Documentation

_construct (  ) 

Class constructor. Base html block

Parameters:
none 
Returns:
void

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 46 of file Zend.php.

00047     {
00048         parent::_construct();
00049         $this->_view = new Zend_View();
00050     }

assign ( key,
value = null 
)

Assign variable

Parameters:
string|array $key
mixed $value
Returns:
Mage_Core_Block_Template

Reimplemented from Mage_Core_Block_Template.

Definition at line 52 of file Zend.php.

00053     {
00054         if (is_array($key) && is_null($value)) {
00055             foreach ($key as $k=>$v) {
00056                 $this->assign($k, $v);
00057             }
00058         } elseif (!is_null($value)) {
00059             $this->_view->assign($key, $value);
00060         }
00061         return $this;
00062     }

fetchView ( fileName  ) 

Retrieve block view from file (template)

Parameters:
string $fileName
Returns:
string

Reimplemented from Mage_Core_Block_Template.

Definition at line 69 of file Zend.php.

00070     {
00071         return $this->_view->render($fileName);
00072     }

setScriptPath ( dir  ) 

Set template location dire

Parameters:
string $dir
Returns:
Mage_Core_Block_Template

Reimplemented from Mage_Core_Block_Template.

Definition at line 64 of file Zend.php.

00065     {
00066         $this->_view->setScriptPath($dir.DS);
00067     }


Member Data Documentation

$_view = null [protected]

Definition at line 38 of file Zend.php.


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

Generated on Sat Jul 4 17:23:54 2009 for Magento by  doxygen 1.5.8