PHP Class Laravel\Envoy\Compiler

Afficher le fichier Open project: laravel/envoy Class Usage Examples

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
initializeVariables ( string $value ) : string Initialize the variables included in the Envoy template.

Method Details

compile() public méthode

Compile the given Envoy template contents.
public compile ( string $value, boolean $serversOnly = false ) : string
$value string
$serversOnly boolean
Résultat string

compileAfter() protected méthode

Compile Envoy after statements into valid PHP.
protected compileAfter ( string $value ) : string
$value string
Résultat string

compileAfterStop() protected méthode

Compile Envoy after stop statements into valid PHP.
protected compileAfterStop ( string $value ) : string
$value string
Résultat string

compileClosings() protected méthode

Compile Envoy structure closings into valid PHP.
protected compileClosings ( string $value ) : string
$value string
Résultat string

compileComments() protected méthode

Compile Envoy comments into valid PHP.
protected compileComments ( string $value ) : string
$value string
Résultat string

compileEchoDefaults() public méthode

Compile the default values for the echo statement.
public compileEchoDefaults ( string $value ) : string
$value string
Résultat string

compileEchos() protected méthode

Compile Envoy echos into valid PHP.
protected compileEchos ( string $value ) : string
$value string
Résultat string

compileElse() protected méthode

Compile Envoy else statements into valid PHP.
protected compileElse ( string $value ) : string
$value string
Résultat string

compileEndUnless() protected méthode

Compile Envoy end unless statements into valid PHP.
protected compileEndUnless ( string $value ) : string
$value string
Résultat string

compileError() protected méthode

Compile Envoy error statements into valid PHP.
protected compileError ( string $value ) : string
$value string
Résultat string

compileErrorStop() protected méthode

Compile Envoy error stop statements into valid PHP.
protected compileErrorStop ( string $value ) : string
$value string
Résultat string

compileFinished() protected méthode

Compile Envoy finished statements into valid PHP.
protected compileFinished ( string $value ) : string
$value string
Résultat string

compileFinishedStop() protected méthode

Compile Envoy finished stop statements into valid PHP.
protected compileFinishedStop ( string $value ) : string
$value string
Résultat string

compileHipchat() protected méthode

Compile Envoy HipChat statements into valid PHP.
protected compileHipchat ( string $value ) : string
$value string
Résultat string

compileImports() protected méthode

Compile Envoy imports into valid PHP.
protected compileImports ( string $value ) : string
$value string
Résultat string

compileInclude() public méthode

Compile an @include into a PHP include statement.
public compileInclude ( string $value ) : string
$value string
Résultat string

compileMacroStart() protected méthode

Compile Envoy macro start statements into valid PHP.
protected compileMacroStart ( string $value ) : string
$value string
Résultat string

compileMacroStop() protected méthode

Compile Envoy macro stop statements into valid PHP.
protected compileMacroStop ( string $value ) : string
$value string
Résultat string

compileOpenings() protected méthode

Compile Envoy structure openings into valid PHP.
protected compileOpenings ( string $value ) : string
$value string
Résultat string

compileRegularEchos() protected méthode

Compile the "regular" echo statements.
protected compileRegularEchos ( string $value ) : string
$value string
Résultat string

compileServers() protected méthode

Compile Envoy server statements into valid PHP.
protected compileServers ( string $value ) : string
$value string
Résultat string

compileSets() protected méthode

Compile Envoy sets into valid PHP.
protected compileSets ( string $value ) : string
$value string
Résultat string

compileSetupStart() public méthode

Compile setup section begin statement into PHP start tag.
public compileSetupStart ( string $value ) : string
$value string
Résultat string

compileSetupStop() public méthode

Compile setup section stop statement into PHP end tag.
public compileSetupStop ( string $value ) : string
$value string
Résultat string

compileSlack() protected méthode

Compile Envoy Slack statements into valid PHP.
protected compileSlack ( string $value ) : string
$value string
Résultat string

compileTaskStart() protected méthode

Compile Envoy task start statements into valid PHP.
protected compileTaskStart ( string $value ) : string
$value string
Résultat string

compileTaskStop() protected méthode

Compile Envoy task stop statements into valid PHP.
protected compileTaskStop ( string $value ) : string
$value string
Résultat string

compileUnless() protected méthode

Compile Envoy unless statements into valid PHP.
protected compileUnless ( string $value ) : string
$value string
Résultat string

createMatcher() public méthode

Get the regular expression for a generic Envoy function.
public createMatcher ( string $function ) : string
$function string
Résultat string

createOpenMatcher() public méthode

Get the regular expression for a generic Envoy function.
public createOpenMatcher ( string $function ) : string
$function string
Résultat string

createPlainMatcher() public méthode

Create a plain Envoy matcher.
public createPlainMatcher ( string $function ) : string
$function string
Résultat string

Property Details

$compilers protected_oe property

All of the available compiler functions.
protected array $compilers
Résultat array

$contentTags protected_oe property

Array of opening and closing tags for echos.
protected array $contentTags
Résultat array

$serverCompilers protected_oe property

All of the available compiler functions.
protected array $serverCompilers
Résultat array