Base class for targeted placeholder helpers

 Methods

Overload

__call(string $method, array $args) : mixed

Proxy to container methods

Parameters

$method

string

$args

array

Exceptions

\Zend\View\Exception\BadMethodCallException

Returns

mixed

Constructor

__construct() 

Overloading: retrieve property

__get(string $key) : mixed

Parameters

$key

string

Returns

mixed

Overloading: check if property is set

__isset(string $key) : bool

Parameters

$key

string

Returns

bool

Overloading: set property value

__set(string $key, mixed $value) : void

Parameters

$key

string

$value

mixed

Cast to string representation

__toString() : string

Returns

string

Overloading: unset property

__unset(string $key) : void

Parameters

$key

string

Countable

count() : int

Returns

int

Delete a container

deleteContainer() : bool

Returns

bool

Return whether autoEscaping is enabled or disabled

getAutoEscape() 

return bool

Retrieve the container class

getContainerClass() : string

Returns

string

Get Escaper instance

getEscaper(string | null $enc) : mixed

Lazy-loads one if none available

Parameters

$enc

stringnull

Encoding to use

Returns

mixed

IteratorAggregate: get Iterator

getIterator() : \Zend\View\Helper\Placeholder\Container\Iterator

Returns

\Zend\View\Helper\Placeholder\Container\Iterator

Get the view object

getView() : null | \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::getView()

Returns

ArrayAccess: offsetExists

offsetExists(string | int $offset) : bool

Parameters

$offset

stringint

Returns

bool

ArrayAccess: offsetGet

offsetGet(string | int $offset) : mixed

Parameters

$offset

stringint

Returns

mixed

ArrayAccess: offsetSet

offsetSet(string | int $offset, mixed $value) : void

Parameters

$offset

stringint

$value

mixed

ArrayAccess: offsetUnset

offsetUnset(string | int $offset) : void

Parameters

$offset

stringint

Set whether or not auto escaping should be used

setAutoEscape(bool $autoEscape) : \Zend\View\Helper\Placeholder\Container\AbstractStandalone

Parameters

$autoEscape

bool

whether or not to auto escape output

Returns

Set container on which to operate

setContainer(\Zend\View\Helper\Placeholder\Container\AbstractContainer $container) : \Zend\View\Helper\Placeholder\Container\AbstractStandalone

Set Escaper instance

setEscaper(\Zend\Escaper\Escaper $escaper) : \Zend\View\Helper\Placeholder\Container\AbstractStandalone

Set the View object

setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::setView()

Parameters

Returns

String representation

toString() : string

Returns

string

Escape a string

escape(string $string) : string

Parameters

$string

string

Returns

string

 Properties

 

Flag whether to automatically escape output, must also be enforced in the child class if __toString/toString is overridden

$autoEscape : bool

   

Default container class

$containerClass : string

 

$escapers

$escapers : \Zend\Escaper\Escaper[]

 

View object instance

$view : \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::$$view