PHP Class PHPDaemon\XMLStream\XMLStream

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

Protected Properties

Свойство Type Description
$current_ns
$default_ns
$idhandlers
$parser
$xml_depth
$xpathhandlers

Méthodes publiques

Méthode 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 méthode

Constructor
public __construct ( ) : void
Résultat void

__destroy() public méthode

Destructor
public __destroy ( ) : void
Résultat void

addIdHandler() public méthode

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

addXPathHandler() public méthode

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

charXML() public méthode

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

endXML() public méthode

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

feed() public méthode

Feed stream
public feed ( string $buf ) : void
$buf string
Résultat void

finalize() public méthode

Finalize stream
public finalize ( ) : void
Résultat void

finish() public méthode

Finishes the stream
public finish ( ) : void
Résultat void

getId() public méthode

Get next ID
public getId ( ) : integer
Résultat integer

setDefaultNS() public méthode

Set default namespace
public setDefaultNS ( string $ns ) : void
$ns string
Résultat void

startXML() public méthode

XML start callback
See also: xml_set_element_handler
public startXML ( resource $parser, string $name, array $attr ) : void
$parser resource
$name string
$attr array
Résultat 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