CompilesLoops
trait CompilesLoops (View source)
Properties
protected int | $forElseCounter | Counter to keep track of nested forelse statements. |
Methods
Compile the for-else statements into valid PHP.
Compile the for-else-empty and empty statements into valid PHP.
Compile the end-for-else statements into valid PHP.
Compile the end-empty statements into valid PHP.
Compile the for statements into valid PHP.
Compile the for-each statements into valid PHP.
Compile the break statements into valid PHP.
Compile the continue statements into valid PHP.
Compile the end-for statements into valid PHP.
Compile the end-for-each statements into valid PHP.
Compile the while statements into valid PHP.
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.