CompilesLoops
Table of Contents
- $forElseCounter : int
- Counter to keep track of nested forelse statements.
- compileBreak() : string
- Compile the break statements into valid PHP.
- compileContinue() : string
- Compile the continue statements into valid PHP.
- compileEmpty() : string
- Compile the for-else-empty and empty statements into valid PHP.
- compileEndEmpty() : string
- Compile the end-empty statements into valid PHP.
- compileEndfor() : string
- Compile the end-for statements into valid PHP.
- compileEndforeach() : string
- Compile the end-for-each statements into valid PHP.
- compileEndforelse() : string
- Compile the end-for-else statements into valid PHP.
- compileEndwhile() : string
- Compile the end-while statements into valid PHP.
- compileFor() : string
- Compile the for statements into valid PHP.
- compileForeach() : string
- Compile the for-each statements into valid PHP.
- compileForelse() : string
- Compile the for-else statements into valid PHP.
- compileWhile() : string
- Compile the while statements into valid PHP.
Properties
$forElseCounter
Counter to keep track of nested forelse statements.
protected
int
$forElseCounter
= 0
Methods
compileBreak()
Compile the break statements into valid PHP.
protected
compileBreak(string $expression) : string
Parameters
- $expression : string
Return values
string —compileContinue()
Compile the continue statements into valid PHP.
protected
compileContinue(string $expression) : string
Parameters
- $expression : string
Return values
string —compileEmpty()
Compile the for-else-empty and empty statements into valid PHP.
protected
compileEmpty(string $expression) : string
Parameters
- $expression : string
Return values
string —compileEndEmpty()
Compile the end-empty statements into valid PHP.
protected
compileEndEmpty() : string
Return values
string —compileEndfor()
Compile the end-for statements into valid PHP.
protected
compileEndfor() : string
Return values
string —compileEndforeach()
Compile the end-for-each statements into valid PHP.
protected
compileEndforeach() : string
Return values
string —compileEndforelse()
Compile the end-for-else statements into valid PHP.
protected
compileEndforelse() : string
Return values
string —compileEndwhile()
Compile the end-while statements into valid PHP.
protected
compileEndwhile() : string
Return values
string —compileFor()
Compile the for statements into valid PHP.
protected
compileFor(string $expression) : string
Parameters
- $expression : string
Return values
string —compileForeach()
Compile the for-each statements into valid PHP.
protected
compileForeach(string $expression) : string
Parameters
- $expression : string
Return values
string —compileForelse()
Compile the for-else statements into valid PHP.
protected
compileForelse(string $expression) : string
Parameters
- $expression : string
Return values
string —compileWhile()
Compile the while statements into valid PHP.
protected
compileWhile(string $expression) : string
Parameters
- $expression : string