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

 Methods

Create a new tag according to the options

__construct(array|\Zend_Config $options) : void

Parameters

$options

array\Zend_Config

Exceptions

\Zend_Tag_Exception When invalid options are provided
\Zend_Tag_Exception When title was not set
\Zend_Tag_Exception When weight was not set

Defined by Zend_Tag_Taggable

getParam(string $name) : mixed
inherited_from \Zend_Tag_Taggable::getParam()

Parameters

$name

string

Returns

mixed

Defined by Zend_Tag_Taggable

getTitle() : string
inherited_from \Zend_Tag_Taggable::getTitle()

Returns

string

Defined by Zend_Tag_Taggable

getWeight() : float
inherited_from \Zend_Tag_Taggable::getWeight()

Returns

float

Set options of the tag

setOptions(array $options) : \Zend_Tag_Item

Parameters

$options

array

Returns

\Zend_Tag_Item

Defined by Zend_Tag_Taggable

setParam(string $name, mixed $value) : \Zend_Tag_Item
inherited_from \Zend_Tag_Taggable::setParam()

Parameters

$name

string

$value

mixed

Returns

\Zend_Tag_Item

Set multiple params at once

setParams(array $params) : \Zend_Tag_Item

Parameters

$params

array

Returns

\Zend_Tag_Item

Set the title

setTitle(string $title) : \Zend_Tag_Item

Parameters

$title

string

Exceptions

\Zend_Tag_Exception When title is no string

Returns

\Zend_Tag_Item

Set the weight

setWeight(float $weight) : \Zend_Tag_Item

Parameters

$weight

float

Exceptions

\Zend_Tag_Exception When weight is not numeric

Returns

\Zend_Tag_Item

 Properties

 

Custom parameters

$_params : string

Default

array()
 

Option keys to skip when calling setOptions()

$_skipOptions : array

Default

array('options', 'param')
 

Title of the tag

$_title : string

Default

null
 

Weight of the tag

$_weight : float

Default

null