STPHPObject | --STPHPXmlElement
Located in File: Program_Root/stphpxmlelement.php
stphplib
Roberto Gerola <roberto.gerola@speedtech.it>
0.8
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
|
Inherited Method Summary | ||||||||||
Inherited From Class STPHPObject
|
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 |
private
private
private
private
Method Detail |
STPHPXmlElement constructor STPHPXmlElement ( $name )
Creates the object- string $name:
public
void dtor ( )
Overrides: STPHPObject::dtor()
DestructorDestroys all the resources associated with the object
public
string getAttribute ( $name )
Returns the value of the specified attribute- string $name: The name of the attribute
STPHPXmlElement getChildByName ( $childName )
Returns a child by its name- string $childName: the name of the node
STPHPXmlElement getChildByNameNum ( $childName, [$num = 0] )
Returns a child by its name and index- string $childName: the name of the node
- integer $num: The index number
STPHPXmlElement getChildByNum ( $num )
Returns a child by its index- integer $num: The index number
string getData ( )
Returns the value of the nodeinteger getNumOfChilds ( )
Returns the number of childs of the nodeinteger getNumOfChildsByName ( $childName )
Returns the number of childs of the node with the specified name- string $childName: the name of the node