PHP 클래스 Jade\Compiler

파일 보기 프로젝트 열기: kylekatarnls/jade-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$buffer array
$filename string
$filters array
$jade Jade
$parentIndents
$quote string
$xml

공개 메소드들

메소드 설명
__construct ( array/Jade $options = [], array $filters = [], $filename = null )
compile ( $node ) : string
handleCode ( $input, string $name = '' ) : array
handleString ( $input ) : array
interpolate ( string $text ) : mixed
subCompiler ( ) : Compiler Get a compiler with the same settings.
wrapInPhp ( $code ) : string Return code wrapped in PHP tags.
wrapOutPhp ( $code ) : string Return code wrapped out of a PHP code.

보호된 메소드들

메소드 설명
apply ( $method, $arguments ) : mixed
buffer ( $line, null $indent = null )
closingTag ( ) : string php closing tag depanding on the pretty print setting.
createCode ( $code ) : string
createPhpBlock ( $code, null $statements = null ) : string
createStatements ( ) : array
handleArgumentValue ( $arg )
handleCodePhp ( $input, $name = '' )
interpolateFromCapture ( array $match ) : string
isConstant ( string $str ) : boolean | integer
renderPhpStatements ( $code, null $statements = null ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( array/Jade $options = [], array $filters = [], $filename = null )
$options array/Jade
$filters array

apply() 보호된 메소드

protected apply ( $method, $arguments ) : mixed
$method
$arguments
리턴 mixed

buffer() 보호된 메소드

protected buffer ( $line, null $indent = null )
$line
$indent null

closingTag() 보호된 메소드

php closing tag depanding on the pretty print setting.
protected closingTag ( ) : string
리턴 string

compile() 공개 메소드

public compile ( $node ) : string
$node
리턴 string

createCode() 보호된 메소드

protected createCode ( $code ) : string
$code
리턴 string

createPhpBlock() 보호된 메소드

protected createPhpBlock ( $code, null $statements = null ) : string
$code
$statements null
리턴 string

createStatements() 보호된 메소드

protected createStatements ( ) : array
리턴 array

handleArgumentValue() 보호된 메소드

protected handleArgumentValue ( $arg )

handleCode() 공개 메소드

public handleCode ( $input, string $name = '' ) : array
$input
$name string
리턴 array

handleCodePhp() 보호된 메소드

protected handleCodePhp ( $input, $name = '' )

handleString() 공개 메소드

public handleString ( $input ) : array
$input
리턴 array

interpolate() 공개 메소드

public interpolate ( string $text ) : mixed
$text string
리턴 mixed

interpolateFromCapture() 보호된 메소드

protected interpolateFromCapture ( array $match ) : string
$match array
리턴 string

isConstant() 보호된 메소드

protected isConstant ( string $str ) : boolean | integer
$str string
리턴 boolean | integer

renderPhpStatements() 보호된 메소드

protected renderPhpStatements ( $code, null $statements = null ) : string
$code
$statements null
리턴 string

subCompiler() 공개 메소드

Get a compiler with the same settings.
public subCompiler ( ) : Compiler
리턴 Compiler

wrapInPhp() 공개 메소드

Return code wrapped in PHP tags.
public wrapInPhp ( $code ) : string
리턴 string

wrapOutPhp() 공개 메소드

Return code wrapped out of a PHP code.
public wrapOutPhp ( $code ) : string
리턴 string

프로퍼티 상세

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

protected array $buffer
리턴 array

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

protected string $filename
리턴 string

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

protected array $filters
리턴 array

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

protected Jade,jade $jade
리턴 Jade

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

protected $parentIndents

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

protected string $quote
리턴 string

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

protected $xml