PHP Класс Laravel\Envoy\Compiler

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$compilers array All of the available compiler functions.
$contentTags array Array of opening and closing tags for echos.
$serverCompilers array All of the available compiler functions.

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

Метод Описание
compile ( string $value, boolean $serversOnly = false ) : string Compile the given Envoy template contents.
compileEchoDefaults ( string $value ) : string Compile the default values for the echo statement.
compileInclude ( string $value ) : string Compile an @include into a PHP include statement.
compileSetupStart ( string $value ) : string Compile setup section begin statement into PHP start tag.
compileSetupStop ( string $value ) : string Compile setup section stop statement into PHP end tag.
createMatcher ( string $function ) : string Get the regular expression for a generic Envoy function.
createOpenMatcher ( string $function ) : string Get the regular expression for a generic Envoy function.
createPlainMatcher ( string $function ) : string Create a plain Envoy matcher.

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

Метод Описание
compileAfter ( string $value ) : string Compile Envoy after statements into valid PHP.
compileAfterStop ( string $value ) : string Compile Envoy after stop statements into valid PHP.
compileClosings ( string $value ) : string Compile Envoy structure closings into valid PHP.
compileComments ( string $value ) : string Compile Envoy comments into valid PHP.
compileEchos ( string $value ) : string Compile Envoy echos into valid PHP.
compileElse ( string $value ) : string Compile Envoy else statements into valid PHP.
compileEndUnless ( string $value ) : string Compile Envoy end unless statements into valid PHP.
compileError ( string $value ) : string Compile Envoy error statements into valid PHP.
compileErrorStop ( string $value ) : string Compile Envoy error stop statements into valid PHP.
compileFinished ( string $value ) : string Compile Envoy finished statements into valid PHP.
compileFinishedStop ( string $value ) : string Compile Envoy finished stop statements into valid PHP.
compileHipchat ( string $value ) : string Compile Envoy HipChat statements into valid PHP.
compileImports ( string $value ) : string Compile Envoy imports into valid PHP.
compileMacroStart ( string $value ) : string Compile Envoy macro start statements into valid PHP.
compileMacroStop ( string $value ) : string Compile Envoy macro stop statements into valid PHP.
compileOpenings ( string $value ) : string Compile Envoy structure openings into valid PHP.
compileRegularEchos ( string $value ) : string Compile the "regular" echo statements.
compileServers ( string $value ) : string Compile Envoy server statements into valid PHP.
compileSets ( string $value ) : string Compile Envoy sets into valid PHP.
compileSlack ( string $value ) : string Compile Envoy Slack statements into valid PHP.
compileTaskStart ( string $value ) : string Compile Envoy task start statements into valid PHP.
compileTaskStop ( string $value ) : string Compile Envoy task stop statements into valid PHP.
compileUnless ( string $value ) : string Compile Envoy unless statements into valid PHP.

Приватные методы

Метод Описание
initializeVariables ( string $value ) : string Initialize the variables included in the Envoy template.

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

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

Compile the given Envoy template contents.
public compile ( string $value, boolean $serversOnly = false ) : string
$value string
$serversOnly boolean
Результат string

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

Compile Envoy after statements into valid PHP.
protected compileAfter ( string $value ) : string
$value string
Результат string

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

Compile Envoy after stop statements into valid PHP.
protected compileAfterStop ( string $value ) : string
$value string
Результат string

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

Compile Envoy structure closings into valid PHP.
protected compileClosings ( string $value ) : string
$value string
Результат string

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

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

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

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

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

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

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

Compile Envoy else statements into valid PHP.
protected compileElse ( string $value ) : string
$value string
Результат string

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

Compile Envoy end unless statements into valid PHP.
protected compileEndUnless ( string $value ) : string
$value string
Результат string

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

Compile Envoy error statements into valid PHP.
protected compileError ( string $value ) : string
$value string
Результат string

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

Compile Envoy error stop statements into valid PHP.
protected compileErrorStop ( string $value ) : string
$value string
Результат string

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

Compile Envoy finished statements into valid PHP.
protected compileFinished ( string $value ) : string
$value string
Результат string

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

Compile Envoy finished stop statements into valid PHP.
protected compileFinishedStop ( string $value ) : string
$value string
Результат string

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

Compile Envoy HipChat statements into valid PHP.
protected compileHipchat ( string $value ) : string
$value string
Результат string

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

Compile Envoy imports into valid PHP.
protected compileImports ( string $value ) : string
$value string
Результат string

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

Compile an @include into a PHP include statement.
public compileInclude ( string $value ) : string
$value string
Результат string

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

Compile Envoy macro start statements into valid PHP.
protected compileMacroStart ( string $value ) : string
$value string
Результат string

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

Compile Envoy macro stop statements into valid PHP.
protected compileMacroStop ( string $value ) : string
$value string
Результат string

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

Compile Envoy structure openings into valid PHP.
protected compileOpenings ( string $value ) : string
$value string
Результат string

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

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

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

Compile Envoy server statements into valid PHP.
protected compileServers ( string $value ) : string
$value string
Результат string

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

Compile Envoy sets into valid PHP.
protected compileSets ( string $value ) : string
$value string
Результат string

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

Compile setup section begin statement into PHP start tag.
public compileSetupStart ( string $value ) : string
$value string
Результат string

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

Compile setup section stop statement into PHP end tag.
public compileSetupStop ( string $value ) : string
$value string
Результат string

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

Compile Envoy Slack statements into valid PHP.
protected compileSlack ( string $value ) : string
$value string
Результат string

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

Compile Envoy task start statements into valid PHP.
protected compileTaskStart ( string $value ) : string
$value string
Результат string

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

Compile Envoy task stop statements into valid PHP.
protected compileTaskStop ( string $value ) : string
$value string
Результат string

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

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

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

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

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

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

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

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

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

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

All of the available compiler functions.
protected array $compilers
Результат array

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

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

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

All of the available compiler functions.
protected array $serverCompilers
Результат array