CompilesLoops
trait CompilesLoops (View source)
Properties
protected int | $forElseCounter | Counter to keep track of nested forelse statements. |
Methods
string | compileForelse(string $expression) Compile the for-else statements into valid PHP. | |
string | compileEmpty(string $expression) Compile the for-else-empty and empty statements into valid PHP. | |
string | compileEndforelse() Compile the end-for-else statements into valid PHP. | |
string | compileEndEmpty() Compile the end-empty statements into valid PHP. | |
string | compileFor(string $expression) Compile the for statements into valid PHP. | |
string | compileForeach(string $expression) Compile the for-each statements into valid PHP. | |
string | compileBreak(string $expression) Compile the break statements into valid PHP. | |
string | compileContinue(string $expression) Compile the continue statements into valid PHP. | |
string | compileEndfor() Compile the end-for statements into valid PHP. | |
string | compileEndforeach() Compile the end-for-each statements into valid PHP. | |
string | compileWhile(string $expression) Compile the while statements into valid PHP. | |
string | compileEndwhile() Compile the end-while statements into valid PHP. |
Details
protected string compileForelse(string $expression)
Compile the for-else statements into valid PHP.
protected string compileEmpty(string $expression)
Compile the for-else-empty and empty statements into valid PHP.
protected string compileEndforelse()
Compile the end-for-else statements into valid PHP.
protected string compileEndEmpty()
Compile the end-empty statements into valid PHP.
protected string compileFor(string $expression)
Compile the for statements into valid PHP.
protected string compileForeach(string $expression)
Compile the for-each statements into valid PHP.
protected string compileBreak(string $expression)
Compile the break statements into valid PHP.
protected string compileContinue(string $expression)
Compile the continue statements into valid PHP.
protected string compileEndfor()
Compile the end-for statements into valid PHP.
protected string compileEndforeach()
Compile the end-for-each statements into valid PHP.
protected string compileWhile(string $expression)
Compile the while statements into valid PHP.
protected string compileEndwhile()
Compile the end-while statements into valid PHP.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/View/Compilers/Concerns/CompilesLoops.html