CyclicReferenceStack
Table of Contents
| $stack | The call stack for calculated cells. | array |
|---|---|---|
| count() | Return the number of entries on the stack. | int |
| push() | Push a new entry onto the stack. | void |
| pop() | Pop the last entry from the stack. | mixed |
| onStack() | Test to see if a specified entry exists on the stack. | bool |
| clear() | Clear the stack. | void |
| showStack() | Return an array of all entries on the stack. | array |
Properties
$stack
The call stack for calculated cells.
private
array
$stack
= []
Methods
count()
Return the number of entries on the stack.
public
count(
)
: int
Return values
intpush()
Push a new entry onto the stack.
public
push(
$value :
mixed
)
: void
Parameters
- $value : mixed
pop()
Pop the last entry from the stack.
public
pop(
)
: mixed
Return values
mixedonStack()
Test to see if a specified entry exists on the stack.
public
onStack(
$value :
mixed
)
: bool
Parameters
- $value : mixed
The value to test
Return values
boolclear()
Clear the stack.
public
clear(
)
: void
showStack()
Return an array of all entries on the stack.
public
showStack(
)
: array