You are here

public function PHPExcel_Calculation::calculate in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php \PHPExcel_Calculation::calculate()

* Calculate cell value (using formula from a cell ID) * Retained for backward compatibility * * @access public *

Parameters

PHPExcel_Cell $pCell Cell to calculate: * @return mixed * @throws PHPExcel_Calculation_Exception

File

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

Class

PHPExcel_Calculation
PHPExcel_Calculation (Multiton)

Code

public function calculate(PHPExcel_Cell $pCell = NULL) {
  try {
    return $this
      ->calculateCellValue($pCell);
  } catch (PHPExcel_Exception $e) {
    throw new PHPExcel_Calculation_Exception($e
      ->getMessage());
  }
}