ManagesLoops
trait ManagesLoops
Constants
| protected LOOPS_STACK_CONTEXT_KEY |
The context key for loops stack. |
Methods
void
addLoop(mixed $data)
Add new loop to the stack.
void
incrementLoopIndices()
Increment the top loop's indices.
void
popLoop()
Pop a loop from the top of the loop stack.
stdClass|null
getLastLoop()
Get an instance of the last loop in the stack.
array
getLoopStack()
Get the entire loop stack.
Details
at line 21
void
addLoop(mixed $data)
Add new loop to the stack.
at line 49
void
incrementLoopIndices()
Increment the top loop's indices.
at line 70
void
popLoop()
Pop a loop from the top of the loop stack.
at line 80
stdClass|null
getLastLoop()
Get an instance of the last loop in the stack.
at line 92
array
getLoopStack()
Get the entire loop stack.