Abstract class for decorators

 Methods

Create a new decorator with options

__construct(array | \Traversable $options) 

Allow passing options to the constructor.

Parameters

$options

array\Traversable

Get encoding

getEncoding() : string

Returns

string

Retrieve Escaper instance

getEscaper() : \Zend\Escaper\Escaper

If none registered, instantiates and registers one using current encoding.

Returns

Render a list of tags

render(mixed $tags) : string
Inherited

inherited_from \Zend\Tag\Cloud\Decorator\DecoratorInterface::render()

Parameters

$tags

mixed

Returns

string

Set encoding

setEncoding($value) : \Zend\Tag\Cloud\Decorator\HTMLCloud

Parameters

$value

string

Returns

\Zend\Tag\Cloud\Decorator\HTMLCloud

Set Escaper instance

setEscaper(\Zend\Escaper\Escaper $escaper) : \Zend\Tag\Cloud\Decorator\HtmlCloud

Set options from array

setOptions(array $options) : \Zend\Tag\Cloud\Decorator\AbstractTag

Parameters

$options

array

Configuration for the decorator

Returns

Validate an HTML attribute name

validateAttributeName(string $name) 

Parameters

$name

string

Exceptions

\Zend\Tag\Exception\InvalidAttributeNameException

Validate an HTML element name

validateElementName(string $name) 

Parameters

$name

string

Exceptions

\Zend\Tag\Exception\InvalidElementNameException

Wrap html with tag

wrapTag(string $html) : string

Parameters

$html

string

Returns

string

 Properties

 

<p>Encoding to use</p>

$encoding : string

 

$escaper

$escaper : \Zend\Escaper\Escaper

 

Option keys to skip when calling setOptions()

$skipOptions : array