You are here

public function PHPExcel_Calculation_Token_Stack::push in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Token/Stack.php \PHPExcel_Calculation_Token_Stack::push()

* Push a new entry onto the stack * *

Parameters

mixed $type: * @param mixed $value * @param mixed $reference

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Token/Stack.php, line 69

Class

PHPExcel_Calculation_Token_Stack
PHPExcel_Calculation_Token_Stack

Code

public function push($type, $value, $reference = NULL) {
  $this->_stack[$this->_count++] = array(
    'type' => $type,
    'value' => $value,
    'reference' => $reference,
  );
  if ($type == 'Function') {
    $localeFunction = PHPExcel_Calculation::_localeFunc($value);
    if ($localeFunction != $value) {
      $this->_stack[$this->_count - 1]['localeValue'] = $localeFunction;
    }
  }
}