You are here

private static function PHPExcel_Calculation::_dataTestReference 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::_dataTestReference()
1 call to PHPExcel_Calculation::_dataTestReference()
PHPExcel_Calculation::_processTokenStack in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php

File

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

Class

PHPExcel_Calculation
PHPExcel_Calculation (Multiton)

Code

private static function _dataTestReference(&$operandData) {
  $operand = $operandData['value'];
  if ($operandData['reference'] === NULL && is_array($operand)) {
    $rKeys = array_keys($operand);
    $rowKey = array_shift($rKeys);
    $cKeys = array_keys(array_keys($operand[$rowKey]));
    $colKey = array_shift($cKeys);
    if (ctype_upper($colKey)) {
      $operandData['reference'] = $colKey . $rowKey;
    }
  }
  return $operand;
}