53 $stackItem = $this->
getStackItem(
$type, $value, $reference, $storeKey, $onlyIf, $onlyIfNot);
55 $this->stack[$this->
count++] = $stackItem;
57 if (
$type ==
'Function') {
59 if ($localeFunction != $value) {
60 $this->stack[($this->
count - 1)][
'localeValue'] = $localeFunction;
76 'reference' => $reference,
79 if (isset($storeKey)) {
80 $stackItem[
'storeKey'] = $storeKey;
84 $stackItem[
'onlyIf'] = $onlyIf;
87 if (isset($onlyIfNot)) {
88 $stackItem[
'onlyIfNot'] = $onlyIfNot;
101 if ($this->
count > 0) {
121 return $this->stack[$this->
count -
$n];
136 foreach ($this->stack as
$index => $item) {
140 $value = $item[
'value'] ??
'no value';
141 while (is_array($value)) {
142 $value = array_pop($value);
144 $str .= $value .
' |> ';
static localeFunc($function)
push( $type, $value, $reference=null, $storeKey=null, $onlyIf=null, $onlyIfNot=null)
Push a new entry onto the stack.
count()
Return the number of entries on the stack.
pop()
Pop the last entry from the stack.
getStackItem( $type, $value, $reference=null, $storeKey=null, $onlyIf=null, $onlyIfNot=null)
last($n=1)
Return an entry from the stack without removing it.