PHP Class PHPDaemon\XMLStream\XMLStream

Inheritance: use trait PHPDaemon\Traits\EventHandlers, use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Datei anzeigen Open project: kakserpom/phpdaemon Class Usage Examples

Protected Properties

Property Type Description
$current_ns
$default_ns
$idhandlers
$parser
$xml_depth
$xpathhandlers

Public Methods

Method Description
__construct ( ) : void Constructor
__destroy ( ) : void Destructor
addIdHandler ( integer $id, callable $cb ) Add ID Handler
addXPathHandler ( string $xpath, Closure $cb, null $obj = null ) Add XPath Handler
charXML ( resource $parser, string $data ) XML character callback
endXML ( resource $parser, string $name ) : void XML end callback
feed ( string $buf ) : void Feed stream
finalize ( ) : void Finalize stream
finish ( ) : void Finishes the stream
getId ( ) : integer Get next ID
setDefaultNS ( string $ns ) : void Set default namespace
startXML ( resource $parser, string $name, array $attr ) : void XML start callback

Method Details

__construct() public method

Constructor
public __construct ( ) : void
return void

__destroy() public method

Destructor
public __destroy ( ) : void
return void

addIdHandler() public method

Add ID Handler
public addIdHandler ( integer $id, callable $cb )
$id integer
$cb callable

addXPathHandler() public method

Add XPath Handler
public addXPathHandler ( string $xpath, Closure $cb, null $obj = null )
$xpath string
$cb Closure
$obj null

charXML() public method

XML character callback
See also: xml_set_character_data_handler
public charXML ( resource $parser, string $data )
$parser resource
$data string

endXML() public method

XML end callback
See also: xml_set_element_handler
public endXML ( resource $parser, string $name ) : void
$parser resource
$name string
return void

feed() public method

Feed stream
public feed ( string $buf ) : void
$buf string
return void

finalize() public method

Finalize stream
public finalize ( ) : void
return void

finish() public method

Finishes the stream
public finish ( ) : void
return void

getId() public method

Get next ID
public getId ( ) : integer
return integer

setDefaultNS() public method

Set default namespace
public setDefaultNS ( string $ns ) : void
$ns string
return void

startXML() public method

XML start callback
See also: xml_set_element_handler
public startXML ( resource $parser, string $name, array $attr ) : void
$parser resource
$name string
$attr array
return void

Property Details

$current_ns protected_oe property

protected $current_ns

$default_ns protected_oe property

protected $default_ns

$idhandlers protected_oe property

protected $idhandlers

$parser protected_oe property

protected $parser

$xml_depth protected_oe property

protected $xml_depth

$xpathhandlers protected_oe property

protected $xpathhandlers