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: Abstract.php 16541 2009-07-07 06:59:03Z bkarwin $
|
||||
* @version $Id: Abstract.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
@ -71,7 +71,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObje
|
||||
* @var string
|
||||
*/
|
||||
protected $_indent = '';
|
||||
|
||||
|
||||
/**
|
||||
* Whether or not we're already capturing for this given container
|
||||
* @var bool
|
||||
@ -89,7 +89,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObje
|
||||
* @var string
|
||||
*/
|
||||
protected $_captureKey;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor - This is needed so that we can attach a class member as the ArrayObject container
|
||||
*
|
||||
@ -99,7 +99,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObje
|
||||
{
|
||||
parent::__construct(array(), parent::ARRAY_AS_PROPS);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set a single value
|
||||
*
|
||||
@ -113,8 +113,8 @@ abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObje
|
||||
|
||||
/**
|
||||
* Prepend a value to the top of the container
|
||||
*
|
||||
* @param mixed $value
|
||||
*
|
||||
* @param mixed $value
|
||||
* @return void
|
||||
*/
|
||||
public function prepend($value)
|
||||
@ -236,8 +236,8 @@ abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObje
|
||||
|
||||
/**
|
||||
* Retrieve whitespace representation of $indent
|
||||
*
|
||||
* @param int|string $indent
|
||||
*
|
||||
* @param int|string $indent
|
||||
* @return string
|
||||
*/
|
||||
public function getWhitespace($indent)
|
||||
@ -248,7 +248,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObje
|
||||
|
||||
return (string) $indent;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Start capturing content to push into placeholder
|
||||
*
|
||||
@ -305,10 +305,10 @@ abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObje
|
||||
case self::APPEND:
|
||||
default:
|
||||
if (null !== $key) {
|
||||
if (empty($this[$key])) {
|
||||
$this[$key] = $data;
|
||||
} else {
|
||||
$this[$key] .= $data;
|
||||
if (empty($this[$key])) {
|
||||
$this[$key] = $data;
|
||||
} else {
|
||||
$this[$key] .= $data;
|
||||
}
|
||||
} else {
|
||||
$this[$this->nextIndex()] = $data;
|
||||
@ -319,7 +319,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObje
|
||||
|
||||
/**
|
||||
* Get keys
|
||||
*
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getKeys()
|
||||
@ -343,7 +343,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObje
|
||||
|
||||
return $nextIndex = max($keys) + 1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Render the placeholder
|
||||
*
|
||||
@ -351,12 +351,12 @@ abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObje
|
||||
*/
|
||||
public function toString($indent = null)
|
||||
{
|
||||
$indent = ($indent !== null)
|
||||
? $this->getWhitespace($indent)
|
||||
$indent = ($indent !== null)
|
||||
? $this->getWhitespace($indent)
|
||||
: $this->getIndent();
|
||||
|
||||
|
||||
$items = $this->getArrayCopy();
|
||||
$return = $indent
|
||||
$return = $indent
|
||||
. $this->getPrefix()
|
||||
. implode($this->getSeparator(), $items)
|
||||
. $this->getPostfix();
|
||||
|
@ -16,7 +16,7 @@
|
||||
* @package Zend_View
|
||||
* @subpackage Helper
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @version $Id: Standalone.php 16541 2009-07-07 06:59:03Z bkarwin $
|
||||
* @version $Id: Standalone.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
@ -33,9 +33,9 @@ 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
|
||||
*/
|
||||
*/
|
||||
abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_View_Helper_Abstract implements IteratorAggregate, Countable, ArrayAccess
|
||||
{
|
||||
{
|
||||
/**
|
||||
* @var Zend_View_Helper_Placeholder_Container_Abstract
|
||||
*/
|
||||
@ -61,7 +61,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
@ -72,7 +72,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Retrieve registry
|
||||
*
|
||||
*
|
||||
* @return Zend_View_Helper_Placeholder_Registry
|
||||
*/
|
||||
public function getRegistry()
|
||||
@ -81,9 +81,9 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
}
|
||||
|
||||
/**
|
||||
* Set registry object
|
||||
*
|
||||
* @param Zend_View_Helper_Placeholder_Registry $registry
|
||||
* Set registry object
|
||||
*
|
||||
* @param Zend_View_Helper_Placeholder_Registry $registry
|
||||
* @return Zend_View_Helper_Placeholder_Container_Standalone
|
||||
*/
|
||||
public function setRegistry(Zend_View_Helper_Placeholder_Registry $registry)
|
||||
@ -94,7 +94,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Set whether or not auto escaping should be used
|
||||
*
|
||||
*
|
||||
* @param bool $autoEscape whether or not to auto escape output
|
||||
* @return Zend_View_Helper_Placeholder_Container_Standalone
|
||||
*/
|
||||
@ -103,7 +103,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
$this->_autoEscape = ($autoEscape) ? true : false;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return whether autoEscaping is enabled or disabled
|
||||
*
|
||||
@ -116,8 +116,8 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Escape a string
|
||||
*
|
||||
* @param string $string
|
||||
*
|
||||
* @param string $string
|
||||
* @return string
|
||||
*/
|
||||
protected function _escape($string)
|
||||
@ -131,8 +131,8 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Set container on which to operate
|
||||
*
|
||||
* @param Zend_View_Helper_Placeholder_Container_Abstract $container
|
||||
*
|
||||
* @param Zend_View_Helper_Placeholder_Container_Abstract $container
|
||||
* @return Zend_View_Helper_Placeholder_Container_Standalone
|
||||
*/
|
||||
public function setContainer(Zend_View_Helper_Placeholder_Container_Abstract $container)
|
||||
@ -143,7 +143,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Retrieve placeholder container
|
||||
*
|
||||
*
|
||||
* @return Zend_View_Helper_Placeholder_Container_Abstract
|
||||
*/
|
||||
public function getContainer()
|
||||
@ -153,9 +153,9 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Overloading: set property value
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @return void
|
||||
*/
|
||||
public function __set($key, $value)
|
||||
@ -166,8 +166,8 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Overloading: retrieve property
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @param string $key
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get($key)
|
||||
@ -182,8 +182,8 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Overloading: check if property is set
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @param string $key
|
||||
* @return bool
|
||||
*/
|
||||
public function __isset($key)
|
||||
@ -194,8 +194,8 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Overloading: unset property
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @param string $key
|
||||
* @return void
|
||||
*/
|
||||
public function __unset($key)
|
||||
@ -210,9 +210,9 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
* Overload
|
||||
*
|
||||
* Proxy to container methods
|
||||
*
|
||||
* @param string $method
|
||||
* @param array $args
|
||||
*
|
||||
* @param string $method
|
||||
* @param array $args
|
||||
* @return mixed
|
||||
*/
|
||||
public function __call($method, $args)
|
||||
@ -233,7 +233,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* String representation
|
||||
*
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function toString()
|
||||
@ -243,7 +243,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Cast to string representation
|
||||
*
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
@ -253,7 +253,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* Countable
|
||||
*
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function count()
|
||||
@ -264,8 +264,8 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* ArrayAccess: offsetExists
|
||||
*
|
||||
* @param string|int $offset
|
||||
*
|
||||
* @param string|int $offset
|
||||
* @return bool
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
@ -275,8 +275,8 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* ArrayAccess: offsetGet
|
||||
*
|
||||
* @param string|int $offset
|
||||
*
|
||||
* @param string|int $offset
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
@ -286,9 +286,9 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* ArrayAccess: offsetSet
|
||||
*
|
||||
* @param string|int $offset
|
||||
* @param mixed $value
|
||||
*
|
||||
* @param string|int $offset
|
||||
* @param mixed $value
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
@ -298,8 +298,8 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* ArrayAccess: offsetUnset
|
||||
*
|
||||
* @param string|int $offset
|
||||
*
|
||||
* @param string|int $offset
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
@ -309,7 +309,7 @@ abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_Vi
|
||||
|
||||
/**
|
||||
* IteratorAggregate: get Iterator
|
||||
*
|
||||
*
|
||||
* @return Iterator
|
||||
*/
|
||||
public function getIterator()
|
||||
|
Reference in New Issue
Block a user