package Default

 Methods

Create a new tag according to the options

__construct(array|\Traversable $options) 

Parameters

$options

array\Traversable

Exceptions

\Zend\Tag\Exception\InvalidArgumentException When invalid options are provided
\Zend\Tag\Exception\InvalidArgumentException When title was not set
\Zend\Tag\Exception\InvalidArgumentException When weight was not set

Defined by Zend\Tag\TaggableInterface

getParam(string $name) : mixed
inherited_from \Zend\Tag\TaggableInterface::getParam()

Parameters

$name

string

Returns

mixed

Defined by Zend\Tag\TaggableInterface

getTitle() : string
inherited_from \Zend\Tag\TaggableInterface::getTitle()

Returns

string

Defined by Zend\Tag\TaggableInterface

getWeight() : float
inherited_from \Zend\Tag\TaggableInterface::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\TaggableInterface

setParam(string $name, mixed $value) : \Zend\Tag\Item
inherited_from \Zend\Tag\TaggableInterface::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\InvalidArgumentException 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\InvalidArgumentException 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