PHP Класс JAXLXml, JAXL

Автор: abhinavsingh
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$parent
$rover
$xml

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

* 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 __destruct ( )

attrs() публичный Метод

Set or update attrs of element.
public attrs ( array $attrs ) : JAXLXml
$attrs array
Результат JAXLXml

c() публичный Метод

Create child.
public c ( string $name, string $ns = null, array $attrs = [], string $text = null ) : JAXLXml
$name string
$ns string
$attrs array
$text string
Результат JAXLXml

cnode() публичный Метод

Append child node.
public cnode ( JAXLXml $node ) : JAXLXml
$node JAXLXml
Результат JAXLXml

exists() публичный Метод

public exists ( string $name, string $ns = null, array $attrs = [] ) : JAXLXml | boolean
$name string
$ns string
$attrs array
Результат JAXLXml | boolean

match_attrs() публичный Метод

Check that element matches by attrs.
public match_attrs ( array $attrs ) : boolean
$attrs array
Результат boolean

t() публичный Метод

Set or append text.
public t ( string $text, boolean $append = false ) : JAXLXml
$text string
$append boolean
Результат JAXLXml

to_string() публичный Метод

public to_string ( string $parent_ns = null ) : string
$parent_ns string
Результат string

top() публичный Метод

public top ( ) : JAXLXml
Результат JAXLXml

up() публичный Метод

public up ( ) : JAXLXml
Результат JAXLXml

update() публичный Метод

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() публичный Метод

Set or append XML.
public x ( JAXLXmlAccess $xml, boolean $append = false ) : JAXLXml
$xml JAXLXmlAccess
$append boolean
Результат JAXLXml

Описание свойств

$parent публичное свойство

public $parent

$rover публичное свойство

public $rover

$xml публичное свойство

public $xml