PHP Класс ManaPHP\Renderer\Engine\Sword\Compiler

Наследование: extends ManaPHP\Component
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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