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\AbstractTag::__construct() |
Parameters
$options
array\Traversable
Get class list
getClassList() : array
Get encoding
getEncoding() : string
Inherited
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractDecorator::getEncoding() |
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractTag::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\AbstractTag::getEscaper() |
Returns
Retrieve font size unit
getFontSizeUnit() : string
Retrieve maximum font size
getMaxFontSize() : int
Retrieve minimum font size
getMinFontSize() : int
Defined by Tag
render(\Zend\Tag\ItemList $tags) : array
Parameters
Exceptions
Returns
array
Set a list of classes to use instead of fontsizes
setClassList(array $classList) : \Zend\Tag\Cloud\Decorator\HTMLTag
Parameters
$classList
array
Exceptions
Returns
\Zend\Tag\Cloud\Decorator\HTMLTag
Set encoding
setEncoding($value) : \Zend\Tag\Cloud\Decorator\HTMLCloud
Inherited
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractDecorator::setEncoding() |
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractTag::setEncoding() |
Parameters
Returns
\Zend\Tag\Cloud\Decorator\HTMLCloud
Set the font size unit
setFontSizeUnit(string $fontSizeUnit) : \Zend\Tag\Cloud\Decorator\HTMLTag
Possible values are: em, ex, px, in, cm, mm, pt, pc and %
Parameters
$fontSizeUnit
string
Exceptions
Returns
\Zend\Tag\Cloud\Decorator\HTMLTag
Set maximum font size
setMaxFontSize(int $maxFontSize) : \Zend\Tag\Cloud\Decorator\HTMLTag
Parameters
$maxFontSize
int
Exceptions
Returns
\Zend\Tag\Cloud\Decorator\HTMLTag
Set minimum font size
setMinFontSize(int $minFontSize) : \Zend\Tag\Cloud\Decorator\HTMLTag
Parameters
$minFontSize
int
Exceptions
Returns
\Zend\Tag\Cloud\Decorator\HTMLTag
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\AbstractTag::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() |
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractTag::validateAttributeName() |
Parameters
$name
string
Exceptions
Validate an HTML element name
validateElementName(string $name)
Inherited
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractDecorator::validateElementName() |
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractTag::validateElementName() |
Parameters
$name
string
Exceptions
Wrap html with tag
wrapTag(string $html) : string
Inherited
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractDecorator::wrapTag() |
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractTag::wrapTag() |
Parameters
$html
string
Returns
string
Properties
Allowed fontsize units
$allowedFontSizeUnits : array
List of tags which get assigned to the inner element instead of
font-sizes.
$classList : array
<p>Encoding to use</p>
$encoding : string
Inherited
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractDecorator::$$encoding |
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractTag::$$encoding |
$escaper
$escaper : \Zend\Escaper\Escaper
Inherited
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractDecorator::$$escaper |
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractTag::$$escaper |
Unit for the fontsize
$fontSizeUnit : string
Maximum fontsize
$maxFontSize : int
Minimum fontsize
$minFontSize : int
Option keys to skip when calling setOptions()
$skipOptions : array
Inherited
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractDecorator::$$skipOptions |
inherited_from |
\Zend\Tag\Cloud\Decorator\AbstractTag::$$skipOptions |