Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     $this->setRegistry(IfwPsn_Vendor_Zend_View_Helper_Placeholder_Registry::getRegistry());
     $this->setContainer($this->getRegistry()->getContainer($this->_regKey));
 }
Exemplo n.º 2
0
 /**
  * Placeholder helper
  *
  * @param  string $name
  * @return IfwPsn_Vendor_Zend_View_Helper_Placeholder_Container_Abstract
  */
 public function placeholder($name)
 {
     $name = (string) $name;
     return $this->_registry->getContainer($name);
 }
Exemplo n.º 3
0
 /**
  * Initialize placeholder container for layout vars
  *
  * @return IfwPsn_Vendor_Zend_View_Helper_Placeholder_Container
  */
 protected function _initVarContainer()
 {
     if (null === $this->_container) {
         require_once IFW_PSN_LIB_ROOT . 'IfwPsn/Vendor/Zend/View/Helper/Placeholder/Registry.php';
         $this->_container = IfwPsn_Vendor_Zend_View_Helper_Placeholder_Registry::getRegistry()->getContainer(__CLASS__);
     }
     return $this->_container;
 }