PHP Class PHPDaemon\XMLStream\XMLStreamObject

Inheritance: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Mostrar archivo Open project: kakserpom/phpdaemon

Public Properties

Property Type Description
$attrs array Attributes
$data string Node data
$name string Tag name
$ns string Namespace
$subs array Subs?

Public Methods

Method 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 method

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

hasSub() public method

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

printObj() public method

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

sub() public method

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

toString() public method

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

Property Details

$attrs public_oe property

Attributes
public array $attrs
return array

$data public_oe property

Node data
public string $data
return string

$name public_oe property

Tag name
public string $name
return string

$ns public_oe property

Namespace
public string $ns
return string

$subs public_oe property

Subs?
public array $subs
return array