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

Parameters

$name

string

Returns

mixed

Defined by Zend\Tag\TaggableInterface

getTitle() : string

Returns

string

Defined by Zend\Tag\TaggableInterface

getWeight() : float

Returns

float

Set options of the tag

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

Parameters

$options

array

Returns

Defined by Zend\Tag\TaggableInterface

setParam(string $name, mixed $value) : \Zend\Tag\Item

Parameters

$name

string

$value

mixed

Returns

Set multiple params at once

setParams(array $params) : \Zend\Tag\Item

Parameters

$params

array

Returns

Set the title

setTitle(string $title) : \Zend\Tag\Item

Parameters

$title

string

Exceptions

\Zend\Tag\Exception\InvalidArgumentException When title is no string

Returns

Set the weight

setWeight(float $weight) : \Zend\Tag\Item

Parameters

$weight

float

Exceptions

\Zend\Tag\Exception\InvalidArgumentException When weight is not numeric

Returns

 Properties

 

Custom parameters

$params : string

 

Option keys to skip when calling setOptions()

$skipOptions : array

 

Title of the tag

$title : string

 

Weight of the tag

$weight : float