PHP Class JAXLXml, JAXL

Author: abhinavsingh
Afficher le fichier Open project: jaxl/JAXL Class Usage Examples

Méthodes publiques

Свойство Type Description
$parent
$rover
$xml

Méthodes publiques

Méthode Description
__construct ( string $name ) Accepts any of the following constructors:
__destruct ( )
attrs ( array $attrs ) : JAXLXml Set or update attrs of element.
c ( string $name, string $ns = null, array $attrs = [], string $text = null ) : JAXLXml Create child.
cnode ( JAXLXml $node ) : JAXLXml Append child node.
exists ( string $name, string $ns = null, array $attrs = [] ) : JAXLXml | boolean
match_attrs ( array $attrs ) : boolean Check that element matches by attrs.
t ( string $text, boolean $append = false ) : JAXLXml Set or append text.
to_string ( string $parent_ns = null ) : string
top ( ) : JAXLXml
up ( ) : JAXLXml
update ( string $name, string $ns = null, array $attrs = [], string $text = null ) Update child with name $name.
x ( JAXLXmlAccess $xml, boolean $append = false ) : JAXLXml Set or append XML.

Method Details

__construct() public méthode

* JAXLXml($name, $ns, $attrs, $text) * JAXLXml($name, $ns, $attrs) * JAXLXml($name, $ns, $text) * JAXLXml($name, $attrs, $text) * JAXLXml($name, $attrs) * JAXLXml($name, $ns) * JAXLXml($name)
public __construct ( string $name )
$name string

__destruct() public méthode

public __destruct ( )

attrs() public méthode

Set or update attrs of element.
public attrs ( array $attrs ) : JAXLXml
$attrs array
Résultat JAXLXml

c() public méthode

Create child.
public c ( string $name, string $ns = null, array $attrs = [], string $text = null ) : JAXLXml
$name string
$ns string
$attrs array
$text string
Résultat JAXLXml

cnode() public méthode

Append child node.
public cnode ( JAXLXml $node ) : JAXLXml
$node JAXLXml
Résultat JAXLXml

exists() public méthode

public exists ( string $name, string $ns = null, array $attrs = [] ) : JAXLXml | boolean
$name string
$ns string
$attrs array
Résultat JAXLXml | boolean

match_attrs() public méthode

Check that element matches by attrs.
public match_attrs ( array $attrs ) : boolean
$attrs array
Résultat boolean

t() public méthode

Set or append text.
public t ( string $text, boolean $append = false ) : JAXLXml
$text string
$append boolean
Résultat JAXLXml

to_string() public méthode

public to_string ( string $parent_ns = null ) : string
$parent_ns string
Résultat string

top() public méthode

public top ( ) : JAXLXml
Résultat JAXLXml

up() public méthode

public up ( ) : JAXLXml
Résultat JAXLXml

update() public méthode

Update child with name $name.
public update ( string $name, string $ns = null, array $attrs = [], string $text = null )
$name string
$ns string
$attrs array
$text string

x() public méthode

Set or append XML.
public x ( JAXLXmlAccess $xml, boolean $append = false ) : JAXLXml
$xml JAXLXmlAccess
$append boolean
Résultat JAXLXml

Property Details

$parent public_oe property

public $parent

$rover public_oe property

public $rover

$xml public_oe property

public $xml