class Stack (View source)

Methods

int
count()

Return the number of entries on the stack.

push(mixed $type, mixed $value, mixed $reference = null, null|string $storeKey = null, null|string $onlyIf = null, null|string $onlyIfNot = null)

Push a new entry onto the stack.

getStackItem($type, $value, $reference = null, $storeKey = null, $onlyIf = null, $onlyIfNot = null)

No description

mixed
pop()

Pop the last entry from the stack.

mixed
last(int $n = 1)

Return an entry from the stack without removing it.

clear()

Clear the stack.

__toString()

No description

Details

int count()

Return the number of entries on the stack.

Return Value

int

push(mixed $type, mixed $value, mixed $reference = null, null|string $storeKey = null, null|string $onlyIf = null, null|string $onlyIfNot = null)

Push a new entry onto the stack.

Parameters

mixed $type
mixed $value
mixed $reference
null|string $storeKey will store the result under this alias
null|string $onlyIf will only run computation if the matching store key is true
null|string $onlyIfNot will only run computation if the matching store key is false

getStackItem($type, $value, $reference = null, $storeKey = null, $onlyIf = null, $onlyIfNot = null)

Parameters

$type
$value
$reference
$storeKey
$onlyIf
$onlyIfNot

mixed pop()

Pop the last entry from the stack.

Return Value

mixed

mixed last(int $n = 1)

Return an entry from the stack without removing it.

Parameters

int $n number indicating how far back in the stack we want to look

Return Value

mixed

clear()

Clear the stack.

__toString()