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

Parameters

$child

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

Returns

array

Get the children for this token

getChildren() : \Zend_Markup_TokenList

Returns

\Zend_Markup_TokenList

Get the token's name

getName() : string

Returns

string

Get the parent token (if any)

getParent() : \Zend_Markup_Token

Returns

\Zend_Markup_Token

Get the stopper

getStopper() : string

Returns

string

Get the complete tag

getTag() : string

Returns

string

Get the token's type

getType() : string

Returns

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

Returns

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

Default

array()
 

Children of this token

$_children : \Zend_Markup_TokenList

Default

 

Tag name

$_name : string

Default

''
 

The parent token

$_parent : \Zend_Markup_Token

Default

 

The used tag stopper (empty when none is found)

$_stopper : string

Default

''
 

The complete tag

$_tag : string

Default

 

The tag's type

$_type : string

Default

 Constants

 

TYPE_NONE

TYPE_NONE = 'none' 
 

TYPE_TAG

TYPE_TAG = 'tag'