PHP 클래스 ManaPHP\Renderer\Engine\Sword\Compiler

상속: extends ManaPHP\Component
파일 보기 프로젝트 열기: manaphp/manaphp

보호된 프로퍼티들

프로퍼티 타입 설명
$_directives array This was implemented as a more usable "extend" in 5.1.
$_escapedTags array Array of opening and closing tags for escaped echos.
$_forElseCounter integer Counter to keep track of nested forElse statements.
$_rawTags array Array of opening and closing tags for raw echos.

공개 메소드들

메소드 설명
compileString ( string $value ) : string Compile the given Blade template contents.
directive ( string $name, callable $handler ) : static Register a handler for custom directives.

보호된 메소드들

메소드 설명
_compileAllow ( string $expression ) : string Compile the allow statements into valid PHP.
_compileAppend ( string $expression ) : string Compile the append statements into valid PHP.
_compileAsset ( string $expression ) : string Compile the Asset statements into valid PHP.
_compileBreak ( string $expression ) : string Compile the break statements into valid PHP.
_compileCan ( string $expression ) : string Compile the can statements into valid PHP.
_compileCannot ( string $expression ) : string Compile the cannot statements into valid PHP.
_compileComments ( string $value ) : string Compile Blade comments into valid PHP.
_compileContent ( string $expression ) : string Compile the break statements into valid PHP.
_compileContinue ( string $expression ) : string Compile the break statements into valid PHP.
_compileCsrfToken ( string $expression ) : string Compile the json statements into valid PHP.
_compileDebugger ( string $expression ) : string Compile the json statements into valid PHP.
_compileEchos ( string $value ) : string Compile Blade echos into valid PHP.
_compileElse ( string $expression ) : string Compile the else statements into valid PHP.
_compileElseIf ( string $expression ) : string Compile the else-if statements into valid PHP.
_compileEmpty ( string $expression ) : string Compile the empty statements into valid PHP.
_compileEndCan ( string $expression ) : string Compile the end-can statements into valid PHP.
_compileEndCannot ( string $expression ) : string Compile the end-cannot statements into valid PHP.
_compileEndFor ( string $expression ) : string Compile the end-for statements into valid PHP.
_compileEndForElse ( string $expression ) : string Compile the end-for-else statements into valid PHP.
_compileEndForeach ( string $expression ) : string Compile the end-for-each statements into valid PHP.
_compileEndIf ( string $expression ) : string Compile the end-if statements into valid PHP.
_compileEndPhp ( string $expression ) : string Compile the break statements into valid PHP.
_compileEndPush ( string $expression ) : string Compile the end push statements into valid PHP.
_compileEndSection ( string $expression ) : string Compile the end-section statements into valid PHP.
_compileEndWhile ( string $expression ) : string Compile the end-while statements into valid PHP.
_compileEol ( string $expression ) : string Compile the eol statements into valid PHP.
_compileEscapedEchos ( string $value ) : string Compile the escaped echo statements.
_compileFlash ( string $expression ) : string Compile the Asset statements into valid PHP.
_compileFor ( string $expression ) : string Compile the for statements into valid PHP.
_compileForElse ( string $expression ) : string Compile the for else statements into valid PHP.
_compileForeach ( string $expression ) : string Compile the foreach statements into valid PHP.
_compileIf ( string $expression ) : string Compile the if statements into valid PHP.
_compileInclude ( string $expression ) : string Compile the include statements into valid PHP.
_compileJson ( string $expression ) : string Compile the json statements into valid PHP.
_compileLayout ( string $expression ) : string Compile the break statements into valid PHP.
_compileOverwrite ( string $expression ) : string Compile the overwrite statements into valid PHP.
_compilePagination ( string $expression ) : string Compile the json statements into valid PHP.
_compilePartial ( string $expression ) : string Compile the partial statements into valid PHP.
_compilePhp ( string $expression ) : string Compile the break statements into valid PHP.
_compilePush ( string $expression ) : string Compile the push statements into valid PHP.
_compileRawEchos ( string $value ) : string Compile the "raw" echo statements.
_compileSection ( string $expression ) : string Compile the section statements into valid PHP.
_compileStack ( string $expression ) : string Compile the stack statements into the content.
_compileStatements ( string $value ) : mixed Compile Blade statements that start with "@".
_compileStop ( string $expression ) : string Compile the stop statements into valid PHP.
_compileTranslate ( string $expression ) : string Compile the json statements into valid PHP.
_compileUrl ( string $expression ) : string Compile the Url statements into valid PHP.
_compileWhile ( string $expression ) : string Compile the while statements into valid PHP.
_compileWidget ( string $expression ) : string Compile the widget statements into valid PHP.
_compileYield ( string $expression ) : string Compile the yield statements into valid PHP.
_getEchoMethods ( ) : array Get the echo methods in the proper order for compilation.

비공개 메소드들

메소드 설명
_compileEchoDefaults ( string $value ) : string Compile the default values for the echo statement.

메소드 상세

_compileAllow() 보호된 메소드

Compile the allow statements into valid PHP.
protected _compileAllow ( string $expression ) : string
$expression string
리턴 string

_compileAppend() 보호된 메소드

Compile the append statements into valid PHP.
protected _compileAppend ( string $expression ) : string
$expression string
리턴 string

_compileAsset() 보호된 메소드

Compile the Asset statements into valid PHP.
protected _compileAsset ( string $expression ) : string
$expression string
리턴 string

_compileBreak() 보호된 메소드

Compile the break statements into valid PHP.
protected _compileBreak ( string $expression ) : string
$expression string
리턴 string

_compileCan() 보호된 메소드

Compile the can statements into valid PHP.
protected _compileCan ( string $expression ) : string
$expression string
리턴 string

_compileCannot() 보호된 메소드

Compile the cannot statements into valid PHP.
protected _compileCannot ( string $expression ) : string
$expression string
리턴 string

_compileComments() 보호된 메소드

Compile Blade comments into valid PHP.
protected _compileComments ( string $value ) : string
$value string
리턴 string

_compileContent() 보호된 메소드

Compile the break statements into valid PHP.
protected _compileContent ( string $expression ) : string
$expression string
리턴 string

_compileContinue() 보호된 메소드

Compile the break statements into valid PHP.
protected _compileContinue ( string $expression ) : string
$expression string
리턴 string

_compileCsrfToken() 보호된 메소드

Compile the json statements into valid PHP.
protected _compileCsrfToken ( string $expression ) : string
$expression string
리턴 string

_compileDebugger() 보호된 메소드

Compile the json statements into valid PHP.
protected _compileDebugger ( string $expression ) : string
$expression string
리턴 string

_compileEchos() 보호된 메소드

Compile Blade echos into valid PHP.
protected _compileEchos ( string $value ) : string
$value string
리턴 string

_compileElse() 보호된 메소드

Compile the else statements into valid PHP.
protected _compileElse ( string $expression ) : string
$expression string
리턴 string

_compileElseIf() 보호된 메소드

Compile the else-if statements into valid PHP.
protected _compileElseIf ( string $expression ) : string
$expression string
리턴 string

_compileEmpty() 보호된 메소드

Compile the empty statements into valid PHP.
protected _compileEmpty ( string $expression ) : string
$expression string
리턴 string

_compileEndCan() 보호된 메소드

Compile the end-can statements into valid PHP.
protected _compileEndCan ( string $expression ) : string
$expression string
리턴 string

_compileEndCannot() 보호된 메소드

Compile the end-cannot statements into valid PHP.
protected _compileEndCannot ( string $expression ) : string
$expression string
리턴 string

_compileEndFor() 보호된 메소드

Compile the end-for statements into valid PHP.
protected _compileEndFor ( string $expression ) : string
$expression string
리턴 string

_compileEndForElse() 보호된 메소드

Compile the end-for-else statements into valid PHP.
protected _compileEndForElse ( string $expression ) : string
$expression string
리턴 string

_compileEndForeach() 보호된 메소드

Compile the end-for-each statements into valid PHP.
protected _compileEndForeach ( string $expression ) : string
$expression string
리턴 string

_compileEndIf() 보호된 메소드

Compile the end-if statements into valid PHP.
protected _compileEndIf ( string $expression ) : string
$expression string
리턴 string

_compileEndPhp() 보호된 메소드

Compile the break statements into valid PHP.
protected _compileEndPhp ( string $expression ) : string
$expression string
리턴 string

_compileEndPush() 보호된 메소드

Compile the end push statements into valid PHP.
protected _compileEndPush ( string $expression ) : string
$expression string
리턴 string

_compileEndSection() 보호된 메소드

Compile the end-section statements into valid PHP.
protected _compileEndSection ( string $expression ) : string
$expression string
리턴 string

_compileEndWhile() 보호된 메소드

Compile the end-while statements into valid PHP.
protected _compileEndWhile ( string $expression ) : string
$expression string
리턴 string

_compileEol() 보호된 메소드

Compile the eol statements into valid PHP.
protected _compileEol ( string $expression ) : string
$expression string
리턴 string

_compileEscapedEchos() 보호된 메소드

Compile the escaped echo statements.
protected _compileEscapedEchos ( string $value ) : string
$value string
리턴 string

_compileFlash() 보호된 메소드

Compile the Asset statements into valid PHP.
protected _compileFlash ( string $expression ) : string
$expression string
리턴 string

_compileFor() 보호된 메소드

Compile the for statements into valid PHP.
protected _compileFor ( string $expression ) : string
$expression string
리턴 string

_compileForElse() 보호된 메소드

Compile the for else statements into valid PHP.
protected _compileForElse ( string $expression ) : string
$expression string
리턴 string

_compileForeach() 보호된 메소드

Compile the foreach statements into valid PHP.
protected _compileForeach ( string $expression ) : string
$expression string
리턴 string

_compileIf() 보호된 메소드

Compile the if statements into valid PHP.
protected _compileIf ( string $expression ) : string
$expression string
리턴 string

_compileInclude() 보호된 메소드

Compile the include statements into valid PHP.
protected _compileInclude ( string $expression ) : string
$expression string
리턴 string

_compileJson() 보호된 메소드

Compile the json statements into valid PHP.
protected _compileJson ( string $expression ) : string
$expression string
리턴 string

_compileLayout() 보호된 메소드

Compile the break statements into valid PHP.
protected _compileLayout ( string $expression ) : string
$expression string
리턴 string

_compileOverwrite() 보호된 메소드

Compile the overwrite statements into valid PHP.
protected _compileOverwrite ( string $expression ) : string
$expression string
리턴 string

_compilePagination() 보호된 메소드

Compile the json statements into valid PHP.
protected _compilePagination ( string $expression ) : string
$expression string
리턴 string

_compilePartial() 보호된 메소드

Compile the partial statements into valid PHP.
protected _compilePartial ( string $expression ) : string
$expression string
리턴 string

_compilePhp() 보호된 메소드

Compile the break statements into valid PHP.
protected _compilePhp ( string $expression ) : string
$expression string
리턴 string

_compilePush() 보호된 메소드

Compile the push statements into valid PHP.
protected _compilePush ( string $expression ) : string
$expression string
리턴 string

_compileRawEchos() 보호된 메소드

Compile the "raw" echo statements.
protected _compileRawEchos ( string $value ) : string
$value string
리턴 string

_compileSection() 보호된 메소드

Compile the section statements into valid PHP.
protected _compileSection ( string $expression ) : string
$expression string
리턴 string

_compileStack() 보호된 메소드

Compile the stack statements into the content.
protected _compileStack ( string $expression ) : string
$expression string
리턴 string

_compileStatements() 보호된 메소드

Compile Blade statements that start with "@".
protected _compileStatements ( string $value ) : mixed
$value string
리턴 mixed

_compileStop() 보호된 메소드

Compile the stop statements into valid PHP.
protected _compileStop ( string $expression ) : string
$expression string
리턴 string

_compileTranslate() 보호된 메소드

Compile the json statements into valid PHP.
protected _compileTranslate ( string $expression ) : string
$expression string
리턴 string

_compileUrl() 보호된 메소드

Compile the Url statements into valid PHP.
protected _compileUrl ( string $expression ) : string
$expression string
리턴 string

_compileWhile() 보호된 메소드

Compile the while statements into valid PHP.
protected _compileWhile ( string $expression ) : string
$expression string
리턴 string

_compileWidget() 보호된 메소드

Compile the widget statements into valid PHP.
protected _compileWidget ( string $expression ) : string
$expression string
리턴 string

_compileYield() 보호된 메소드

Compile the yield statements into valid PHP.
protected _compileYield ( string $expression ) : string
$expression string
리턴 string

_getEchoMethods() 보호된 메소드

Get the echo methods in the proper order for compilation.
protected _getEchoMethods ( ) : array
리턴 array

compileString() 공개 메소드

Compile the given Blade template contents.
public compileString ( string $value ) : string
$value string
리턴 string

directive() 공개 메소드

Register a handler for custom directives.
public directive ( string $name, callable $handler ) : static
$name string
$handler callable
리턴 static

프로퍼티 상세

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

This was implemented as a more usable "extend" in 5.1.
protected array $_directives
리턴 array

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

Array of opening and closing tags for escaped echos.
protected array $_escapedTags
리턴 array

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

Counter to keep track of nested forElse statements.
protected int $_forElseCounter
리턴 integer

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

Array of opening and closing tags for raw echos.
protected array $_rawTags
리턴 array