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.

Parameters

string $expression

Return Value

string

protected string compileEmpty(string $expression)

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

Parameters

string $expression

Return Value

string

protected string compileEndforelse()

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

Return Value

string

protected string compileEndEmpty()

Compile the end-empty statements into valid PHP.

Return Value

string

protected string compileFor(string $expression)

Compile the for statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileForeach(string $expression)

Compile the for-each statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileBreak(string $expression)

Compile the break statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileContinue(string $expression)

Compile the continue statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileEndfor()

Compile the end-for statements into valid PHP.

Return Value

string

protected string compileEndforeach()

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

Return Value

string

protected string compileWhile(string $expression)

Compile the while statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileEndwhile()

Compile the end-while statements into valid PHP.

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/View/Compilers/Concerns/CompilesLoops.html