CompilesConditionals
trait CompilesConditionals
Constants
| protected FIRST_CASE_IN_SWITCH_CONTEXT_KEY |
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 has-stack 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
at line 20
protected string
compileAuth(string|null $guard = null)
Compile the if-auth statements into valid PHP.
at line 30
protected string
compileElseAuth(string|null $guard = null)
Compile the else-auth statements into valid PHP.
at line 40
protected string
compileEndAuth()
Compile the end-auth statements into valid PHP.
at line 48
protected string
compileEnv(string $environments)
Compile the env statements into valid PHP.
at line 56
protected string
compileEndEnv()
Compile the end-env statements into valid PHP.
at line 64
protected string
compileProduction()
Compile the production statements into valid PHP.
at line 72
protected string
compileEndProduction()
Compile the end-production statements into valid PHP.
at line 80
protected string
compileGuest(string|null $guard = null)
Compile the if-guest statements into valid PHP.
at line 90
protected string
compileElseGuest(string|null $guard = null)
Compile the else-guest statements into valid PHP.
at line 100
protected string
compileEndGuest()
Compile the end-guest statements into valid PHP.
at line 108
protected string
compileHasSection(string $expression)
Compile the has-section statements into valid PHP.
at line 116
protected string
compileHasStack(string $expression)
Compile the has-stack statements into valid PHP.
at line 124
protected string
compileSectionMissing(string $expression)
Compile the section-missing statements into valid PHP.
at line 132
protected string
compileIf(string $expression)
Compile the if statements into valid PHP.
at line 140
protected string
compileUnless(string $expression)
Compile the unless statements into valid PHP.
at line 148
protected string
compileElseif(string $expression)
Compile the else-if statements into valid PHP.
at line 156
protected string
compileElse()
Compile the else statements into valid PHP.
at line 164
protected string
compileEndif()
Compile the end-if statements into valid PHP.
at line 172
protected string
compileEndunless()
Compile the end-unless statements into valid PHP.
at line 180
protected string
compileIsset(string $expression)
Compile the if-isset statements into valid PHP.
at line 188
protected string
compileEndIsset()
Compile the end-isset statements into valid PHP.
at line 196
protected string
compileSwitch(string $expression)
Compile the switch statements into valid PHP.
at line 206
protected string
compileCase(string $expression)
Compile the case statements into valid PHP.
at line 220
protected string
compileDefault()
Compile the default statements in switch case into valid PHP.
at line 228
protected string
compileEndSwitch()
Compile the end switch statements into valid PHP.
at line 236
protected string
compileOnce(string|null $id = null)
Compile a once block into valid PHP.
at line 246
string
compileEndOnce()
Compile an end-once block into valid PHP.
at line 254
protected string
compileBool(string $condition)
Compile a boolean value into a raw true / false value for embedding into HTML attributes or JavaScript.
at line 262
protected string
compileChecked(string $condition)
Compile a checked block into valid PHP.
at line 270
protected string
compileDisabled(string $condition)
Compile a disabled block into valid PHP.
at line 278
protected string
compileRequired(string $condition)
Compile a required block into valid PHP.
at line 286
protected string
compileReadonly(string $condition)
Compile a readonly block into valid PHP.
at line 294
protected string
compileSelected(string $condition)
Compile a selected block into valid PHP.
at line 302
protected string
compilePushIf(string $expression)
Compile the push statements into valid PHP.
at line 312
protected string
compileElsePushIf(string $expression)
Compile the else-if push statements into valid PHP.
at line 322
protected string
compileElsePush(string $expression)
Compile the else push statements into valid PHP.
at line 330
protected string
compileEndPushIf()
Compile the end-push statements into valid PHP.