View/Helper/Placeholder/Container/Abstract.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_View
- Subpackage
- Helper
- Version
- $Id$
\Zend_View_Helper_Placeholder_Container_Abstract
Package: Zend_View\Helper












Returns
Abstract class representing container for placeholder values
- Parent(s)
- \ArrayObject
- Children
- \Zend_View_Helper_Placeholder_Container
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties

bool $_captureLock = falseWhether or not we're already capturing for this given container
Default value
falseDetails- Type
- bool

string $_indent = ''What string to use as the indentation of output, this will typically be spaces. Eg: ' '
Default value
''Details- Type
- string

string $_postfix = ''What text to append the placeholder with when rendering
Default value
''Details- Type
- string

string $_prefix = ''What text to prefix the placeholder with when rendering
Default value
''Details- Type
- string
Methods

__construct() : \Zend_View_Helper_Placeholder_Container_AbstractConstructor - This is needed so that we can attach a class member as the ArrayObject container
Returns
| Type | Description |
|---|---|
| \Zend_View_Helper_Placeholder_Container_Abstract |

captureStart(int | string $type = \Zend_View_Helper_Placeholder_Container_Abstract::APPEND, null $key = null) : voidStart capturing content to push into placeholder
Parameters
Throws
| Name | Type | Description |
|---|---|---|
| $type | int | string | How to capture content into placeholder; append, prepend, or set |
| $key | null |
| Exception | Description |
|---|---|
| \Zend_View_Helper_Placeholder_Container_Exception |

getValue() : mixedRetrieve container value
If single element registered, returns that element; otherwise,
serializes to array.
Returns| Type | Description |
|---|---|
| mixed |

getWhitespace(int | string $indent) : stringRetrieve whitespace representation of $indent
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $indent | int | string |
| Type | Description |
|---|---|
| string |

prepend(mixed $value) : voidPrepend a value to the top of the container
Parameters
| Name | Type | Description |
|---|---|---|
| $value | mixed |

setIndent(string | int $indent) : \Zend_View_Helper_Placeholder_Container_AbstractSet the indentation string for __toString() serialization, optionally, if a number is passed, it will be the number of spaces
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $indent | string | int |
| Type | Description |
|---|---|
| \Zend_View_Helper_Placeholder_Container_Abstract |

setPostfix(string $postfix) : \Zend_View_Helper_Placeholder_ContainerSet postfix for __toString() serialization
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $postfix | string |
| Type | Description |
|---|---|
| \Zend_View_Helper_Placeholder_Container |

setPrefix(string $prefix) : \Zend_View_Helper_Placeholder_ContainerSet prefix for __toString() serialization
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $prefix | string |
| Type | Description |
|---|---|
| \Zend_View_Helper_Placeholder_Container |

setSeparator(string $separator) : \Zend_View_Helper_Placeholder_ContainerSet separator for __toString() serialization
Used to implode elements in container
Parameters| Name | Type | Description |
|---|---|---|
| $separator | string |
| Type | Description |
|---|---|
| \Zend_View_Helper_Placeholder_Container |