297. Class

297.1. Zend\View\Helper\Placeholder\Container\AbstractContainer

Abstract class representing container for placeholder values

297.1.1. Methods

297.1.1.1. __construct

__construct()

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

297.1.1.2. set

set()

Set a single value

Parameters:mixed
Return type:void

297.1.1.3. prepend

prepend()

Prepend a value to the top of the container

Parameters:mixed
Return type:void

297.1.1.4. getValue

getValue()

Retrieve container value

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

Return type:mixed

297.1.1.5. setPrefix

setPrefix()

Set prefix for __toString() serialization

Parameters:string
Return type:ZendViewHelperPlaceholderContainerAbstractContainer

297.1.1.6. getPrefix

getPrefix()

Retrieve prefix

Return type:string

297.1.1.7. setPostfix

setPostfix()

Set postfix for __toString() serialization

Parameters:string
Return type:ZendViewHelperPlaceholderContainerAbstractContainer

297.1.1.8. getPostfix

getPostfix()

Retrieve postfix

Return type:string

297.1.1.9. setSeparator

setSeparator()

Set separator for __toString() serialization

Used to implode elements in container

Parameters:string
Return type:ZendViewHelperPlaceholderContainerAbstractContainer

297.1.1.10. getSeparator

getSeparator()

Retrieve separator

Return type:string

297.1.1.11. setIndent

setIndent()

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

Parameters:string|int
Return type:ZendViewHelperPlaceholderContainerAbstractContainer

297.1.1.12. getIndent

getIndent()

Retrieve indentation

Return type:string

297.1.1.13. getWhitespace

getWhitespace()

Retrieve whitespace representation of $indent

Parameters:int|string
Return type:string

297.1.1.14. captureStart

captureStart()

Start capturing content to push into placeholder

Parameters:
  • string – How to capture content into placeholder; append, prepend, or set
  • mixed – Key to which to capture content
Return type:

void

Throws :

ExceptionRuntimeException if nested captures detected

297.1.1.15. captureEnd

captureEnd()

End content capture

Return type:void

297.1.1.16. getKeys

getKeys()

Get keys

Return type:array

297.1.1.17. nextIndex

nextIndex()

Next Index

as defined by the PHP manual

Return type:int

297.1.1.18. toString

toString()

Render the placeholder

Parameters:null|int|string
Return type:string

297.1.1.19. __toString

__toString()

Serialize object to string

Return type:string

297.1.2. Constants

297.1.2.1. SET

Whether or not to override all contents of placeholder

297.1.2.2. APPEND

Whether or not to append contents to placeholder

297.1.2.3. PREPEND

Whether or not to prepend contents to placeholder