You are here

public function PHPExcel_Calculation::getValueFromCache in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php \PHPExcel_Calculation::getValueFromCache()
1 call to PHPExcel_Calculation::getValueFromCache()
PHPExcel_Calculation::_calculateFormulaValue in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php
* Parse a cell formula and calculate its value * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php, line 2347

Class

PHPExcel_Calculation
PHPExcel_Calculation (Multiton)

Code

public function getValueFromCache($cellReference, &$cellValue) {

  // Is calculation cacheing enabled?
  // Is the value present in calculation cache?
  $this->_debugLog
    ->writeDebugLog('Testing cache value for cell ', $cellReference);
  if ($this->_calculationCacheEnabled && isset($this->_calculationCache[$cellReference])) {
    $this->_debugLog
      ->writeDebugLog('Retrieving value for cell ', $cellReference, ' from cache');

    // Return the cached result
    $cellValue = $this->_calculationCache[$cellReference];
    return TRUE;
  }
  return FALSE;
}