/** * Constructor * * @return void */ public function __construct() { $this->setRegistry(IfwPsn_Vendor_Zend_View_Helper_Placeholder_Registry::getRegistry()); $this->setContainer($this->getRegistry()->getContainer($this->_regKey)); }
/** * 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); }
/** * 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; }