Lines Matching defs:stack
31 * @var array stack for context only top stack is available
33 protected $stack = [];
36 * @var array index stack for sections
41 * @var array dataStack stack for data within sections
46 * @var array key stack for objects
67 $this->stack = [$context];
81 * Push a new Context frame onto the stack.
89 array_push($this->stack, $value);
93 * Push an Index onto the index stack
105 * Pushes data variables onto the stack. This is used to support @data variables.
118 * Push a Key onto the key stack
130 * Pop the last Context frame from the stack.
136 return array_pop($this->stack);
140 * Pop the last index from the stack.
150 * Pop the last section data from the stack.
164 * Pop the last key from the stack.
180 return end($this->stack);
244 if (count($this->stack) < $level) {
253 end($this->stack);
255 prev($this->stack);
258 $current = current($this->stack);
316 // make sure the stack actually has the specified number of levels
327 // going from the top of the stack to the bottom, traverse the number of levels specified