00001 <?php 00024 require_once 'Zend/View/Helper/Placeholder/Registry.php'; 00025 00027 require_once 'Zend/View/Helper/Abstract.php'; 00028 00040 class Zend_View_Helper_Placeholder extends Zend_View_Helper_Abstract 00041 { 00046 protected $_items = array(); 00047 00051 protected $_registry; 00052 00060 public function __construct() 00061 { 00062 $this->_registry = Zend_View_Helper_Placeholder_Registry::getRegistry(); 00063 } 00064 00065 00072 public function placeholder($name) 00073 { 00074 $name = (string) $name; 00075 return $this->_registry->getContainer($name); 00076 } 00077 00083 public function getRegistry() 00084 { 00085 return $this->_registry; 00086 } 00087 }