PHP Class JAXLXml, JAXL

Author: abhinavsingh
Mostra file Open project: jaxl/JAXL Class Usage Examples

Public Properties

Property Type Description
$parent
$rover
$xml

Public Methods

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

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

public __destruct ( )

attrs() public method

Set or update attrs of element.
public attrs ( array $attrs ) : JAXLXml
$attrs array
return JAXLXml

c() public method

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

cnode() public method

Append child node.
public cnode ( JAXLXml $node ) : JAXLXml
$node JAXLXml
return JAXLXml

exists() public method

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

match_attrs() public method

Check that element matches by attrs.
public match_attrs ( array $attrs ) : boolean
$attrs array
return boolean

t() public method

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

to_string() public method

public to_string ( string $parent_ns = null ) : string
$parent_ns string
return string

top() public method

public top ( ) : JAXLXml
return JAXLXml

up() public method

public up ( ) : JAXLXml
return JAXLXml

update() public method

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 method

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

Property Details

$parent public_oe property

public $parent

$rover public_oe property

public $rover

$xml public_oe property

public $xml