|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Collaboration diagram for PHPExcel_Calculation:Public Member Functions | |
| __destruct () | |
| flushInstance () | |
| Flush the calculation cache for any existing instance of this class but only if a PHPExcel_Calculation instance exists. More... | |
| getDebugLog () | |
| Get the debuglog for this claculation engine instance. More... | |
| __clone () | |
| __clone implementation. More... | |
| getCalculationCacheEnabled () | |
| Is calculation caching enabled? More... | |
| setCalculationCacheEnabled ($pValue=TRUE) | |
| Enable/disable calculation cache. More... | |
| enableCalculationCache () | |
| Enable calculation cache. More... | |
| disableCalculationCache () | |
| Disable calculation cache. More... | |
| clearCalculationCache () | |
| Clear calculation cache. More... | |
| clearCalculationCacheForWorksheet ($worksheetName) | |
| Clear calculation cache for a specified worksheet. More... | |
| renameCalculationCacheForWorksheet ($fromWorksheetName, $toWorksheetName) | |
| Rename calculation cache for a specified worksheet. More... | |
| getLocale () | |
| Get the currently defined locale code. More... | |
| setLocale ($locale='en_us') | |
| Set the locale code. More... | |
| _translateFormulaToLocale ($formula) | |
| _translateFormulaToEnglish ($formula) | |
| calculate (PHPExcel_Cell $pCell=NULL) | |
| Calculate cell value (using formula from a cell ID) Retained for backward compatibility. More... | |
| calculateCellValue (PHPExcel_Cell $pCell=NULL, $resetLog=TRUE) | |
| Calculate the value of a cell formula. More... | |
| parseFormula ($formula) | |
| Validate and parse a formula string. More... | |
| calculateFormula ($formula, $cellID=NULL, PHPExcel_Cell $pCell=NULL) | |
| Calculate the value of a formula. More... | |
| getValueFromCache ($cellReference, &$cellValue) | |
| saveValueToCache ($cellReference, $cellValue) | |
| _calculateFormulaValue ($formula, $cellID=null, PHPExcel_Cell $pCell=null) | |
| Parse a cell formula and calculate its value. More... | |
| extractCellRange (&$pRange='A1', PHPExcel_Worksheet $pSheet=NULL, $resetLog=TRUE) | |
| Extract range values. More... | |
| extractNamedRange (&$pRange='A1', PHPExcel_Worksheet $pSheet=NULL, $resetLog=TRUE) | |
| Extract range values. More... | |
| isImplemented ($pFunction='') | |
| Is a specific function implemented? More... | |
| listFunctions () | |
| Get a list of all implemented functions as an array of function objects. More... | |
| listAllFunctionNames () | |
| Get a list of all Excel function names. More... | |
| listFunctionNames () | |
| Get a list of implemented Excel function names. More... | |
Static Public Member Functions | |
| static | getInstance (PHPExcel $workbook=NULL) |
| Get an instance of this class. More... | |
| static | unsetInstance (PHPExcel $workbook=NULL) |
| Unset an instance of this class. More... | |
| static | getTRUE () |
| Return the locale-specific translation of TRUE. More... | |
| static | getFALSE () |
| Return the locale-specific translation of FALSE. More... | |
| static | setArrayReturnType ($returnType) |
| Set the Array Return Type (Array or Value of first element in the array) More... | |
| static | getArrayReturnType () |
| Return the Array Return Type (Array or Value of first element in the array) More... | |
| static | _translateSeparator ($fromSeparator, $toSeparator, $formula, &$inBraces) |
| static | _localeFunc ($function) |
| static | _wrapResult ($value) |
| Wrap string values in quotes. More... | |
| static | _unwrapResult ($value) |
| Remove quotes used as a wrapper to identify string values. More... | |
| static | _getMatrixDimensions (&$matrix) |
| Read the dimensions of a matrix, and re-index it with straight numeric keys starting from row 0, column 0. More... | |
Data Fields | |
| const | CALCULATION_REGEXP_NUMBER = '[-+]?\d*\.?\d+(e[-+]?\d+)?' |
| Constants More... | |
| const | CALCULATION_REGEXP_STRING = '"(?:[^"]|"")*"' |
| const | CALCULATION_REGEXP_OPENBRACE = '\(' |
| const | CALCULATION_REGEXP_FUNCTION = '@?([A-Z][A-Z0-9\.]*)[\s]*\(' |
| const | CALCULATION_REGEXP_CELLREF = CALCULATION_REGEXP_CELLREF |
| const | CALCULATION_REGEXP_NAMEDRANGE = CALCULATION_REGEXP_NAMEDRANGE |
| const | CALCULATION_REGEXP_ERROR = '\#[A-Z][A-Z0_\/]*[!\?]?' |
| const | RETURN_ARRAY_AS_ERROR = 'error' |
| constants More... | |
| const | RETURN_ARRAY_AS_VALUE = 'value' |
| const | RETURN_ARRAY_AS_ARRAY = 'array' |
| $suppressFormulaErrors = FALSE | |
| $formulaError = NULL | |
| $cyclicFormulaCount = 1 | |
Static Public Attributes | |
| static | $_localeBoolean |
Protected Member Functions | |
| _raiseFormulaError ($errorMessage) | |
Private Member Functions | |
| __construct (PHPExcel $workbook=NULL) | |
| _showValue ($value) | |
| Format details of an operand for display in the log (based on operand type) More... | |
| _showTypeDetails ($value) | |
| Format type and details of an operand for display in the log (based on operand type) More... | |
| _convertMatrixReferences ($formula) | |
| _parseFormula ($formula, PHPExcel_Cell $pCell=NULL) | |
| _processTokenStack ($tokens, $cellID=NULL, PHPExcel_Cell $pCell=NULL) | |
| _validateBinaryOperand ($cellID, &$operand, &$stack) | |
| _executeBinaryComparisonOperation ($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays=FALSE) | |
| strcmpLowercaseFirst ($str1, $str2) | |
| Compare two strings in the same way as strcmp() except that lowercase come before uppercase letters. More... | |
| _executeNumericBinaryOperation ($cellID, $operand1, $operand2, $operation, $matrixFunction, &$stack) | |
Static Private Member Functions | |
| static | _loadLocales () |
| static | _translateFormula ($from, $to, $formula, $fromSeparator, $toSeparator) |
| static | _checkMatrixOperands (&$operand1, &$operand2, $resize=1) |
| Ensure that paired matrix operands are both matrices and of the same size. More... | |
| static | _resizeMatricesShrink (&$matrix1, &$matrix2, $matrix1Rows, $matrix1Columns, $matrix2Rows, $matrix2Columns) |
| Ensure that paired matrix operands are both matrices of the same size. More... | |
| static | _resizeMatricesExtend (&$matrix1, &$matrix2, $matrix1Rows, $matrix1Columns, $matrix2Rows, $matrix2Columns) |
| Ensure that paired matrix operands are both matrices of the same size. More... | |
| static | _mkMatrix () |
| static | _dataTestReference (&$operandData) |
Private Attributes | |
| $_workbook | |
| $_calculationCache = array () | |
| $_calculationCacheEnabled = TRUE | |
| $debugLog | |
| $_cyclicReferenceStack | |
| $_cellStack = array() | |
| $_cyclicFormulaCount = 1 | |
| $_cyclicFormulaCell = '' | |
| $_savedPrecision = 14 | |
Static Private Attributes | |
| static | $returnArrayAsType = self::RETURN_ARRAY_AS_VALUE |
| static | $_instance |
| static | $_workbookSets |
| static | $_operators |
| static | $_binaryOperators |
| static | $_localeLanguage = 'en_us' |
| static | $_validLocaleLanguages |
| static | $_localeArgumentSeparator = ',' |
| static | $_localeFunctions = array() |
| static | $_ExcelConstants |
| static | $_PHPExcelFunctions |
| static | $_controlFunctions |
| static | $functionReplaceFromExcel = NULL |
| static | $functionReplaceToLocale = NULL |
| static | $functionReplaceFromLocale = NULL |
| static | $functionReplaceToExcel = NULL |
| static | $_operatorAssociativity |
| static | $_comparisonOperators = array('>' => TRUE, '<' => TRUE, '=' => TRUE, '>=' => TRUE, '<=' => TRUE, '<>' => TRUE) |
| static | $_operatorPrecedence |
Definition at line 62 of file Calculation.php.
|
private |
Definition at line 1723 of file Calculation.php.
| PHPExcel_Calculation::__destruct | ( | ) |
Definition at line 1741 of file Calculation.php.
|
final |
__clone implementation.
Cloning should not be allowed in a Singleton!
@access public
| PHPExcel_Calculation_Exception |
Definition at line 1822 of file Calculation.php.
| PHPExcel_Calculation::_calculateFormulaValue | ( | $formula, | |
$cellID = null, |
|||
| PHPExcel_Cell | $pCell = null |
||
| ) |
Parse a cell formula and calculate its value.
| string | $formula | The formula to parse and calculate |
| string | $cellID | The ID (e.g. A3) of the cell that we are calculating |
| PHPExcel_Cell | $pCell | Cell to calculate |
| PHPExcel_Calculation_Exception |
Definition at line 2375 of file Calculation.php.
References $_cyclicFormulaCount, _parseFormula(), _processTokenStack(), _raiseFormulaError(), _wrapResult(), getValueFromCache(), and saveValueToCache().
Referenced by calculateCellValue(), and calculateFormula().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Ensure that paired matrix operands are both matrices and of the same size.
| mixed | &$operand1 | First matrix operand |
| mixed | &$operand2 | Second matrix operand |
| integer | $resize | Flag indicating whether the matrices should be resized to match and (if so), whether the smaller dimension should grow or the larger should shrink. 0 = no resize 1 = shrink to fit 2 = extend to fit |
Definition at line 2438 of file Calculation.php.
References _getMatrixDimensions(), _resizeMatricesExtend(), and _resizeMatricesShrink().
Referenced by _executeBinaryComparisonOperation(), _executeNumericBinaryOperation(), and _processTokenStack().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 2652 of file Calculation.php.
References $i, and _raiseFormulaError().
Referenced by _parseFormula().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 3082 of file Calculation.php.
Referenced by _processTokenStack().
Here is the caller graph for this function:
|
private |
Definition at line 3532 of file Calculation.php.
References $r, $result, $x, _checkMatrixOperands(), _executeBinaryComparisonOperation(), _showTypeDetails(), _showValue(), _unwrapResult(), PHPExcel_Calculation_Functions\COMPATIBILITY_OPENOFFICE, PHPExcel_Calculation_Functions\getCompatibilityMode(), and strcmpLowercaseFirst().
Referenced by _executeBinaryComparisonOperation(), and _processTokenStack().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 3661 of file Calculation.php.
References $result, _checkMatrixOperands(), _showTypeDetails(), _validateBinaryOperand(), PHPExcel_Calculation_Functions\COMPATIBILITY_OPENOFFICE, PHPExcel_Calculation_Functions\getCompatibilityMode(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by _processTokenStack().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Read the dimensions of a matrix, and re-index it with straight numeric keys starting from row 0, column 0.
| mixed | &$matrix | matrix operand |
Definition at line 2474 of file Calculation.php.
Referenced by _checkMatrixOperands(), PHPExcel_Calculation_LookupRef\COLUMNS(), and PHPExcel_Calculation_LookupRef\ROWS().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 1747 of file Calculation.php.
References $filename.
Referenced by setLocale().
Here is the caller graph for this function:
|
static |
Definition at line 2142 of file Calculation.php.
References $function.
Referenced by PHPExcel_Calculation_Token_Stack\push().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 2703 of file Calculation.php.
|
private |
Definition at line 2740 of file Calculation.php.
References $d, $index, $output, _convertMatrixReferences(), _raiseFormulaError(), and _wrapResult().
Referenced by _calculateFormulaValue(), and parseFormula().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 3098 of file Calculation.php.
References $data, $i, $output, $result, $row, _checkMatrixOperands(), _dataTestReference(), _executeBinaryComparisonOperation(), _executeNumericBinaryOperation(), _raiseFormulaError(), _showTypeDetails(), _showValue(), _unwrapResult(), PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), extractCellRange(), extractNamedRange(), PHPExcel_Calculation_Functions\flattenArray(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\REF(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by _calculateFormulaValue().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 3731 of file Calculation.php.
Referenced by _calculateFormulaValue(), _convertMatrixReferences(), _parseFormula(), and _processTokenStack().
Here is the caller graph for this function:
|
staticprivate |
Ensure that paired matrix operands are both matrices of the same size.
| mixed | &$matrix1 | First matrix operand |
| mixed | &$matrix2 | Second matrix operand |
| integer | $matrix1Rows | Row size of first matrix operand |
| integer | $matrix1Columns | Column size of first matrix operand |
| integer | $matrix2Rows | Row size of second matrix operand |
| integer | $matrix2Columns | Column size of second matrix operand |
Definition at line 2543 of file Calculation.php.
Referenced by _checkMatrixOperands().
Here is the caller graph for this function:
|
staticprivate |
Ensure that paired matrix operands are both matrices of the same size.
| mixed | &$matrix1 | First matrix operand |
| mixed | &$matrix2 | Second matrix operand |
| integer | $matrix1Rows | Row size of first matrix operand |
| integer | $matrix1Columns | Column size of first matrix operand |
| integer | $matrix2Rows | Row size of second matrix operand |
| integer | $matrix2Columns | Column size of second matrix operand |
Definition at line 2500 of file Calculation.php.
References $i.
Referenced by _checkMatrixOperands().
Here is the caller graph for this function:
|
private |
Format type and details of an operand for display in the log (based on operand type)
| mixed | $value | First matrix operand |
Definition at line 2621 of file Calculation.php.
References _showValue(), and PHPExcel_Calculation_Functions\flattenArray().
Referenced by _executeBinaryComparisonOperation(), _executeNumericBinaryOperation(), _processTokenStack(), and _validateBinaryOperand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Format details of an operand for display in the log (based on operand type)
| mixed | $value | First matrix operand |
Definition at line 2586 of file Calculation.php.
References $row, _showValue(), PHPExcel_Calculation_Functions\flattenArray(), and PHPExcel_Calculation_Functions\flattenSingleValue().
Referenced by _executeBinaryComparisonOperation(), _processTokenStack(), _showTypeDetails(), and _showValue().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 2055 of file Calculation.php.
References $from, $i, and _translateSeparator().
Referenced by _translateFormulaToEnglish(), and _translateFormulaToLocale().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Calculation::_translateFormulaToEnglish | ( | $formula | ) |
Definition at line 2117 of file Calculation.php.
References _translateFormula().
Here is the call graph for this function:| PHPExcel_Calculation::_translateFormulaToLocale | ( | $formula | ) |
Definition at line 2088 of file Calculation.php.
References _translateFormula().
Here is the call graph for this function:
|
static |
Definition at line 2037 of file Calculation.php.
References $i.
Referenced by _translateFormula(), and PHPExcel_Reader_OOCalc\loadIntoExisting().
Here is the caller graph for this function:
|
static |
Remove quotes used as a wrapper to identify string values.
| mixed | $value |
Definition at line 2187 of file Calculation.php.
References PHPExcel_Calculation_Functions\NaN().
Referenced by _executeBinaryComparisonOperation(), _processTokenStack(), _validateBinaryOperand(), calculateCellValue(), calculateFormula(), PHPExcel_Reader_SYLK\loadIntoExisting(), and PHPExcel_Chart_DataSeriesValues\refresh().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 3498 of file Calculation.php.
References _showTypeDetails(), _unwrapResult(), and PHPExcel_Shared_String\convertToNumberIfFraction().
Referenced by _executeNumericBinaryOperation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Wrap string values in quotes.
| mixed | $value |
Definition at line 2163 of file Calculation.php.
References PHPExcel_Calculation_Functions\NaN().
Referenced by PHPExcel_Calculation_Database\__filter(), _calculateFormulaValue(), PHPExcel_Calculation_Functions\_ifCondition(), _parseFormula(), PHPExcel_Calculation_Statistical\AVERAGEIF(), PHPExcel_Calculation_Statistical\COUNTIF(), PHPExcel_Calculation_Statistical\MAXIF(), PHPExcel_Calculation_Statistical\MINIF(), and PHPExcel_Calculation_MathTrig\SUMIF().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Calculation::calculate | ( | PHPExcel_Cell | $pCell = NULL | ) |
Calculate cell value (using formula from a cell ID) Retained for backward compatibility.
@access public
| PHPExcel_Cell | $pCell | Cell to calculate |
| PHPExcel_Calculation_Exception |
Definition at line 2211 of file Calculation.php.
References calculateCellValue().
Here is the call graph for this function:| PHPExcel_Calculation::calculateCellValue | ( | PHPExcel_Cell | $pCell = NULL, |
$resetLog = TRUE |
|||
| ) |
Calculate the value of a cell formula.
@access public
| PHPExcel_Cell | $pCell | Cell to calculate |
| Boolean | $resetLog | Flag indicating whether the debug log should be reset or not |
| PHPExcel_Calculation_Exception |
Definition at line 2229 of file Calculation.php.
References $r, $result, $returnArrayAsType, _calculateFormulaValue(), _unwrapResult(), PHPExcel_Calculation_Functions\flattenArray(), PHPExcel_Calculation_Functions\NaN(), RETURN_ARRAY_AS_ARRAY, and PHPExcel_Calculation_Functions\VALUE().
Referenced by calculate().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Calculation::calculateFormula | ( | $formula, | |
$cellID = NULL, |
|||
| PHPExcel_Cell | $pCell = NULL |
||
| ) |
Calculate the value of a formula.
| string | $formula | Formula to parse |
| string | $cellID | Address of the cell to calculate |
| PHPExcel_Cell | $pCell | Cell to calculate |
| PHPExcel_Calculation_Exception |
Definition at line 2323 of file Calculation.php.
References $result, _calculateFormulaValue(), _unwrapResult(), and getCalculationCacheEnabled().
Here is the call graph for this function:| PHPExcel_Calculation::clearCalculationCache | ( | ) |
Clear calculation cache.
Definition at line 1917 of file Calculation.php.
Referenced by flushInstance(), and setCalculationCacheEnabled().
Here is the caller graph for this function:| PHPExcel_Calculation::clearCalculationCacheForWorksheet | ( | $worksheetName | ) |
Clear calculation cache for a specified worksheet.
| string | $worksheetName |
Definition at line 1926 of file Calculation.php.
| PHPExcel_Calculation::disableCalculationCache | ( | ) |
Disable calculation cache.
Definition at line 1909 of file Calculation.php.
References setCalculationCacheEnabled().
Here is the call graph for this function:| PHPExcel_Calculation::enableCalculationCache | ( | ) |
Enable calculation cache.
Definition at line 1901 of file Calculation.php.
References setCalculationCacheEnabled().
Here is the call graph for this function:| PHPExcel_Calculation::extractCellRange | ( | & | $pRange = 'A1', |
| PHPExcel_Worksheet | $pSheet = NULL, |
||
$resetLog = TRUE |
|||
| ) |
Extract range values.
| string | &$pRange | String based range representation |
| PHPExcel_Worksheet | $pSheet | Worksheet |
| boolean | $resetLog | Flag indicating whether calculation log should be reset or not |
| PHPExcel_Calculation_Exception |
Definition at line 3748 of file Calculation.php.
References PHPExcel_Cell\extractAllCellReferencesInRange(), and PHPExcel_Worksheet\extractSheetTitle().
Referenced by _processTokenStack().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Calculation::extractNamedRange | ( | & | $pRange = 'A1', |
| PHPExcel_Worksheet | $pSheet = NULL, |
||
$resetLog = TRUE |
|||
| ) |
Extract range values.
| string | &$pRange | String based range representation |
| PHPExcel_Worksheet | $pSheet | Worksheet |
| boolean | $resetLog | Flag indicating whether calculation log should be reset or not |
| PHPExcel_Calculation_Exception |
Definition at line 3806 of file Calculation.php.
References PHPExcel_Cell\coordinateFromString(), PHPExcel_Cell\extractAllCellReferencesInRange(), PHPExcel_Worksheet\extractSheetTitle(), PHPExcel_Calculation_Functions\REF(), PHPExcel_NamedRange\resolveRange(), and PHPExcel_Cell\splitRange().
Referenced by _processTokenStack().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Calculation::flushInstance | ( | ) |
Flush the calculation cache for any existing instance of this class but only if a PHPExcel_Calculation instance exists.
@access public
Definition at line 1801 of file Calculation.php.
References clearCalculationCache().
Here is the call graph for this function:
|
static |
Return the Array Return Type (Array or Value of first element in the array)
@access public
Definition at line 1871 of file Calculation.php.
References $returnArrayAsType.
Referenced by PHPExcel_Writer_PDF_Core\prepareForSave(), PHPExcel_Writer_CSV\save(), and PHPExcel_Writer_HTML\save().
Here is the caller graph for this function:| PHPExcel_Calculation::getCalculationCacheEnabled | ( | ) |
Is calculation caching enabled?
@access public
Definition at line 1882 of file Calculation.php.
References $_calculationCacheEnabled.
Referenced by calculateFormula().
Here is the caller graph for this function:| PHPExcel_Calculation::getDebugLog | ( | ) |
Get the debuglog for this claculation engine instance.
@access public
Definition at line 1812 of file Calculation.php.
|
static |
Return the locale-specific translation of FALSE.
@access public
Definition at line 1843 of file Calculation.php.
Referenced by PHPExcel_Calculation_TextData\ASCIICODE(), PHPExcel_Cell_AdvancedValueBinder\bindValue(), PHPExcel_Calculation_TextData\CONCATENATE(), PHPExcel_Calculation_TextData\LEFT(), PHPExcel_Calculation_Logical\LOGICAL_AND(), PHPExcel_Calculation_Logical\LOGICAL_OR(), PHPExcel_Calculation_TextData\LOWERCASE(), PHPExcel_Calculation_TextData\MID(), PHPExcel_Calculation_Logical\NOT(), PHPExcel_Calculation_TextData\PROPERCASE(), PHPExcel_Calculation_TextData\RIGHT(), PHPExcel_Calculation_TextData\SEARCHINSENSITIVE(), PHPExcel_Calculation_TextData\SEARCHSENSITIVE(), PHPExcel_Calculation_TextData\STRINGLENGTH(), PHPExcel_Calculation_TextData\TRIMNONPRINTABLE(), PHPExcel_Calculation_TextData\TRIMSPACES(), and PHPExcel_Calculation_TextData\UPPERCASE().
Here is the caller graph for this function:
|
static |
Get an instance of this class.
@access public
| PHPExcel | $workbook | Injected workbook for working with a PHPExcel object, or NULL to create a standalone claculation engine |
Definition at line 1765 of file Calculation.php.
References $_instance.
Referenced by PHPExcel\__construct(), PHPExcel_Worksheet\__destruct(), PHPExcel_Calculation_Database\__filter(), PHPExcel_Calculation_Statistical\AVERAGEIF(), PHPExcel_Shared_String\convertToNumberIfFraction(), PHPExcel_Calculation_Statistical\COUNTIF(), PHPExcel_Cell\getCalculatedValue(), PHPExcel_Calculation_LookupRef\INDIRECT(), PHPExcel_Calculation_Statistical\MAXIF(), PHPExcel_Calculation_Statistical\MINIF(), PHPExcel_Calculation_LookupRef\OFFSET(), PHPExcel_Chart_DataSeriesValues\refresh(), PHPExcel_Writer_CSV\save(), PHPExcel_Writer_Excel2007\save(), PHPExcel_Writer_Excel5\save(), PHPExcel_Writer_HTML\save(), PHPExcel_Settings\setLocale(), PHPExcel_Worksheet\setTitle(), PHPExcel_Worksheet_AutoFilter\showHideRows(), PHPExcel_Calculation_MathTrig\SUMIF(), and CalculationTest\testBinaryComparisonOperation().
Here is the caller graph for this function:| PHPExcel_Calculation::getLocale | ( | ) |
Get the currently defined locale code.
Definition at line 1951 of file Calculation.php.
References $_localeLanguage.
|
static |
Return the locale-specific translation of TRUE.
@access public
Definition at line 1833 of file Calculation.php.
Referenced by PHPExcel_Calculation_TextData\ASCIICODE(), PHPExcel_Cell_AdvancedValueBinder\bindValue(), PHPExcel_Calculation_TextData\CONCATENATE(), PHPExcel_Calculation_TextData\LEFT(), PHPExcel_Calculation_Logical\LOGICAL_AND(), PHPExcel_Calculation_Logical\LOGICAL_OR(), PHPExcel_Calculation_TextData\LOWERCASE(), PHPExcel_Calculation_TextData\MID(), PHPExcel_Calculation_Logical\NOT(), PHPExcel_Calculation_TextData\PROPERCASE(), PHPExcel_Calculation_TextData\RIGHT(), PHPExcel_Calculation_TextData\SEARCHINSENSITIVE(), PHPExcel_Calculation_TextData\SEARCHSENSITIVE(), PHPExcel_Calculation_TextData\STRINGLENGTH(), PHPExcel_Calculation_TextData\TRIMNONPRINTABLE(), PHPExcel_Calculation_TextData\TRIMSPACES(), and PHPExcel_Calculation_TextData\UPPERCASE().
Here is the caller graph for this function:| PHPExcel_Calculation::getValueFromCache | ( | $cellReference, | |
| & | $cellValue | ||
| ) |
Definition at line 2347 of file Calculation.php.
Referenced by _calculateFormulaValue().
Here is the caller graph for this function:| PHPExcel_Calculation::isImplemented | ( | $pFunction = '' | ) |
Is a specific function implemented?
| string | $pFunction | Function Name |
Definition at line 3890 of file Calculation.php.
| PHPExcel_Calculation::listAllFunctionNames | ( | ) |
Get a list of all Excel function names.
Definition at line 3928 of file Calculation.php.
| PHPExcel_Calculation::listFunctionNames | ( | ) |
Get a list of implemented Excel function names.
Definition at line 3937 of file Calculation.php.
References $function.
| PHPExcel_Calculation::listFunctions | ( | ) |
Get a list of all implemented functions as an array of function objects.
Definition at line 3905 of file Calculation.php.
References $function.
| PHPExcel_Calculation::parseFormula | ( | $formula | ) |
Validate and parse a formula string.
| string | $formula | Formula to parse |
| PHPExcel_Calculation_Exception |
Definition at line 2301 of file Calculation.php.
References _parseFormula().
Here is the call graph for this function:| PHPExcel_Calculation::renameCalculationCacheForWorksheet | ( | $fromWorksheetName, | |
| $toWorksheetName | |||
| ) |
Rename calculation cache for a specified worksheet.
| string | $fromWorksheetName | |
| string | $toWorksheetName |
Definition at line 1938 of file Calculation.php.
| PHPExcel_Calculation::saveValueToCache | ( | $cellReference, | |
| $cellValue | |||
| ) |
Definition at line 2360 of file Calculation.php.
Referenced by _calculateFormulaValue().
Here is the caller graph for this function:
|
static |
Set the Array Return Type (Array or Value of first element in the array)
@access public
| string | $returnType | Array return type |
Definition at line 1854 of file Calculation.php.
Referenced by PHPExcel_Writer_PDF_Core\prepareForSave(), PHPExcel_Writer_PDF_Core\restoreStateAfterSave(), PHPExcel_Writer_CSV\save(), PHPExcel_Writer_HTML\save(), and MathTrigTest\testMROUND().
Here is the caller graph for this function:| PHPExcel_Calculation::setCalculationCacheEnabled | ( | $pValue = TRUE | ) |
Enable/disable calculation cache.
@access public
| boolean | $pValue |
Definition at line 1892 of file Calculation.php.
References clearCalculationCache().
Referenced by disableCalculationCache(), and enableCalculationCache().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Calculation::setLocale | ( | $locale = 'en_us' | ) |
Set the locale code.
| string | $locale | The locale to use for formula translation |
Definition at line 1962 of file Calculation.php.
References _loadLocales().
Here is the call graph for this function:
|
private |
Compare two strings in the same way as strcmp() except that lowercase come before uppercase letters.
| string | $str1 | First string value for the comparison |
| string | $str2 | Second string value for the comparison |
Definition at line 3653 of file Calculation.php.
References PHPExcel_Shared_String\StrCaseReverse().
Referenced by _executeBinaryComparisonOperation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Unset an instance of this class.
@access public
| PHPExcel | $workbook | Injected workbook identifying the instance to unset |
Definition at line 1786 of file Calculation.php.
Referenced by PHPExcel\__destruct().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 153 of file Calculation.php.
|
private |
Definition at line 121 of file Calculation.php.
|
private |
Definition at line 130 of file Calculation.php.
Referenced by getCalculationCacheEnabled().
|
private |
Definition at line 197 of file Calculation.php.
|
staticprivate |
Definition at line 2722 of file Calculation.php.
|
staticprivate |
Definition at line 1714 of file Calculation.php.
|
private |
Definition at line 209 of file Calculation.php.
|
private |
Definition at line 207 of file Calculation.php.
Referenced by _calculateFormulaValue().
|
private |
Definition at line 195 of file Calculation.php.
|
staticprivate |
Definition at line 273 of file Calculation.php.
|
staticprivate |
Definition at line 96 of file Calculation.php.
Referenced by getInstance().
|
staticprivate |
Definition at line 251 of file Calculation.php.
|
static |
Definition at line 260 of file Calculation.php.
|
staticprivate |
Definition at line 252 of file Calculation.php.
|
staticprivate |
Definition at line 234 of file Calculation.php.
Referenced by getLocale().
|
staticprivate |
Definition at line 2711 of file Calculation.php.
|
staticprivate |
Definition at line 2727 of file Calculation.php.
|
staticprivate |
Definition at line 140 of file Calculation.php.
|
staticprivate |
Definition at line 279 of file Calculation.php.
|
private |
Definition at line 225 of file Calculation.php.
|
staticprivate |
Definition at line 243 of file Calculation.php.
|
private |
Definition at line 105 of file Calculation.php.
|
staticprivate |
Definition at line 113 of file Calculation.php.
| PHPExcel_Calculation::$cyclicFormulaCount = 1 |
Definition at line 217 of file Calculation.php.
|
private |
Definition at line 166 of file Calculation.php.
| PHPExcel_Calculation::$formulaError = NULL |
Definition at line 186 of file Calculation.php.
|
staticprivate |
Definition at line 2085 of file Calculation.php.
|
staticprivate |
Definition at line 2114 of file Calculation.php.
|
staticprivate |
Definition at line 2115 of file Calculation.php.
|
staticprivate |
Definition at line 2086 of file Calculation.php.
|
staticprivate |
Definition at line 87 of file Calculation.php.
Referenced by calculateCellValue(), and getArrayReturnType().
| PHPExcel_Calculation::$suppressFormulaErrors = FALSE |
Definition at line 177 of file Calculation.php.
| const PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF = CALCULATION_REGEXP_CELLREF |
Definition at line 75 of file Calculation.php.
Referenced by PHPExcel_Worksheet\cellExists(), PHPExcel_Worksheet\getCell(), and PHPExcel_Calculation_LookupRef\INDIRECT().
| const PHPExcel_Calculation::CALCULATION_REGEXP_ERROR = '\#[A-Z][A-Z0_\/]*[!\?]?' |
Definition at line 79 of file Calculation.php.
| const PHPExcel_Calculation::CALCULATION_REGEXP_FUNCTION = '@?([A-Z][A-Z0-9\.]*)[\s]*\(' |
Definition at line 73 of file Calculation.php.
| const PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE = CALCULATION_REGEXP_NAMEDRANGE |
Definition at line 77 of file Calculation.php.
Referenced by PHPExcel_Worksheet\cellExists(), PHPExcel_Worksheet\getCell(), and PHPExcel_Calculation_LookupRef\INDIRECT().
| const PHPExcel_Calculation::CALCULATION_REGEXP_NUMBER = '[-+]?\d*\.?\d+(e[-+]?\d+)?' |
Constants
Regular Expressions
Definition at line 67 of file Calculation.php.
Referenced by PHPExcel_Cell_AdvancedValueBinder\bindValue().
| const PHPExcel_Calculation::CALCULATION_REGEXP_OPENBRACE = '\(' |
Definition at line 71 of file Calculation.php.
| const PHPExcel_Calculation::CALCULATION_REGEXP_STRING = '"(?:[^"]|"")*"' |
Definition at line 69 of file Calculation.php.
| const PHPExcel_Calculation::RETURN_ARRAY_AS_ARRAY = 'array' |
Definition at line 85 of file Calculation.php.
Referenced by calculateCellValue(), and MathTrigTest\testMROUND().
| const PHPExcel_Calculation::RETURN_ARRAY_AS_ERROR = 'error' |
constants
Definition at line 83 of file Calculation.php.
| const PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE = 'value' |
Definition at line 84 of file Calculation.php.
Referenced by PHPExcel_Writer_PDF_Core\prepareForSave(), PHPExcel_Writer_CSV\save(), PHPExcel_Writer_HTML\save(), and MathTrigTest\testMROUND().