Methods

Create a new tag cloud with options

__construct(array | \Traversable $options) 

Parameters

$options

array\Traversable

Render the tag cloud

__toString() : string

Returns

string

Append a single tag to the cloud

appendTag(\Zend\Tag\TaggableInterface | array $tag) : \Zend\Tag\Cloud

Get the decorator for the cloud

getCloudDecorator() : \Zend\Tag\Cloud\Decorator\AbstractCloud

Get the plugin manager for decorators

getDecoratorPluginManager() : \Zend\Tag\Cloud\DecoratorPluginManager

Retrieve the item list

getItemList() : \Zend\Tag\ItemList

If item list is undefined, creates one.

Returns

Get the decorator for the tags

getTagDecorator() : \Zend\Tag\Cloud\Decorator\AbstractTag

Render the tag cloud

render() : string

Returns

string

Set the decorator for the cloud

setCloudDecorator(mixed $decorator) : \Zend\Tag\Cloud

Parameters

$decorator

mixed

Exceptions

\Zend\Tag\Exception\InvalidArgumentException

Returns

Set plugin manager for use with decorators

setDecoratorPluginManager(\Zend\Tag\Cloud\DecoratorPluginManager $decorators) : \Zend\Tag\Cloud

Set the item list

setItemList(\Zend\Tag\ItemList $itemList) : \Zend\Tag\Cloud

Parameters

$itemList

\Zend\Tag\ItemList

Returns

Set options from array

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

Parameters

$options

array

Configuration for Cloud

Returns

Set the decorator for the tags

setTagDecorator(mixed $decorator) : \Zend\Tag\Cloud

Parameters

$decorator

mixed

Exceptions

\Zend\Tag\Exception\InvalidArgumentException

Returns

Set the tags for the tag cloud.

setTags(array $tags) : \Zend\Tag\Cloud

$tags should be an array containing single tags as array. Each tag array should at least contain the keys 'title' and 'weight'. Optionally you may supply the key 'url', to which the tag links to. Any additional parameter in the array is silently ignored and can be used by custom decorators.

Parameters

$tags

array

Exceptions

\Zend\Tag\Exception\InvalidArgumentException

Returns

 Properties

 

DecoratorInterface for the cloud

$cloudDecorator : \Zend\Tag\Cloud\Decorator\AbstractCloud

 

Plugin manager for decorators

$decorators : \Zend\Tag\Cloud\DecoratorPluginManager

 

Option keys to skip when calling setOptions()

$skipOptions : array

 

DecoratorInterface for the tags

$tagDecorator : \Zend\Tag\Cloud\Decorator\AbstractTag

 

List of all tags

$tags : \Zend\Tag\ItemList