PHP 클래스 JAXLXml, JAXL

저자: abhinavsingh
파일 보기 프로젝트 열기: jaxl/JAXL 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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