Perforce Chronicle 2012.2/486814
API Documentation
|
Derivative of dojo view helper designed that provides control over what dojo elements are rendered. More...
Public Member Functions | |
__construct () | |
Use our configurable dojo container helper. | |
dojo ($elements=null) | |
Set elements to render. | |
getContainer () | |
Retrieve dojo view helper container (holds dojo data and rendering logic). | |
setContainer ($container) | |
Retrieve dojo view helper container (holds dojo data and rendering logic). |
Derivative of dojo view helper designed that provides control over what dojo elements are rendered.
P4Cms_View_Helper_Dojo::__construct | ( | ) |
Use our configurable dojo container helper.
{ $registry = Zend_Registry::getInstance(); if (!isset($registry[__CLASS__])) { require_once 'P4Cms/View/Helper/Dojo/Container.php'; $container = new P4Cms_View_Helper_Dojo_Container(); $registry[__CLASS__] = $container; } $this->_container = $registry[__CLASS__]; }
P4Cms_View_Helper_Dojo::dojo | ( | $ | elements = null | ) |
Set elements to render.
array | $elements | Optional elements to render |
{ if ($elements !== null) { $this->_container->setRender((array) $elements); } else { $this->_container->setRender( array( 'config', 'scriptTag', 'extras', 'layers', 'stylesheets' ) ); } return parent::dojo(); }
P4Cms_View_Helper_Dojo::getContainer | ( | ) |
Retrieve dojo view helper container (holds dojo data and rendering logic).
{
return $this->_container;
}
P4Cms_View_Helper_Dojo::setContainer | ( | $ | container | ) |
Retrieve dojo view helper container (holds dojo data and rendering logic).
Zend_Dojo_View_Helper_Dojo_Container | $container | the container to use. |
{
$this->_container = $container;
return $this;
}