category |
Zend |
package |
Zend_Markup |
copyright |
Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license |
New BSD License |
Methods
Magic clone function
__clone() : void
Construct the token
__construct(string $tag, string $type, string $name = ''
, array $attributes = array()
, \Zend_Markup_Token $parent = null
) : void
Parameters
$tag
string
$type
string
$name
string
$attributes
array
$parent
\Zend_Markup_Token
Add an attribute
addAttribute($name, $value) : \Zend_Markup_Token
Parameters
$name
$value
Returns
\Zend_Markup_Token
Add a child token
addChild(\Zend_Markup_Token $child) : void
Check if an attribute is empty
attributeIsEmpty(string $name) : boolean
Parameters
$name
string
Returns
boolean
Get an attribute
getAttribute(string $name) : string
Parameters
$name
string
Returns
string
Get all the attributes
getAttributes() : array
Get the children for this token
getChildren() : \Zend_Markup_TokenList
Returns
\Zend_Markup_TokenList
Get the token's name
getName() : string
Get the parent token (if any)
getParent() : \Zend_Markup_Token
Returns
\Zend_Markup_Token
Get the stopper
getStopper() : string
Get the complete tag
getTag() : string
Get the token's type
getType() : string
Check if the token has an attribute
hasAttribute(string $name) : boolean
Parameters
$name
string
Returns
boolean
Does this token have any children
hasChildren() : boolean
Set the children token list
setChildren(\Zend_Markup_TokenList $children) : \Zend_Markup_Token
Parameters
$children
\Zend_Markup_TokenList
Returns
\Zend_Markup_Token
Set a parent token
setParent(\Zend_Markup_Token $parent) : \Zend_Markup_Token
Parameters
$parent
\Zend_Markup_Token
Returns
\Zend_Markup_Token
Set the stopper
setStopper(string $stopper) : \Zend_Markup_Token
Parameters
$stopper
string
Returns
\Zend_Markup_Token
Properties
Tag attributes
$_attributes : array
Children of this token
$_children : \Zend_Markup_TokenList
The parent token
$_parent : \Zend_Markup_Token
The used tag stopper (empty when none is found)
$_stopper : string
The complete tag
$_tag : string
The tag's type
$_type : string
Constants
TYPE_NONE
TYPE_NONE = 'none'
TYPE_TAG
TYPE_TAG = 'tag'