PHP 클래스 Goetas\Twital\Compiler

저자: Asmir Mustafic ([email protected])
파일 보기 프로젝트 열기: goetas/twital 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$document DOMDocument
$lexerOptions array
$twital Twital

공개 메소드들

메소드 설명
__construct ( Twital $twital, array $lexerOptions = [] )
compile ( DOMDocument $doc ) : void
compileAttributes ( DOMNode $node )
compileChilds ( DOMNode $node )
compileElement ( DOMElement $node )
createControlNode ( string $content ) : DOMCDATASection
createPrintNode ( string $content ) : DOMCDATASection
getDocument ( ) : DOMDocument

비공개 메소드들

메소드 설명
getLexerOption ( $name )

메소드 상세

__construct() 공개 메소드

public __construct ( Twital $twital, array $lexerOptions = [] )
$twital Twital
$lexerOptions array

compile() 공개 메소드

public compile ( DOMDocument $doc ) : void
$doc DOMDocument
리턴 void

compileAttributes() 공개 메소드

public compileAttributes ( DOMNode $node )
$node DOMNode

compileChilds() 공개 메소드

public compileChilds ( DOMNode $node )
$node DOMNode

compileElement() 공개 메소드

public compileElement ( DOMElement $node )
$node DOMElement

createControlNode() 공개 메소드

public createControlNode ( string $content ) : DOMCDATASection
$content string
리턴 DOMCDATASection

createPrintNode() 공개 메소드

public createPrintNode ( string $content ) : DOMCDATASection
$content string
리턴 DOMCDATASection

getDocument() 공개 메소드

public getDocument ( ) : DOMDocument
리턴 DOMDocument

프로퍼티 상세

$document 보호되어 있는 프로퍼티

protected DOMDocument $document
리턴 DOMDocument

$lexerOptions 보호되어 있는 프로퍼티

protected array $lexerOptions
리턴 array

$twital 보호되어 있는 프로퍼티

protected Twital,Goetas\Twital $twital
리턴 Twital