Simple HTML decorator for clouds

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()
inherited_from \Zend\Tag\Cloud\Decorator\AbstractCloud::__construct()

Parameters

$options

array\Traversable

Get encoding

getEncoding() : string
Inherited

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::getEncoding()
inherited_from \Zend\Tag\Cloud\Decorator\AbstractCloud::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()
inherited_from \Zend\Tag\Cloud\Decorator\AbstractCloud::getEscaper()

Returns

Retrieve HTML tag map

getHTMLTags() : array

Returns

array

Get tag separator

getSeparator() : string

Returns

string

Defined by Zend\Tag\Cloud\Decorator\Cloud

render(array $tags) : string

Parameters

$tags

array

Exceptions

\Zend\Tag\Cloud\Decorator\Exception\InvalidArgumentException

Returns

string

Set encoding

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

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::setEncoding()
inherited_from \Zend\Tag\Cloud\Decorator\AbstractCloud::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()
inherited_from \Zend\Tag\Cloud\Decorator\AbstractCloud::setEscaper()

Parameters

Returns

Set the HTML tags surrounding all tags

setHTMLTags(array $htmlTags) : \Zend\Tag\Cloud\Decorator\HTMLCloud

Parameters

$htmlTags

array

Returns

\Zend\Tag\Cloud\Decorator\HTMLCloud

Set options from array

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

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

Parameters

$options

array

Configuration for the decorator

Returns

Set the separator between the single tags

setSeparator($separator) : \Zend\Tag\Cloud\Decorator\HTMLCloud

Parameters

$separator

string

Returns

\Zend\Tag\Cloud\Decorator\HTMLCloud

Validate an HTML attribute name

validateAttributeName(string $name) 
Inherited

inherited_from \Zend\Tag\Cloud\Decorator\AbstractDecorator::validateAttributeName()
inherited_from \Zend\Tag\Cloud\Decorator\AbstractCloud::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()
inherited_from \Zend\Tag\Cloud\Decorator\AbstractCloud::validateElementName()

Parameters

$name

string

Exceptions

\Zend\Tag\Exception\InvalidElementNameException

wrapTag()

wrapTag($html) 
Inherited

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

Parameters

$html

 Properties

 

<p>Encoding to use</p>

$encoding : string
Inherited

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

$escaper

$escaper : \Zend\Escaper\Escaper
Inherited

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

List of HTML tags

$htmlTags : array

 

Separator for the single tags

$separator : string

 

Option keys to skip when calling setOptions()

$skipOptions : array
Inherited

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