trait Illuminate / View / Compilers / Concerns / CompilesLoops
You are viewing an older version of the documentation. For the latest, please visit master documentation.

CompilesLoops

Properties

protected

$forElseCounter int

Counter to keep track of nested forelse statements.

Methods

protected

compileForelse ( $expression ) : string

Compile the for-else statements into valid PHP.

Parameters

  • $expression string
protected

compileEmpty ( $expression ) : string

Compile the for-else-empty and empty statements into valid PHP.

Parameters

  • $expression string
protected

compileEndforelse ( ) : string

Compile the end-for-else statements into valid PHP.

protected

compileEndEmpty ( ) : string

Compile the end-empty statements into valid PHP.

protected

compileFor ( $expression ) : string

Compile the for statements into valid PHP.

Parameters

  • $expression string
protected

compileForeach ( $expression ) : string

Compile the for-each statements into valid PHP.

Parameters

  • $expression string
protected

compileBreak ( $expression ) : string

Compile the break statements into valid PHP.

Parameters

  • $expression string
protected

compileContinue ( $expression ) : string

Compile the continue statements into valid PHP.

Parameters

  • $expression string
protected

compileEndfor ( ) : string

Compile the end-for statements into valid PHP.

protected

compileEndforeach ( ) : string

Compile the end-for-each statements into valid PHP.

protected

compileWhile ( $expression ) : string

Compile the while statements into valid PHP.

Parameters

  • $expression string
protected

compileEndwhile ( ) : string

Compile the end-while statements into valid PHP.