Public Member Functions | |
__construct () | |
set ($value) | |
prepend ($value) | |
getValue () | |
setPrefix ($prefix) | |
getPrefix () | |
setPostfix ($postfix) | |
getPostfix () | |
setSeparator ($separator) | |
getSeparator () | |
setIndent ($indent) | |
getIndent () | |
getWhitespace ($indent) | |
captureStart ($type=Zend_View_Helper_Placeholder_Container_Abstract::APPEND, $key=null) | |
captureEnd () | |
getKeys () | |
nextIndex () | |
toString ($indent=null) | |
__toString () | |
Data Fields | |
const | SET = 'SET' |
const | APPEND = 'APPEND' |
const | PREPEND = 'PREPEND' |
Protected Attributes | |
$_prefix = '' | |
$_postfix = '' | |
$_separator = '' | |
$_indent = '' | |
$_captureLock = false | |
$_captureType | |
$_captureKey |
Definition at line 31 of file Abstract.php.
__construct | ( | ) |
Constructor - This is needed so that we can attach a class member as the ArrayObject container
Definition at line 98 of file Abstract.php.
__toString | ( | ) |
captureEnd | ( | ) |
captureStart | ( | $ | type = Zend_View_Helper_Placeholder_Container_Abstract::APPEND , |
$ | key = null |
||
) |
Start capturing content to push into placeholder
int | $type | How to capture content into placeholder; append, prepend, or set |
Zend_View_Helper_Placeholder_Exception | if nested captures detected |
Definition at line 259 of file Abstract.php.
getIndent | ( | ) |
getKeys | ( | ) |
getPostfix | ( | ) |
getPrefix | ( | ) |
getSeparator | ( | ) |
getValue | ( | ) |
Retrieve container value
If single element registered, returns that element; otherwise, serializes to array.
Definition at line 135 of file Abstract.php.
getWhitespace | ( | $ | indent ) |
Retrieve whitespace representation of $indent
int | string | $indent |
Definition at line 243 of file Abstract.php.
nextIndex | ( | ) |
prepend | ( | $ | value ) |
Prepend a value to the top of the container
mixed | $value |
Definition at line 120 of file Abstract.php.
set | ( | $ | value ) |
Set a single value
mixed | $value |
Definition at line 109 of file Abstract.php.
setIndent | ( | $ | indent ) |
Set the indentation string for __toString() serialization, optionally, if a number is passed, it will be the number of spaces
string | int | $indent |
Definition at line 221 of file Abstract.php.
setPostfix | ( | $ | postfix ) |
Set postfix for __toString() serialization
string | $postfix |
Definition at line 174 of file Abstract.php.
setPrefix | ( | $ | prefix ) |
Set prefix for __toString() serialization
string | $prefix |
Definition at line 152 of file Abstract.php.
setSeparator | ( | $ | separator ) |
Set separator for __toString() serialization
Used to implode elements in container
string | $separator |
Definition at line 198 of file Abstract.php.
toString | ( | $ | indent = null ) |
Whether or not to append contents to placeholder string
Definition at line 43 of file Abstract.php.
Whether or not to prepend contents to placeholder string
Definition at line 49 of file Abstract.php.
Whether or not to override all contents of placeholder string
Definition at line 37 of file Abstract.php.