CompilesConditionals
trait CompilesConditionals (View source)
Properties
protected bool | $firstCaseInSwitch | Identifier for the first case in the switch statement. |
Methods
Compile the if-auth statements into valid PHP.
Compile the else-auth statements into valid PHP.
Compile the end-auth statements into valid PHP.
Compile the env statements into valid PHP.
Compile the end-env statements into valid PHP.
Compile the production statements into valid PHP.
Compile the end-production statements into valid PHP.
Compile the if-guest statements into valid PHP.
Compile the else-guest statements into valid PHP.
Compile the end-guest statements into valid PHP.
Compile the has-section statements into valid PHP.
Compile the section-missing statements into valid PHP.
Compile the if statements into valid PHP.
Compile the unless statements into valid PHP.
Compile the else-if statements into valid PHP.
Compile the else statements into valid PHP.
Compile the end-if statements into valid PHP.
Compile the end-unless statements into valid PHP.
Compile the if-isset statements into valid PHP.
Compile the end-isset statements into valid PHP.
Compile the switch statements into valid PHP.
Compile the case statements into valid PHP.
Compile the default statements in switch case into valid PHP.
Compile the end switch statements into valid PHP.
Compile a once block into valid PHP.
Compile an end-once block into valid PHP.
Compile a boolean value into a raw true / false value for embedding into HTML attributes or JavaScript.
Compile a checked block into valid PHP.
Compile a disabled block into valid PHP.
Compile a required block into valid PHP.
Compile a readonly block into valid PHP.
Compile a selected block into valid PHP.
Compile the push statements into valid PHP.
Compile the else-if push statements into valid PHP.
Compile the else push statements into valid PHP.
Compile the end-push statements into valid PHP.
Details
protected string
compileAuth(string|null $guard = null)
Compile the if-auth statements into valid PHP.
protected string
compileElseAuth(string|null $guard = null)
Compile the else-auth statements into valid PHP.
protected string
compileGuest(string|null $guard = null)
Compile the if-guest statements into valid PHP.
protected string
compileElseGuest(string|null $guard = null)
Compile the else-guest statements into valid PHP.
protected string
compileHasSection(string $expression)
Compile the has-section statements into valid PHP.
protected string
compileSectionMissing(string $expression)
Compile the section-missing statements into valid PHP.
protected string
compileBool(bool $condition)
Compile a boolean value into a raw true / false value for embedding into HTML attributes or JavaScript.
protected string
compileElsePushIf(string $expression)
Compile the else-if push statements into valid PHP.