PHP Class PHPDaemon\XMLStream\XMLStreamObject

Inheritance: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Afficher le fichier Open project: kakserpom/phpdaemon

Méthodes publiques

Свойство Type Description
$attrs array Attributes
$data string Node data
$name string Tag name
$ns string Namespace
$subs array Subs?

Méthodes publiques

Méthode Description
__construct ( string $name, string $ns = '', array $attrs = [], string $data = '' ) Constructor
hasSub ( string $name, $ns = null ) : boolean Has this XML Object the given sub?
printObj ( integer $depth ) Dump this XML Object to output.
sub ( string $name, string $attrs = null, string $ns = null ) Return a sub
toString ( string $str = '' ) Return this XML Object in xml notation

Method Details

__construct() public méthode

Constructor
public __construct ( string $name, string $ns = '', array $attrs = [], string $data = '' )
$name string
$ns string
$attrs array
$data string

hasSub() public méthode

Has this XML Object the given sub?
public hasSub ( string $name, $ns = null ) : boolean
$name string
Résultat boolean

printObj() public méthode

Dump this XML Object to output.
public printObj ( integer $depth )
$depth integer

sub() public méthode

Return a sub
public sub ( string $name, string $attrs = null, string $ns = null )
$name string
$attrs string
$ns string

toString() public méthode

Return this XML Object in xml notation
public toString ( string $str = '' )
$str string

Property Details

$attrs public_oe property

Attributes
public array $attrs
Résultat array

$data public_oe property

Node data
public string $data
Résultat string

$name public_oe property

Tag name
public string $name
Résultat string

$ns public_oe property

Namespace
public string $ns
Résultat string

$subs public_oe property

Subs?
public array $subs
Résultat array