Abstract class for decorators

package Default

 Methods

Create a new decorator with options

__construct(array|\Traversable $options = null

Allow passing options to the constructor.

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

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

\Zend\Escaper\Escaper

Set encoding

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

Parameters

$value

Returns

\Zend\Tag\Cloud\Decorator\HTMLCloud

Set Escaper instance

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

Parameters

$escaper

\Zend\Escaper\Escaper

Returns

\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

\Zend\Tag\Cloud\Decorator\AbstractTag

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

 

Encoding to use

$encoding : string

Default

'UTF-8'
 

$escaper

$escaper : \Zend\Escaper\Escaper

Default

 

Option keys to skip when calling setOptions()

$skipOptions : array

Default

array('options', 'config')