Abstract class representing container for placeholder values

package Zend_View
subpackage Helper

 Methods

Constructor - This is needed so that we can attach a class member as the ArrayObject container

__construct() 

Serialize object to string

__toString() : string

Returns

string

append()

append() 

inherited_from ArrayObject::append()

asort()

asort() 

inherited_from ArrayObject::asort()

End content capture

captureEnd() : void

Start capturing content to push into placeholder

captureStart(string $type, mixed $key) : void

Parameters

$type

string

How to capture content into placeholder; append, prepend, or set

$key

mixed

Key to which to capture content

Exceptions

\Zend\View\Exception\RuntimeException if nested captures detected

count()

count() 

inherited_from ArrayObject::count()

exchangeArray()

exchangeArray() 

inherited_from ArrayObject::exchangeArray()

getArrayCopy()

getArrayCopy() 

inherited_from ArrayObject::getArrayCopy()

getFlags()

getFlags() 

inherited_from ArrayObject::getFlags()

Retrieve indentation

getIndent() : string

Returns

string

getIterator()

getIterator() 

inherited_from ArrayObject::getIterator()

getIteratorClass()

getIteratorClass() 

inherited_from ArrayObject::getIteratorClass()

Get keys

getKeys() : array

Returns

array

Retrieve postfix

getPostfix() : string

Returns

string

Retrieve prefix

getPrefix() : string

Returns

string

Retrieve separator

getSeparator() : string

Returns

string

Retrieve container value

getValue() : mixed

If single element registered, returns that element; otherwise, serializes to array.

Returns

mixed

Retrieve whitespace representation of $indent

getWhitespace(int | string $indent) : string

Parameters

$indent

intstring

Returns

string

ksort()

ksort() 

inherited_from ArrayObject::ksort()

natcasesort()

natcasesort() 

inherited_from ArrayObject::natcasesort()

natsort()

natsort() 

inherited_from ArrayObject::natsort()

Next Index

nextIndex() : int

as defined by the PHP manual

Returns

int

offsetExists()

offsetExists() 

inherited_from ArrayObject::offsetExists()

offsetGet()

offsetGet() 

inherited_from ArrayObject::offsetGet()

offsetSet()

offsetSet() 

inherited_from ArrayObject::offsetSet()

offsetUnset()

offsetUnset() 

inherited_from ArrayObject::offsetUnset()

Prepend a value to the top of the container

prepend(mixed $value) : void

Parameters

$value

mixed

serialize()

serialize() 

inherited_from ArrayObject::serialize()

Set a single value

set(mixed $value) : void

Parameters

$value

mixed

setFlags()

setFlags() 

inherited_from ArrayObject::setFlags()

Set the indentation string for __toString() serialization, optionally, if a number is passed, it will be the number of spaces

setIndent(string | int $indent) : \Zend\View\Helper\Placeholder\Container\AbstractContainer

Parameters

$indent

stringint

Returns

setIteratorClass()

setIteratorClass() 

inherited_from ArrayObject::setIteratorClass()

Set postfix for __toString() serialization

setPostfix(string $postfix) : \Zend\View\Helper\Placeholder\Container\AbstractContainer

Set prefix for __toString() serialization

setPrefix(string $prefix) : \Zend\View\Helper\Placeholder\Container\AbstractContainer

Set separator for __toString() serialization

setSeparator(string $separator) : \Zend\View\Helper\Placeholder\Container\AbstractContainer

Used to implode elements in container

Parameters

$separator

string

Returns

Render the placeholder

toString(null | int | string $indent) : string

Parameters

$indent

nullintstring

Returns

string

uasort()

uasort() 

inherited_from ArrayObject::uasort()

uksort()

uksort() 

inherited_from ArrayObject::uksort()

unserialize()

unserialize() 

inherited_from ArrayObject::unserialize()

 Properties

 

Key to which to capture content

$captureKey : string

 

Whether or not we're already capturing for this given container

$captureLock : bool

 

What type of capture (overwrite (set), append, prepend) to use

$captureType : string

 

What string to use as the indentation of output, this will typically be spaces.

$indent : string

Eg: ' '

 

What text to append the placeholder with when rendering

$postfix : string

 

What text to prefix the placeholder with when rendering

$prefix : string

 

What string to use between individual items in the placeholder when rendering

$separator : string

 Constants

 

Whether or not to append contents to placeholder

APPEND 

const string
 

Whether or not to prepend contents to placeholder

PREPEND 

const string
 

Whether or not to override all contents of placeholder

SET 

const string