Class STPHPXmlElement

STPHPObject
   |
   --STPHPXmlElement

Classes extended from STPHPXmlElement:

Located in File: Program_Root/stphpxmlelement.php


The class that represents a XML node


Class Variable Summary
$attributes
The attributes of the node
Default Value: -><-
$childs
The childs of the node
Default Value: -><-
$data
The data value of the node
Default Value: -><-
$parent
The parent node
Default Value: -><-

Inherited Class Variable Summary
Inherited From Class STPHPObject
Variable Default Value Description
$name -><- The name of the object

Inherited Method Summary
Inherited From Class STPHPObject
Function Description
constructor STPHPObject ( [$name = ] ) Creates the object
dtor ( ) Destructor
errorLog ( $message ) Print an error to the log system
getName ( ) Returns the name of the object

Method Summary
STPHPXmlElement constructor STPHPXmlElement ( $name )
Creates the object
void dtor ( )
Destructor
string getAttribute ( $name )
Returns the value of the specified attribute
STPHPXmlElement getChildByName ( $childName )
Returns a child by its name
STPHPXmlElement getChildByNameNum ( $childName, [$num = 0] )
Returns a child by its name and index
STPHPXmlElement getChildByNum ( $num )
Returns a child by its index
string getData ( )
Returns the value of the node
integer getNumOfChilds ( )
Returns the number of childs of the node
integer getNumOfChildsByName ( $childName )
Returns the number of childs of the node with the specified name
Variable Detail

$attributes

Data type: array
The attributes of the node


$childs

Data type: array
The childs of the node


$data

Data type: string
The data value of the node


$parent

Data type: STPHPXmlElement
The parent node



Method Detail

constructor STPHPXmlElement

STPHPXmlElement constructor STPHPXmlElement ( $name )

Creates the object

Function Parameters:
- string $name:
Function Info:
Access - public

dtor

void dtor ( )

Overrides: STPHPObject::dtor()

Destructor
Destroys all the resources associated with the object
Function Parameters:
Function Info:
Access - public

getAttribute

string getAttribute ( $name )

Returns the value of the specified attribute

Function Parameters:
- string $name: The name of the attribute
Function Info:

getChildByName

STPHPXmlElement getChildByName ( $childName )

Returns a child by its name

Function Parameters:
- string $childName: the name of the node
Function Info:

getChildByNameNum

STPHPXmlElement getChildByNameNum ( $childName, [$num = 0] )

Returns a child by its name and index

Function Parameters:
- string $childName: the name of the node
- integer $num: The index number
Function Info:

getChildByNum

STPHPXmlElement getChildByNum ( $num )

Returns a child by its index

Function Parameters:
- integer $num: The index number
Function Info:

getData

string getData ( )

Returns the value of the node

Function Parameters:
Function Info:

getNumOfChilds

integer getNumOfChilds ( )

Returns the number of childs of the node

Function Parameters:
Function Info:

getNumOfChildsByName

integer getNumOfChildsByName ( $childName )

Returns the number of childs of the node with the specified name

Function Parameters:
- string $childName: the name of the node
Function Info: