PHP Класс FOF30\View\Compiler\Blade

Наследование: implements FOF30\View\Compiler\CompilerInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$compilers array All of the available compiler functions. Each one is called against every HTML block in the template.
$contentTags array Array of opening and closing tags for escaped echos.
$escapedTags array Array of opening and closing tags for escaped echos.
$extensions array All of the registered compiler extensions.
$footer array Array of footer lines to be added to template.
$forelseCounter integer Counter to keep track of nested forelse statements.
$isCacheable boolean Are the results of this engine cacheable?
$path string The file currently being compiled.

Открытые методы

Метод Описание
compile ( $path, array $forceParams = [] )
compileEchoDefaults ( string $value ) : string Compile the default values for the echo statement.
compileString ( string $value ) : string Compile the given Blade template contents.
createMatcher ( string $function ) : string Get the regular expression for a generic Blade function.
createOpenMatcher ( string $function ) : string Get the regular expression for a generic Blade function.
createPlainMatcher ( string $function ) : string Create a plain Blade matcher.
extend ( callable $compiler ) : void Register a custom Blade compiler.
getContentTags ( ) : string Gets the content tags used for the compiler.
getEscapedContentTags ( ) : string Gets the escaped content tags used for the compiler.
getPath ( ) : string Get the path currently being compiled.
isCacheable ( ) : mixed Are the results of this compiler engine cacheable? If the engine makes use of the forcedParams it must return false.
setContentTags ( string $openTag, string $closeTag, boolean $escaped = false ) : void Sets the content tags used for the compiler.
setEscapedContentTags ( string $openTag, string $closeTag ) : void Sets the escaped content tags used for the compiler.
setPath ( string $path ) : void Set the path currently being compiled.

Защищенные методы

Метод Описание
compileAppend ( string $expression ) : string Compile the append statements into valid PHP.
compileComments ( string $value ) : string Compile Blade comments into valid PHP.
compileCss ( string $expression ) : string Compile the css statements into valid PHP.
compileEach ( string $expression ) : string Compile the each statements into valid PHP.
compileEchos ( string $value ) : string Compile Blade echos into valid PHP.
compileEditor ( string $expression ) : string Compile the editor statements 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 forelse statements into valid PHP.
compileEndRepeatable ( string $expression ) : string Compile the end endRepeatable statements into valid PHP.
compileEndfor ( string $expression ) : string Compile the end-for statements into valid PHP.
compileEndforeach ( string $expression ) : string Compile the end-for-each statements into valid PHP.
compileEndforelse ( string $expression ) : string Compile the end-for-else statements into valid PHP.
compileEndif ( string $expression ) : string Compile the end-if statements into valid PHP.
compileEndpush ( string $expression ) : string Compile the endpush statements into valid PHP.
compileEndsection ( string $expression ) : string Compile the end-section statements into valid PHP.
compileEndunless ( string $expression ) : string Compile the end unless statements into valid PHP.
compileEndwhile ( string $expression ) : string Compile the end-while statements into valid PHP.
compileEscapedEchos ( string $value ) : string Compile the escaped echo statements.
compileEscapedEchosCallback ( array $matches ) : string Callback for compileEscapedEchos, since $this is not allowed in Closures under PHP 5.3.
compileExtends ( string $expression ) : string Compile the extends statements into valid PHP.
compileExtensions ( string $value ) : string Execute the user defined extensions.
compileFor ( string $expression ) : string Compile the for statements into valid PHP.
compileForeach ( string $expression ) : string Compile the foreach statements into valid PHP.
compileForelse ( string $expression ) : string Compile the forelse 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.
compileInlineCss ( string $expression ) : string Compile the inlineCss statements into valid PHP.
compileInlineJs ( string $expression ) : string Compile the inlineJs statements into valid PHP.
compileJhtml ( string $expression ) : string Compile the jhtml statements into valid PHP.
compileJs ( string $expression ) : string Compile the js statements into valid PHP.
compileLang ( string $expression ) : string Compile the lang statements into valid PHP.
compileLess ( string $expression ) : string Compile the less statements into valid PHP.
compileMedia ( string $expression ) : string Compile the media statements into valid PHP.
compileModule ( string $expression ) : string Compile the module statements into valid PHP.
compileModules ( string $expression ) : string Compile the modules statements into valid PHP.
compileOverwrite ( string $expression ) : string Compile the overwrite statements into valid PHP.
compilePush ( string $expression ) : string Compile the push statements into valid PHP.
compileRegularEchos ( string $value ) : string Compile the "regular" echo statements.
compileRegularEchosCallback ( array $matches ) : string Callback for compileRegularEchos, since $this is not allowed in Closures under PHP 5.3.
compileRepeatable ( string $expression ) : string Compile the end repeatable statements into valid PHP.
compileRoute ( string $expression ) : string Compile the route statements into valid PHP.
compileSection ( string $expression ) : string Compile the section statements into valid PHP.
compileShow ( string $expression ) : string Compile the show statements into valid PHP.
compileSprintf ( string $expression ) : string Compile the sprintf 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 "@"
compileStatementsCallback ( $match ) : string Callback for compileStatements, since $this is not allowed in Closures under PHP 5.3.
compileStop ( string $expression ) : string Compile the stop statements into valid PHP.
compileToken ( string $expression ) : string Compile the token statements into valid PHP.
compileUnless ( string $expression ) : string Compile the unless statements into valid PHP.
compileWhile ( string $expression ) : string Compile the while statements into valid PHP.
compileYield ( string $expression ) : string Compile the yield statements into valid PHP.
compileYieldRepeatable ( string $expression ) : string Compile the end yieldRepeatable statements into valid PHP.
getTags ( boolean $escaped = false ) : array Gets the tags used for the compiler.
parseToken ( array $token ) : string Parse the tokens from the template.

Описание методов

compile() публичный Метод

public compile ( $path, array $forceParams = [] )
$forceParams array

compileAppend() защищенный Метод

Compile the append statements into valid PHP.
protected compileAppend ( string $expression ) : string
$expression string
Результат string

compileComments() защищенный Метод

Compile Blade comments into valid PHP.
protected compileComments ( string $value ) : string
$value string
Результат string

compileCss() защищенный Метод

Compile the css statements into valid PHP.
protected compileCss ( string $expression ) : string
$expression string
Результат string

compileEach() защищенный Метод

Compile the each statements into valid PHP.
protected compileEach ( string $expression ) : string
$expression string
Результат string

compileEchoDefaults() публичный Метод

Compile the default values for the echo statement.
public compileEchoDefaults ( string $value ) : string
$value string
Результат string

compileEchos() защищенный Метод

Compile Blade echos into valid PHP.
protected compileEchos ( string $value ) : string
$value string
Результат string

compileEditor() защищенный Метод

Compile the editor statements into valid PHP.
protected compileEditor ( string $expression ) : string
$expression 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 forelse statements into valid PHP.
protected compileEmpty ( string $expression ) : string
$expression string
Результат string

compileEndRepeatable() защищенный Метод

Compile the end endRepeatable statements into valid PHP.
protected compileEndRepeatable ( string $expression ) : string
$expression string
Результат string

compileEndfor() защищенный Метод

Compile the end-for statements into valid PHP.
protected compileEndfor ( string $expression ) : string
$expression string
Результат string

compileEndforeach() защищенный Метод

Compile the end-for-each statements into valid PHP.
protected compileEndforeach ( string $expression ) : string
$expression string
Результат string

compileEndforelse() защищенный Метод

Compile the end-for-else statements into valid PHP.
protected compileEndforelse ( string $expression ) : string
$expression string
Результат string

compileEndif() защищенный Метод

Compile the end-if statements into valid PHP.
protected compileEndif ( string $expression ) : string
$expression string
Результат string

compileEndpush() защищенный Метод

Compile the endpush 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

compileEndunless() защищенный Метод

Compile the end unless statements into valid PHP.
protected compileEndunless ( string $expression ) : string
$expression string
Результат string

compileEndwhile() защищенный Метод

Compile the end-while statements into valid PHP.
protected compileEndwhile ( string $expression ) : string
$expression string
Результат string

compileEscapedEchos() защищенный Метод

Compile the escaped echo statements.
protected compileEscapedEchos ( string $value ) : string
$value string
Результат string

compileEscapedEchosCallback() защищенный Метод

Callback for compileEscapedEchos, since $this is not allowed in Closures under PHP 5.3.
protected compileEscapedEchosCallback ( array $matches ) : string
$matches array
Результат string

compileExtends() защищенный Метод

Compile the extends statements into valid PHP.
protected compileExtends ( string $expression ) : string
$expression string
Результат string

compileExtensions() защищенный Метод

Execute the user defined extensions.
protected compileExtensions ( string $value ) : string
$value string
Результат string

compileFor() защищенный Метод

Compile the for statements into valid PHP.
protected compileFor ( string $expression ) : string
$expression string
Результат string

compileForeach() защищенный Метод

Compile the foreach statements into valid PHP.
protected compileForeach ( string $expression ) : string
$expression string
Результат string

compileForelse() защищенный Метод

Compile the forelse statements into valid PHP.
protected compileForelse ( 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

compileInlineCss() защищенный Метод

Compile the inlineCss statements into valid PHP.
protected compileInlineCss ( string $expression ) : string
$expression string
Результат string

compileInlineJs() защищенный Метод

Compile the inlineJs statements into valid PHP.
protected compileInlineJs ( string $expression ) : string
$expression string
Результат string

compileJhtml() защищенный Метод

Compile the jhtml statements into valid PHP.
protected compileJhtml ( string $expression ) : string
$expression string
Результат string

compileJs() защищенный Метод

Compile the js statements into valid PHP.
protected compileJs ( string $expression ) : string
$expression string
Результат string

compileLang() защищенный Метод

Compile the lang statements into valid PHP.
protected compileLang ( string $expression ) : string
$expression string
Результат string

compileLess() защищенный Метод

Compile the less statements into valid PHP.
protected compileLess ( string $expression ) : string
$expression string
Результат string

compileMedia() защищенный Метод

Compile the media statements into valid PHP.
protected compileMedia ( string $expression ) : string
$expression string
Результат string

compileModule() защищенный Метод

Compile the module statements into valid PHP.
protected compileModule ( string $expression ) : string
$expression string
Результат string

compileModules() защищенный Метод

Compile the modules statements into valid PHP.
protected compileModules ( string $expression ) : string
$expression string
Результат string

compileOverwrite() защищенный Метод

Compile the overwrite statements into valid PHP.
protected compileOverwrite ( string $expression ) : string
$expression string
Результат string

compilePush() защищенный Метод

Compile the push statements into valid PHP.
protected compilePush ( string $expression ) : string
$expression string
Результат string

compileRegularEchos() защищенный Метод

Compile the "regular" echo statements.
protected compileRegularEchos ( string $value ) : string
$value string
Результат string

compileRegularEchosCallback() защищенный Метод

Callback for compileRegularEchos, since $this is not allowed in Closures under PHP 5.3.
protected compileRegularEchosCallback ( array $matches ) : string
$matches array
Результат string

compileRepeatable() защищенный Метод

Compile the end repeatable statements into valid PHP.
protected compileRepeatable ( string $expression ) : string
$expression string
Результат string

compileRoute() защищенный Метод

Compile the route statements into valid PHP.
protected compileRoute ( string $expression ) : string
$expression string
Результат string

compileSection() защищенный Метод

Compile the section statements into valid PHP.
protected compileSection ( string $expression ) : string
$expression string
Результат string

compileShow() защищенный Метод

Compile the show statements into valid PHP.
protected compileShow ( string $expression ) : string
$expression string
Результат string

compileSprintf() защищенный Метод

Compile the sprintf statements into valid PHP.
protected compileSprintf ( 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

compileStatementsCallback() защищенный Метод

Callback for compileStatements, since $this is not allowed in Closures under PHP 5.3.
protected compileStatementsCallback ( $match ) : string
$match
Результат string

compileStop() защищенный Метод

Compile the stop statements into valid PHP.
protected compileStop ( string $expression ) : string
$expression string
Результат string

compileString() публичный Метод

Compile the given Blade template contents.
public compileString ( string $value ) : string
$value string
Результат string

compileToken() защищенный Метод

Compile the token statements into valid PHP.
protected compileToken ( string $expression ) : string
$expression string
Результат string

compileUnless() защищенный Метод

Compile the unless statements into valid PHP.
protected compileUnless ( string $expression ) : string
$expression string
Результат string

compileWhile() защищенный Метод

Compile the while statements into valid PHP.
protected compileWhile ( string $expression ) : string
$expression string
Результат string

compileYield() защищенный Метод

Compile the yield statements into valid PHP.
protected compileYield ( string $expression ) : string
$expression string
Результат string

compileYieldRepeatable() защищенный Метод

Compile the end yieldRepeatable statements into valid PHP.
protected compileYieldRepeatable ( string $expression ) : string
$expression string
Результат string

createMatcher() публичный Метод

Get the regular expression for a generic Blade function.
public createMatcher ( string $function ) : string
$function string
Результат string

createOpenMatcher() публичный Метод

Get the regular expression for a generic Blade function.
public createOpenMatcher ( string $function ) : string
$function string
Результат string

createPlainMatcher() публичный Метод

Create a plain Blade matcher.
public createPlainMatcher ( string $function ) : string
$function string
Результат string

extend() публичный Метод

Register a custom Blade compiler.
public extend ( callable $compiler ) : void
$compiler callable
Результат void

getContentTags() публичный Метод

Gets the content tags used for the compiler.
public getContentTags ( ) : string
Результат string

getEscapedContentTags() публичный Метод

Gets the escaped content tags used for the compiler.
public getEscapedContentTags ( ) : string
Результат string

getPath() публичный Метод

Get the path currently being compiled.
public getPath ( ) : string
Результат string

getTags() защищенный Метод

Gets the tags used for the compiler.
protected getTags ( boolean $escaped = false ) : array
$escaped boolean
Результат array

isCacheable() публичный Метод

Are the results of this compiler engine cacheable? If the engine makes use of the forcedParams it must return false.
public isCacheable ( ) : mixed
Результат mixed

parseToken() защищенный Метод

Parse the tokens from the template.
protected parseToken ( array $token ) : string
$token array
Результат string

setContentTags() публичный Метод

Sets the content tags used for the compiler.
public setContentTags ( string $openTag, string $closeTag, boolean $escaped = false ) : void
$openTag string
$closeTag string
$escaped boolean
Результат void

setEscapedContentTags() публичный Метод

Sets the escaped content tags used for the compiler.
public setEscapedContentTags ( string $openTag, string $closeTag ) : void
$openTag string
$closeTag string
Результат void

setPath() публичный Метод

Set the path currently being compiled.
public setPath ( string $path ) : void
$path string
Результат void

Описание свойств

$compilers защищенное свойство

All of the available compiler functions. Each one is called against every HTML block in the template.
protected array $compilers
Результат array

$contentTags защищенное свойство

Array of opening and closing tags for escaped echos.
protected array $contentTags
Результат array

$escapedTags защищенное свойство

Array of opening and closing tags for escaped echos.
protected array $escapedTags
Результат array

$extensions защищенное свойство

All of the registered compiler extensions.
protected array $extensions
Результат array

$forelseCounter защищенное свойство

Counter to keep track of nested forelse statements.
protected int $forelseCounter
Результат integer

$isCacheable защищенное свойство

Are the results of this engine cacheable?
protected bool $isCacheable
Результат boolean

$path защищенное свойство

The file currently being compiled.
protected string $path
Результат string