|
| count () |
| Return the number of entries on the stack. More...
|
|
| push ($type, $value, $reference=NULL) |
| Push a new entry onto the stack. More...
|
|
| pop () |
| Pop the last entry from the stack. More...
|
|
| last ($n=1) |
| Return an entry from the stack without removing it. More...
|
|
| clear () |
| Clear the stack. More...
|
|
Definition at line 36 of file Stack.php.
◆ clear()
PHPExcel_Calculation_Token_Stack::clear |
( |
| ) |
|
Clear the stack.
Definition at line 110 of file Stack.php.
110 {
111 $this->_stack = array();
112 $this->_count = 0;
113 }
◆ count()
PHPExcel_Calculation_Token_Stack::count |
( |
| ) |
|
Return the number of entries on the stack.
- Returns
- integer
Definition at line 58 of file Stack.php.
References $_count.
◆ last()
PHPExcel_Calculation_Token_Stack::last |
( |
|
$n = 1 | ) |
|
Return an entry from the stack without removing it.
- Parameters
-
integer | $n | number indicating how far back in the stack we want to look |
- Returns
- mixed
Definition at line 100 of file Stack.php.
100 {
101 if ($this->_count -
$n < 0) {
102 return NULL;
103 }
104 return $this->_stack[$this->_count -
$n];
105 }
References $n.
◆ pop()
PHPExcel_Calculation_Token_Stack::pop |
( |
| ) |
|
Pop the last entry from the stack.
- Returns
- mixed
Definition at line 87 of file Stack.php.
87 {
88 if ($this->_count > 0) {
90 }
91 return NULL;
92 }
References $_count.
◆ push()
PHPExcel_Calculation_Token_Stack::push |
( |
|
$type, |
|
|
|
$value, |
|
|
|
$reference = NULL |
|
) |
| |
Push a new entry onto the stack.
- Parameters
-
mixed | $type | |
mixed | $value | |
mixed | $reference | |
Definition at line 69 of file Stack.php.
69 {
70 $this->_stack[$this->_count++] = array('type' => $type,
71 'value' => $value,
72 'reference' => $reference
73 );
74 if ($type == 'Function') {
76 if ($localeFunction != $value) {
77 $this->_stack[($this->_count - 1)]['localeValue'] = $localeFunction;
78 }
79 }
80 }
static _localeFunc($function)
References PHPExcel_Calculation\_localeFunc().
◆ $_count
PHPExcel_Calculation_Token_Stack::$_count = 0 |
|
private |
◆ $_stack
PHPExcel_Calculation_Token_Stack::$_stack = array() |
|
private |
The documentation for this class was generated from the following file:
- libs/composer/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Token/Stack.php