category Zend
package Zend_Tag
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Create a new tag cloud with options

__construct(mixed $options = null

Parameters

$options

mixed

Render the tag cloud

__toString() : string

Returns

string

Add prefix path for plugin loader

addPrefixPath(string $prefix, string $path) : \Zend_Tag_Cloud

Parameters

$prefix

string

$path

string

Returns

\Zend_Tag_Cloud

Add many prefix paths at once

addPrefixPaths(array $paths) : \Zend_Tag_Cloud

Parameters

$paths

array

Returns

\Zend_Tag_Cloud

Append a single tag to the cloud

appendTag(\Zend_Tag_Taggable|array $tag) : \Zend_Tag_Cloud

Parameters

$tag

\Zend_Tag_Taggablearray

Returns

\Zend_Tag_Cloud

Get the decorator for the cloud

getCloudDecorator() : \Zend_Tag_Cloud_Decorator_Cloud

Returns

\Zend_Tag_Cloud_Decorator_Cloud

Retrieve the item list

getItemList() : \Zend_Tag_ItemList

If item list is undefined, creates one.

Returns

\Zend_Tag_ItemList

Get the plugin loader for decorators

getPluginLoader() : \Zend_Loader_PluginLoader

Returns

\Zend_Loader_PluginLoader

Get the decorator for the tags

getTagDecorator() : \Zend_Tag_Cloud_Decorator_Tag

Returns

\Zend_Tag_Cloud_Decorator_Tag

Render the tag cloud

render() : string

Returns

string

Set the decorator for the cloud

setCloudDecorator(mixed $decorator) : \Zend_Tag_Cloud

Parameters

$decorator

mixed

Returns

\Zend_Tag_Cloud

Set options from Zend_Config

setConfig(\Zend_Config $config) : \Zend_Tag_Cloud

Parameters

$config

\Zend_Config

Returns

\Zend_Tag_Cloud

Set the item list

setItemList(\Zend_Tag_ItemList $itemList) : \Zend_Tag_Cloud

Parameters

$itemList

\Zend_Tag_ItemList

Returns

\Zend_Tag_Cloud

Set options from array

setOptions(array $options) : \Zend_Tag_Cloud

Parameters

$options

array

Configuration for Zend_Tag_Cloud

Returns

\Zend_Tag_Cloud

Set plugin loaders for use with decorators

setPluginLoader(\Zend_Loader_PluginLoader_Interface $loader) : \Zend_Tag_Cloud

Parameters

$loader

\Zend_Loader_PluginLoader_Interface

Returns

\Zend_Tag_Cloud

Set the decorator for the tags

setTagDecorator(mixed $decorator) : \Zend_Tag_Cloud

Parameters

$decorator

mixed

Returns

\Zend_Tag_Cloud

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

Returns

\Zend_Tag_Cloud

 Properties

 

Decorator for the cloud

$_cloudDecorator : \Zend_Tag_Cloud_Decorator_Cloud

Default

null
 

Plugin loader for decorators

$_pluginLoader : \Zend_Loader_PluginLoader

Default

null
 

Option keys to skip when calling setOptions()

$_skipOptions : array

Default

array('options', 'config')
 

Decorator for the tags

$_tagDecorator : \Zend_Tag_Cloud_Decorator_Tag

Default

null
 

List of all tags

$_tags : \Zend_Tag_ItemList

Default

null