import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
* @package Zend_View
|
||||
* @subpackage Helper
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @version $Id: Placeholder.php 16541 2009-07-07 06:59:03Z bkarwin $
|
||||
* @version $Id: Placeholder.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
@ -36,14 +36,14 @@ require_once 'Zend/View/Helper/Abstract.php';
|
||||
* @subpackage Helper
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
*/
|
||||
class Zend_View_Helper_Placeholder extends Zend_View_Helper_Abstract
|
||||
{
|
||||
{
|
||||
/**
|
||||
* Placeholder items
|
||||
* @var array
|
||||
*/
|
||||
protected $_items = array();
|
||||
*/
|
||||
protected $_items = array();
|
||||
|
||||
/**
|
||||
* @var Zend_View_Helper_Placeholder_Registry
|
||||
@ -54,30 +54,30 @@ class Zend_View_Helper_Placeholder extends Zend_View_Helper_Abstract
|
||||
* Constructor
|
||||
*
|
||||
* Retrieve container registry from Zend_Registry, or create new one and register it.
|
||||
*
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->_registry = Zend_View_Helper_Placeholder_Registry::getRegistry();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Placeholder helper
|
||||
*
|
||||
* @param string $name
|
||||
*
|
||||
* @param string $name
|
||||
* @return Zend_View_Helper_Placeholder_Container_Abstract
|
||||
*/
|
||||
public function placeholder($name)
|
||||
{
|
||||
$name = (string) $name;
|
||||
*/
|
||||
public function placeholder($name)
|
||||
{
|
||||
$name = (string) $name;
|
||||
return $this->_registry->getContainer($name);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the registry
|
||||
*
|
||||
*
|
||||
* @return Zend_View_Helper_Placeholder_Registry
|
||||
*/
|
||||
public function getRegistry()
|
||||
|
Reference in New Issue
Block a user