Tag/Item.php

Show: PublicProtectedPrivateinherited
Table of Contents
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Tag  
Subpackage
Item  
Version
$Id$  

\Zend_Tag_Item

Package: Zend_Tag
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
 

Properties

>VPropertyprotectedstring $_params = array()
Custom parameters
Default valuearray()Details
Type
string
>VPropertyprotectedarray $_skipOptions = array('options', 'param')
Option keys to skip when calling setOptions()
Default valuearray('options', 'param')Details
Type
array
>VPropertyprotectedstring $_title = null
Title of the tag
Default valuenullDetails
Type
string
>VPropertyprotectedfloat $_weight = null
Weight of the tag
Default valuenullDetails
Type
float

Methods

methodpublic__construct(array | \Zend_Config $options) : void

Create a new tag according to the options

Parameters
NameTypeDescription
$optionsarray | \Zend_Config
Throws
ExceptionDescription
\Zend_Tag_ExceptionWhen invalid options are provided
\Zend_Tag_ExceptionWhen title was not set
\Zend_Tag_ExceptionWhen weight was not set
methodpublicgetParam(string $name) : mixed

Defined by Zend_Tag_Taggable

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
mixed
methodpublicgetTitle() : string

Defined by Zend_Tag_Taggable

Returns
TypeDescription
string
methodpublicgetWeight() : float

Defined by Zend_Tag_Taggable

Returns
TypeDescription
float
methodpublicsetOptions(array $options) : \Zend_Tag_Item

Set options of the tag

Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Tag_Item
methodpublicsetParam(string $name, mixed $value) : \Zend_Tag_Item

Defined by Zend_Tag_Taggable

Parameters
NameTypeDescription
$namestring
$valuemixed
Returns
TypeDescription
\Zend_Tag_Item
methodpublicsetParams(array $params) : \Zend_Tag_Item

Set multiple params at once

Parameters
NameTypeDescription
$paramsarray
Returns
TypeDescription
\Zend_Tag_Item
methodpublicsetTitle(string $title) : \Zend_Tag_Item

Set the title

Parameters
NameTypeDescription
$titlestring
Returns
TypeDescription
\Zend_Tag_Item
Throws
ExceptionDescription
\Zend_Tag_ExceptionWhen title is no string
methodpublicsetWeight(float $weight) : \Zend_Tag_Item

Set the weight

Parameters
NameTypeDescription
$weightfloat
Returns
TypeDescription
\Zend_Tag_Item
Throws
ExceptionDescription
\Zend_Tag_ExceptionWhen weight is not numeric
Documentation was generated by phpDocumentor 2.2.0 .