1907. Class

1907.1. Zend\Tag\Item

1907.1.1. Methods

1907.1.1.1. __construct

__construct()

Create a new tag according to the options

Parameters:array|Traversable
Throws ZendTagExceptionInvalidArgumentException:
 When invalid options are provided
Throws ZendTagExceptionInvalidArgumentException:
 When title was not set
Throws ZendTagExceptionInvalidArgumentException:
 When weight was not set

1907.1.1.2. setOptions

setOptions()

Set options of the tag

Parameters:array
Return type:ZendTagItem

1907.1.1.3. getTitle

getTitle()

Defined by ZendTagTaggableInterface

Return type:string

1907.1.1.4. setTitle

setTitle()

Set the title

Parameters:string
Throws ZendTagExceptionInvalidArgumentException:
 When title is no string
Return type:ZendTagItem

1907.1.1.5. getWeight

getWeight()

Defined by ZendTagTaggableInterface

Return type:float

1907.1.1.6. setWeight

setWeight()

Set the weight

Parameters:float
Throws ZendTagExceptionInvalidArgumentException:
 When weight is not numeric
Return type:ZendTagItem

1907.1.1.7. setParams

setParams()

Set multiple params at once

Parameters:array
Return type:ZendTagItem

1907.1.1.8. setParam

setParam()

Defined by ZendTagTaggableInterface

Parameters:
  • string
  • mixed
Return type:

ZendTagItem

1907.1.1.9. getParam

getParam()

Defined by ZendTagTaggableInterface

Parameters:string
Return type:mixed