Class XMLTag
Class representing an XML tag
-
picon\ComonDomainBase
-
picon\XMLTag
implements
picon\XmlElement
Methods summary
public
|
#
__construct( String $name, Array $attributes = array() )
Construct a new xml tag
Parameters
- $name
String the name of the tag
- $attributes
Array optional, defaults to an empty array
|
public
|
|
public
|
#
setName( String $name )
Set the name of this tag
Parameters
|
public
|
#
setAttributes( Array $attributes )
Sets the attributes
Parameters
- $attributes
Array the attributes of this tag
|
public
|
|
public
|
|
public
|
|
public
boolean
|
#
hasChildren( )
Does this tag have any children
Does this tag have any children
Returns
boolean true if there are children
|
public
|
#
setTagType( picon\XmlTagType $type )
Set the type of tag this is: open, close, openclose
Set the type of tag this is: open, close, openclose
Parameters
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
remove( type $name )
Remove an attribute
Parameters
|
public
|
|
public
|
|
public
|
|