API Documentation

Tag/Cloud/Decorator/HtmlTag.php

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Tag  
subpackage
Cloud  
version
$Id: HtmlTag.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Tag_Cloud_Decorator_HtmlTag

Simple HTML decorator for tags

Extends from
\Zend_Tag_Cloud_Decorator_Tag
category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Tag  
uses
\Zend_Tag_Cloud_Decorator_Tag  

Properties

Propertyprotectedarray  $_alloweFontSizeUnits= 'array'

Allowed fontsize units

Default valuearrayDetails
Type
array
Propertyprotectedarray  $_classList= 'null'

List of tags which get assigned to the inner element instead of font-sizes.

Default valuenullDetails
Type
array
Propertyprotectedstring  $_encoding= 'UTF-8'

Encoding to utilize
Default valueUTF-8Details
Type
string
Propertyprotectedstring  $_fontSizeUnit= 'px'

Unit for the fontsize

Default valuepxDetails
Type
string
Propertyprotectedarray  $_htmlTags= 'array'

List of HTML tags

Default valuearrayDetails
Type
array
Propertyprotectedinteger  $_maxFontSize= '20'

Maximum fontsize

Default value20Details
Type
integer
Propertyprotectedinteger  $_minFontSize= '10'

Minimum fontsize

Default value10Details
Type
integer

Methods

methodpublic__construct( mixed $options = null ) : void

Create a new cloud decorator with options

Inherited from: \Zend_Tag_Cloud_Decorator_Tag::__construct()
Parameters
Name Type Description
$options mixed
methodpublicgetClassList( ) : array

Get class list

Returns
Type Description
array
methodpublicgetEncoding( ) : string

Get encoding

Returns
Type Description
string
methodpublicgetFontSizeUnit( ) : string

Retrieve font size unit

Returns
Type Description
string
methodpublicgetHtmlTags( ) : array

Get HTML tags map

Returns
Type Description
array
methodpublicgetMaxFontSize( ) : int

Retrieve maximum font size

Returns
Type Description
int
methodpublicgetMinFontSize( ) : int

Retrieve minimum font size

Returns
Type Description
int
methodpublicrender( \Zend_Tag_ItemList $tags ) : array

Defined by Zend_Tag_Cloud_Decorator_Tag

Parameters
Name Type Description
$tags \Zend_Tag_ItemList
Returns
Type Description
array
methodpublicsetClassList( array $classList = null ) : \Zend_Tag_Cloud_Decorator_HtmlTag

Set a list of classes to use instead of fontsizes

Parameters
Name Type Description
$classList array
Returns
Type Description
\Zend_Tag_Cloud_Decorator_HtmlTag
Throws
Exception Description
\Zend_Tag_Cloud_Decorator_Exception When the classlist is empty
\Zend_Tag_Cloud_Decorator_Exception When the classlist contains an invalid classname
methodpublicsetEncoding( string $value ) : \Zend_Tag_Cloud_Decorator_HtmlTag

Set encoding

Parameters
Name Type Description
$value string
Returns
Type Description
\Zend_Tag_Cloud_Decorator_HtmlTag
methodpublicsetFontSizeUnit( string $fontSizeUnit ) : \Zend_Tag_Cloud_Decorator_HtmlTag

Set the font size unit

Possible values are: em, ex, px, in, cm, mm, pt, pc and %

Parameters
Name Type Description
$fontSizeUnit string
Returns
Type Description
\Zend_Tag_Cloud_Decorator_HtmlTag
Throws
Exception Description
\Zend_Tag_Cloud_Decorator_Exception When an invalid fontsize unit is specified
methodpublicsetMaxFontSize( integer $maxFontSize ) : \Zend_Tag_Cloud_Decorator_HtmlTag

Set maximum font size

Parameters
Name Type Description
$maxFontSize integer
Returns
Type Description
\Zend_Tag_Cloud_Decorator_HtmlTag
Throws
Exception Description
\Zend_Tag_Cloud_Decorator_Exception When fontsize is not numeric
methodpublicsetMinFontSize( int $minFontSize ) : \Zend_Tag_Cloud_Decorator_HtmlTag

Set minimum font size

Parameters
Name Type Description
$minFontSize int
Returns
Type Description
\Zend_Tag_Cloud_Decorator_HtmlTag
Throws
Exception Description
\Zend_Tag_Cloud_Decorator_Exception When fontsize is not numeric
methodpublicsetOptions( array $options ) : \Zend_Tag_Cloud

Set options from array

Inherited from: \Zend_Tag_Cloud_Decorator_Tag::setOptions()
Parameters
Name Type Description
$options array Configuration for the decorator
Returns
Type Description
\Zend_Tag_Cloud
Documentation was generated by DocBlox 0.13.3.