Abstract class for tag decorators

category Zend
package Zend_Tag

 Methods

Create a new decorator with options

__construct(array | \Traversable $options) 
Inherited

Allow passing options to the constructor.

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

Parameters

$options

array\Traversable

Get encoding

getEncoding() : string
Inherited

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::getEncoding()

Returns

string

Retrieve Escaper instance

getEscaper() : \Zend\Escaper\Escaper
Inherited

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

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::getEscaper()

Returns

Render a list of tags

render(mixed $tags) : string
Inherited

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

Parameters

$tags

mixed

Returns

string

Set encoding

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

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::setEncoding()

Parameters

$value

string

Returns

\Zend\Tag\Cloud\Decorator\HTMLCloud

Set Escaper instance

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

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::setEscaper()

Parameters

Returns

Set options from array

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

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::setOptions()

Parameters

$options

array

Configuration for the decorator

Returns

Validate an HTML attribute name

validateAttributeName(string $name) 
Inherited

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::validateAttributeName()

Parameters

$name

string

Exceptions

\Zend\Tag\Exception\InvalidAttributeNameException

Validate an HTML element name

validateElementName(string $name) 
Inherited

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::validateElementName()

Parameters

$name

string

Exceptions

\Zend\Tag\Exception\InvalidElementNameException

wrapTag()

wrapTag($html) 
Inherited

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::wrapTag()

Parameters

$html

 Properties

 

<p>Encoding to use</p>

$encoding : string
Inherited

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::$$encoding
 

$escaper

$escaper : \Zend\Escaper\Escaper
Inherited

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::$$escaper
 

Option keys to skip when calling setOptions()

$skipOptions : array
Inherited

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::$$skipOptions