PHP 클래스 FluentDOM\Transformer\JSONx

파일 보기 프로젝트 열기: fluentdom/fluentdom

공개 메소드들

메소드 설명
__construct ( DOMDocument $document ) Import a DOM document and use the JsonDOM rules to convert it into JSONx.
__toString ( ) : string Create a JSONX document and return it as xml string
addNode ( Document | Element $parent, DOMElement $node, boolean $addNameAttribute = FALSE )
getDocument ( ) : Document Create and return a JSONx document.

비공개 메소드들

메소드 설명
appendChildNodes ( DOMElement $target, DOMElement $source, boolean $addNameAttribute = FALSE )
getType ( DOMElement $node ) : string

메소드 상세

__construct() 공개 메소드

Import a DOM document and use the JsonDOM rules to convert it into JSONx.
public __construct ( DOMDocument $document )
$document DOMDocument

__toString() 공개 메소드

Create a JSONX document and return it as xml string
public __toString ( ) : string
리턴 string

addNode() 공개 메소드

public addNode ( Document | Element $parent, DOMElement $node, boolean $addNameAttribute = FALSE )
$parent FluentDOM\Document | FluentDOM\Element
$node DOMElement
$addNameAttribute boolean

getDocument() 공개 메소드

Create and return a JSONx document.
public getDocument ( ) : Document
리턴 FluentDOM\Document