|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for PhpOffice\PhpSpreadsheet\Calculation\Calculation:Public Member Functions | |
| __construct (?Spreadsheet $spreadsheet=null) | |
| flushInstance () | |
| Flush the calculation cache for any existing instance of this class but only if a Calculation instance exists. More... | |
| getDebugLog () | |
| Get the Logger for this calculation engine instance. More... | |
| __clone () | |
| __clone implementation. More... | |
| getCalculationCacheEnabled () | |
| Is calculation caching enabled? More... | |
| setCalculationCacheEnabled ($pValue) | |
| 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... | |
| setBranchPruningEnabled ($enabled) | |
| Enable/disable calculation cache. More... | |
| enableBranchPruning () | |
| disableBranchPruning () | |
| clearBranchStore () | |
| getLocale () | |
| Get the currently defined locale code. More... | |
| setLocale (string $locale) | |
| Set the locale code. More... | |
| _translateFormulaToLocale ($formula) | |
| _translateFormulaToEnglish ($formula) | |
| calculate (?Cell $pCell=null) | |
| Calculate cell value (using formula from a cell ID) Retained for backward compatibility. More... | |
| calculateCellValue (?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, ?Cell $pCell=null) | |
| Calculate the value of a formula. More... | |
| getValueFromCache (string $cellReference, &$cellValue) | |
| saveValueToCache ($cellReference, $cellValue) | |
| _calculateFormulaValue ($formula, $cellID=null, ?Cell $pCell=null) | |
| Parse a cell formula and calculate its value. More... | |
| extractCellRange (&$pRange='A1', ?Worksheet $pSheet=null, $resetLog=true) | |
| Extract range values. More... | |
| extractNamedRange (&$pRange='A1', ?Worksheet $pSheet=null, $resetLog=true) | |
| Extract range values. More... | |
| isImplemented ($pFunction) | |
| Is a specific function implemented? More... | |
| getFunctions () | |
| Get a list of all implemented functions as an array of function objects. More... | |
| getImplementedFunctionNames () | |
| Get a list of implemented Excel function names. More... | |
Static Public Member Functions | |
| static | getInstance (?Spreadsheet $spreadsheet=null) |
| Get 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 (array &$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 = '@?(?:_xlfn\.)?([\p{L}][\p{L}\p{N}\.]*)[\s]*\(' |
| const | CALCULATION_REGEXP_CELLREF = '((([^\s,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?\$?\b([a-z]{1,3})\$?(\d{1,7})(?![\w.])' |
| const | CALCULATION_REGEXP_CELLREF_RELATIVE = '((([^\s\(,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?(\$?\b[a-z]{1,3})(\$?\d{1,7})(?![\w.])' |
| const | CALCULATION_REGEXP_COLUMN_RANGE = '(((([^\s\(,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?(\$?[a-z]{1,3})):(?![.*])' |
| const | CALCULATION_REGEXP_ROW_RANGE = '(((([^\s\(,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?(\$?[1-9][0-9]{0,6})):(?![.*])' |
| const | CALCULATION_REGEXP_COLUMNRANGE_RELATIVE = '(\$?[a-z]{1,3}):(\$?[a-z]{1,3})' |
| const | CALCULATION_REGEXP_ROWRANGE_RELATIVE = '(\$?\d{1,7}):(\$?\d{1,7})' |
| const | CALCULATION_REGEXP_DEFINEDNAME = '((([^\s,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?([_\p{L}][_\p{L}\p{N}\.]*)' |
| 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' |
| const | FORMULA_OPEN_FUNCTION_BRACE = '{' |
| const | FORMULA_CLOSE_FUNCTION_BRACE = '}' |
| const | FORMULA_STRING_QUOTE = '"' |
| $suppressFormulaErrors = false | |
| $formulaError | |
| $cyclicFormulaCount = 1 | |
Static Public Attributes | |
| static | $localeBoolean |
Protected Member Functions | |
| raiseFormulaError ($errorMessage) | |
Private Member Functions | |
| getLocaleFile (string $localeDir, string $locale, string $language, string $file) | |
| 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) | |
| internalParseFormula ($formula, ?Cell $pCell=null) | |
| processTokenStack ($tokens, $cellID=null, ?Cell $pCell=null) | |
| validateBinaryOperand (&$operand, &$stack) | |
| executeArrayComparison ($cellID, $operand1, $operand2, $operation, Stack &$stack, bool $recursingArrays) | |
| executeBinaryComparisonOperation ($cellID, $operand1, $operand2, $operation, Stack &$stack, $recursingArrays=false) | |
| strcmpLowercaseFirst ($str1, $str2) | |
| Compare two strings in the same way as strcmp() except that lowercase come before uppercase letters. More... | |
| strcmpAllowNull ($str1, $str2) | |
| PHP8.1 deprecates passing null to strcmp. More... | |
| executeNumericBinaryOperation ($operand1, $operand2, $operation, $matrixFunction, &$stack) | |
| addCellReference (array $args, $passCellReference, $functionCall, ?Cell $pCell=null) | |
| Add cell reference if needed while making sure that it is the last argument. More... | |
| getUnusedBranchStoreKey () | |
| getTokensAsString ($tokens) | |
| evaluateDefinedName (Cell $pCell, DefinedName $namedRange, Worksheet $pCellWorksheet, Stack $stack) | |
Static Private Member Functions | |
| static | loadLocales () |
| static | translateFormula (array $from, array $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 | dataTestReference (&$operandData) |
Private Attributes | |
| $spreadsheet | |
| $calculationCache = [] | |
| $calculationCacheEnabled = true | |
| $branchStoreKeyCounter = 0 | |
| $branchPruningEnabled = true | |
| $debugLog | |
| $cyclicReferenceStack | |
| $cellStack = [] | |
| $cyclicFormulaCounter = 1 | |
| $cyclicFormulaCell = '' | |
| $delta = 0.1e-12 | |
Static Private Attributes | |
| static | $returnArrayAsType = self::RETURN_ARRAY_AS_VALUE |
| static | $instance |
| static | $operators |
| static | $binaryOperators |
| static | $referenceHelper |
| static | $localeLanguage = 'en_us' |
| static | $validLocaleLanguages |
| static | $localeArgumentSeparator = ',' |
| static | $localeFunctions = [] |
| static | $excelConstants |
| static | $phpSpreadsheetFunctions |
| static | $controlFunctions |
| static | $functionReplaceFromExcel = null |
| static | $functionReplaceToLocale = null |
| static | $functionReplaceFromLocale = null |
| static | $functionReplaceToExcel = null |
| static | $operatorAssociativity |
| static | $comparisonOperators = ['>' => true, '<' => true, '=' => true, '>=' => true, '<=' => true, '<>' => true] |
| static | $operatorPrecedence |
Definition at line 17 of file Calculation.php.
| PhpOffice\PhpSpreadsheet\Calculation\Calculation::__construct | ( | ?Spreadsheet | $spreadsheet = null | ) |
Definition at line 2758 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$spreadsheet, and PhpOffice\PhpSpreadsheet\ReferenceHelper\getInstance().
Here is the call graph for this function:
|
final |
__clone implementation.
Cloning should not be allowed in a Singleton!
Definition at line 2824 of file Calculation.php.
| PhpOffice\PhpSpreadsheet\Calculation\Calculation::_calculateFormulaValue | ( | $formula, | |
$cellID = null, |
|||
| ?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 |
| Cell | $pCell | Cell to calculate |
Definition at line 3482 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$cyclicFormulaCounter, PhpOffice\PhpSpreadsheet\Calculation\Calculation\getValueFromCache(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\internalParseFormula(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\raiseFormulaError(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\saveValueToCache(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\wrapResult().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\calculateCellValue(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\calculateFormula().
Here is the call graph for this function:
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::_translateFormulaToEnglish | ( | $formula | ) |
Definition at line 3195 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\translateFormula().
Here is the call graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::_translateFormulaToLocale | ( | $formula | ) |
Definition at line 3166 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$localeBoolean, and PhpOffice\PhpSpreadsheet\Calculation\Calculation\translateFormula().
Here is the call graph for this function:
|
private |
Add cell reference if needed while making sure that it is the last argument.
| bool | $passCellReference | |
| array | string | $functionCall |
Definition at line 5397 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::calculate | ( | ?Cell | $pCell = null | ) |
Calculate cell value (using formula from a cell ID) Retained for backward compatibility.
Definition at line 3291 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\calculateCellValue().
Here is the call graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::calculateCellValue | ( | ?Cell | $pCell = null, |
$resetLog = true |
|||
| ) |
Calculate the value of a cell formula.
| Cell | $pCell | Cell to calculate |
| bool | $resetLog | Flag indicating whether the debug log should be reset or not |
Definition at line 3308 of file Calculation.php.
References $c, $r, $result, PhpOffice\PhpSpreadsheet\Calculation\Calculation\$returnArrayAsType, PhpOffice\PhpSpreadsheet\Calculation\Calculation\_calculateFormulaValue(), PhpOffice\PhpSpreadsheet\Calculation\Functions\flattenArray(), PhpOffice\PhpSpreadsheet\Calculation\Functions\NAN(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\RETURN_ARRAY_AS_ARRAY, PhpOffice\PhpSpreadsheet\Calculation\Calculation\unwrapResult(), and PhpOffice\PhpSpreadsheet\Calculation\Functions\VALUE().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\calculate().
Here is the call graph for this function:
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::calculateFormula | ( | $formula, | |
$cellID = null, |
|||
| ?Cell | $pCell = null |
||
| ) |
Calculate the value of a formula.
| string | $formula | Formula to parse |
| string | $cellID | Address of the cell to calculate |
| Cell | $pCell | Cell to calculate |
Definition at line 3410 of file Calculation.php.
References $result, PhpOffice\PhpSpreadsheet\Calculation\Calculation\_calculateFormulaValue(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\getCalculationCacheEnabled(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\unwrapResult().
Here is the call 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 |
| int | $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 3565 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\getMatrixDimensions(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\resizeMatricesExtend(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\resizeMatricesShrink().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeArrayComparison(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeNumericBinaryOperation(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack().
Here is the call graph for this function:
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::clearBranchStore | ( | ) |
Definition at line 2972 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\flushInstance().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::clearCalculationCache | ( | ) |
Clear calculation cache.
Definition at line 2921 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\flushInstance(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\setCalculationCacheEnabled().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::clearCalculationCacheForWorksheet | ( | $worksheetName | ) |
Clear calculation cache for a specified worksheet.
| string | $worksheetName |
Definition at line 2931 of file Calculation.php.
|
private |
| string | $formula |
Definition at line 3794 of file Calculation.php.
References $i, PhpOffice\PhpSpreadsheet\Calculation\Calculation\FORMULA_CLOSE_FUNCTION_BRACE, PhpOffice\PhpSpreadsheet\Calculation\Calculation\FORMULA_OPEN_FUNCTION_BRACE, and PhpOffice\PhpSpreadsheet\Calculation\Calculation\raiseFormulaError().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\internalParseFormula().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 4361 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::disableBranchPruning | ( | ) |
Definition at line 2967 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\setBranchPruningEnabled().
Here is the call graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::disableCalculationCache | ( | ) |
Disable calculation cache.
Definition at line 2913 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\setCalculationCacheEnabled().
Here is the call graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::enableBranchPruning | ( | ) |
Definition at line 2962 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\setBranchPruningEnabled().
Here is the call graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::enableCalculationCache | ( | ) |
Enable calculation cache.
Definition at line 2905 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\setCalculationCacheEnabled().
Here is the call graph for this function:
|
private |
Definition at line 5442 of file Calculation.php.
References $result, PhpOffice\PhpSpreadsheet\Calculation\Calculation\$spreadsheet, PhpOffice\PhpSpreadsheet\Cell\Coordinate\columnIndexFromString(), PhpOffice\PhpSpreadsheet\Cell\Cell\getColumn(), PhpOffice\PhpSpreadsheet\Cell\Cell\getCoordinate(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\getDebugLog(), PhpOffice\PhpSpreadsheet\DefinedName\getName(), PhpOffice\PhpSpreadsheet\Cell\Cell\getRow(), PhpOffice\PhpSpreadsheet\DefinedName\getScope(), PhpOffice\PhpSpreadsheet\DefinedName\getValue(), PhpOffice\PhpSpreadsheet\DefinedName\getWorksheet(), PhpOffice\PhpSpreadsheet\DefinedName\isFormula(), PhpOffice\PhpSpreadsheet\Calculation\Token\Stack\push(), and PhpOffice\PhpSpreadsheet\Calculation\Functions\REF().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| null | string | $cellID | |
| mixed | $operand1 | |
| mixed | $operand2 | |
| string | $operation |
Definition at line 4948 of file Calculation.php.
References $r, $result, $x, PhpOffice\PhpSpreadsheet\Calculation\Calculation\checkMatrixOperands(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeBinaryComparisonOperation(), PhpOffice\PhpSpreadsheet\Calculation\Token\Stack\pop(), PhpOffice\PhpSpreadsheet\Calculation\Token\Stack\push(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\showTypeDetails(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\showValue().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeBinaryComparisonOperation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| null | string | $cellID | |
| mixed | $operand1 | |
| mixed | $operand2 | |
| string | $operation | |
| bool | $recursingArrays |
Definition at line 4996 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$delta, $result, PhpOffice\PhpSpreadsheet\Calculation\Functions\COMPATIBILITY_OPENOFFICE, PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeArrayComparison(), PhpOffice\PhpSpreadsheet\Calculation\Functions\getCompatibilityMode(), PhpOffice\PhpSpreadsheet\Calculation\Token\Stack\push(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\showTypeDetails(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\strcmpAllowNull(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\strcmpLowercaseFirst(), PhpOffice\PhpSpreadsheet\Shared\StringHelper\strToUpper(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\unwrapResult().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeArrayComparison(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| mixed | $operand1 | |
| mixed | $operand2 | |
| mixed | $operation | |
| string | $matrixFunction | |
| mixed | $stack |
Definition at line 5134 of file Calculation.php.
References $matrix, $result, PhpOffice\PhpSpreadsheet\Calculation\Calculation\checkMatrixOperands(), PhpOffice\PhpSpreadsheet\Calculation\Functions\COMPATIBILITY_OPENOFFICE, PhpOffice\PhpSpreadsheet\Calculation\Functions\getCompatibilityMode(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\showTypeDetails(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\validateBinaryOperand(), and PhpOffice\PhpSpreadsheet\Calculation\Functions\VALUE().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack().
Here is the call graph for this function:
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::extractCellRange | ( | & | $pRange = 'A1', |
| ?Worksheet | $pSheet = null, |
||
$resetLog = true |
|||
| ) |
Extract range values.
| string | $pRange | String based range representation |
| Worksheet | $pSheet | Worksheet |
| bool | $resetLog | Flag indicating whether calculation log should be reset or not |
Definition at line 5240 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Cell\Coordinate\extractAllCellReferencesInRange().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack().
Here is the call graph for this function:
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::extractNamedRange | ( | & | $pRange = 'A1', |
| ?Worksheet | $pSheet = null, |
||
$resetLog = true |
|||
| ) |
Extract range values.
| string | $pRange | String based range representation |
| Worksheet | $pSheet | Worksheet |
| bool | $resetLog | Flag indicating whether calculation log should be reset or not |
Definition at line 5294 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Cell\Coordinate\coordinateFromString(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\extractAllCellReferencesInRange(), PhpOffice\PhpSpreadsheet\Calculation\Functions\REF(), PhpOffice\PhpSpreadsheet\DefinedName\resolveName(), and PhpOffice\PhpSpreadsheet\Cell\Coordinate\splitRange().
Here is the call graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::flushInstance | ( | ) |
Flush the calculation cache for any existing instance of this class but only if a Calculation instance exists.
Definition at line 2805 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\clearBranchStore(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\clearCalculationCache().
Here is the call graph for this function:
|
static |
Return the Array Return Type (Array or Value of first element in the array).
Definition at line 2876 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$returnArrayAsType.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHtmlAll(), and PhpOffice\PhpSpreadsheet\Writer\Csv\save().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::getCalculationCacheEnabled | ( | ) |
Is calculation caching enabled?
Definition at line 2886 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$calculationCacheEnabled.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\calculateFormula().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::getDebugLog | ( | ) |
Get the Logger for this calculation engine instance.
Definition at line 2816 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$debugLog.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName().
Here is the caller graph for this function:
|
static |
Return the locale-specific translation of FALSE.
Definition at line 2844 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\bindValue(), PhpOffice\PhpSpreadsheet\Calculation\TextData\CharacterConvert\convertBooleanValue(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Concatenate\convertBooleanValue(), PhpOffice\PhpSpreadsheet\Calculation\Logical\Operations\countTrueValues(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Search\insensitive(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Extract\left(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Text\length(), PhpOffice\PhpSpreadsheet\Calculation\TextData\CaseConvert\lower(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Extract\mid(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Trim\nonPrintable(), PhpOffice\PhpSpreadsheet\Calculation\Logical\Operations\NOT(), PhpOffice\PhpSpreadsheet\Calculation\Functions\operandSpecialHandling(), PhpOffice\PhpSpreadsheet\Calculation\TextData\CaseConvert\proper(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Extract\right(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Search\sensitive(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Trim\spaces(), and PhpOffice\PhpSpreadsheet\Calculation\TextData\CaseConvert\upper().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::getFunctions | ( | ) |
Get a list of all implemented functions as an array of function objects.
Definition at line 5367 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$phpSpreadsheetFunctions.
| PhpOffice\PhpSpreadsheet\Calculation\Calculation::getImplementedFunctionNames | ( | ) |
Get a list of implemented Excel function names.
Definition at line 5377 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\isImplemented().
Here is the call graph for this function:
|
static |
Get an instance of this class.
| ?Spreadsheet | $spreadsheet Injected spreadsheet for working with a PhpSpreadsheet Spreadsheet object, or NULL to create a standalone calculation engine |
Definition at line 2785 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$instance, and PhpOffice\PhpSpreadsheet\Calculation\Calculation\$spreadsheet.
Referenced by PhpOffice\PhpSpreadsheet\Shared\StringHelper\convertToNumberIfFraction(), PhpOffice\PhpSpreadsheet\Calculation\Database\DatabaseAbstract\executeQuery(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Indirect\extractRequiredCells(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Offset\extractRequiredCells(), PhpOffice\PhpSpreadsheet\Writer\Html\generateHtmlAll(), PhpOffice\PhpSpreadsheet\Cell\Cell\getCalculatedValue(), PhpOffice\PhpSpreadsheet\Cell\DataValidator\isValueInList(), PhpOffice\PhpSpreadsheet\Chart\DataSeriesValues\refresh(), PhpOffice\PhpSpreadsheet\Writer\Csv\save(), PhpOffice\PhpSpreadsheet\Writer\Xls\save(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\save(), PhpOffice\PhpSpreadsheet\Settings\setLocale(), and PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\showHideRows().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::getLocale | ( | ) |
Get the currently defined locale code.
Definition at line 2982 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$localeLanguage.
|
private |
Definition at line 2987 of file Calculation.php.
References $language.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\setLocale().
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.
| array | $matrix | matrix operand |
Definition at line 3603 of file Calculation.php.
References $matrix.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\checkMatrixOperands(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\RowColumnInformation\COLUMNS(), and PhpOffice\PhpSpreadsheet\Calculation\LookupRef\RowColumnInformation\ROWS().
Here is the caller graph for this function:
|
private |
Definition at line 5425 of file Calculation.php.
References PHPMailer\PHPMailer\$token.
|
static |
Return the locale-specific translation of TRUE.
Definition at line 2834 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder\bindValue(), PhpOffice\PhpSpreadsheet\Calculation\TextData\CharacterConvert\convertBooleanValue(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Concatenate\convertBooleanValue(), PhpOffice\PhpSpreadsheet\Calculation\Logical\Operations\countTrueValues(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Search\insensitive(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Extract\left(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Text\length(), PhpOffice\PhpSpreadsheet\Calculation\TextData\CaseConvert\lower(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Extract\mid(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Trim\nonPrintable(), PhpOffice\PhpSpreadsheet\Calculation\Logical\Operations\NOT(), PhpOffice\PhpSpreadsheet\Calculation\Functions\operandSpecialHandling(), PhpOffice\PhpSpreadsheet\Calculation\TextData\CaseConvert\proper(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Extract\right(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Search\sensitive(), PhpOffice\PhpSpreadsheet\Calculation\TextData\Trim\spaces(), and PhpOffice\PhpSpreadsheet\Calculation\TextData\CaseConvert\upper().
Here is the caller graph for this function:
|
private |
Definition at line 5417 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\$branchStoreKeyCounter.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\internalParseFormula().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::getValueFromCache | ( | string | $cellReference, |
| & | $cellValue | ||
| ) |
| mixed | $cellValue |
Definition at line 3445 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\_calculateFormulaValue().
Here is the caller graph for this function:
|
private |
| string | $formula |
Definition at line 3883 of file Calculation.php.
References $d, $index, Sabre\VObject\$output, $row, PhpOffice\PhpSpreadsheet\Calculation\Calculation\convertMatrixReferences(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\getUnusedBranchStoreKey(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\raiseFormulaError(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\wrapResult().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\_calculateFormulaValue(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\parseFormula().
Here is the call graph for this function:
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::isImplemented | ( | $pFunction | ) |
Is a specific function implemented?
| string | $pFunction | Function Name |
Definition at line 5356 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\getImplementedFunctionNames().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 2768 of file Calculation.php.
References $filename.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\setLocale().
Here is the caller graph for this function:
|
static |
Definition at line 3220 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Token\Stack\push().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::parseFormula | ( | $formula | ) |
Validate and parse a formula string.
| string | $formula | Formula to parse |
Definition at line 3384 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\internalParseFormula().
Here is the call graph for this function:
|
private |
| mixed | $tokens | |
| null | string | $cellID |
Definition at line 4385 of file Calculation.php.
References $data, $i, $matrix, Sabre\VObject\$output, $result, $row, PHPMailer\PHPMailer\$token, PhpOffice\PhpSpreadsheet\Calculation\Calculation\addCellReference(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\checkMatrixOperands(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\columnIndexFromString(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\coordinateFromString(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\dataTestReference(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeBinaryComparisonOperation(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeNumericBinaryOperation(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\extractCellRange(), PhpOffice\PhpSpreadsheet\Calculation\Functions\flattenArray(), PhpOffice\PhpSpreadsheet\Calculation\Functions\flattenSingleValue(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\FORMULA_STRING_QUOTE, PhpOffice\PhpSpreadsheet\Calculation\Functions\isError(), PhpOffice\PhpSpreadsheet\Calculation\Functions\null(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\raiseFormulaError(), PhpOffice\PhpSpreadsheet\Calculation\Functions\REF(), PhpOffice\PhpSpreadsheet\DefinedName\resolveName(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\showTypeDetails(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\showValue(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\stringFromColumnIndex(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\unwrapResult().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\_calculateFormulaValue().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 5219 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\_calculateFormulaValue(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\convertMatrixReferences(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\internalParseFormula(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::renameCalculationCacheForWorksheet | ( | $fromWorksheetName, | |
| $toWorksheetName | |||
| ) |
Rename calculation cache for a specified worksheet.
| string | $fromWorksheetName | |
| string | $toWorksheetName |
Definition at line 2944 of file Calculation.php.
|
staticprivate |
Ensure that paired matrix operands are both matrices of the same size.
| mixed | $matrix1 | First matrix operand |
| mixed | $matrix2 | Second matrix operand |
| int | $matrix1Rows | Row size of first matrix operand |
| int | $matrix1Columns | Column size of first matrix operand |
| int | $matrix2Rows | Row size of second matrix operand |
| int | $matrix2Columns | Column size of second matrix operand |
Definition at line 3674 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\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 |
| int | $matrix1Rows | Row size of first matrix operand |
| int | $matrix1Columns | Column size of first matrix operand |
| int | $matrix2Rows | Row size of second matrix operand |
| int | $matrix2Columns | Column size of second matrix operand |
Definition at line 3631 of file Calculation.php.
References $i.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\checkMatrixOperands().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::saveValueToCache | ( | $cellReference, | |
| $cellValue | |||
| ) |
| string | $cellReference | |
| mixed | $cellValue |
Definition at line 3466 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\_calculateFormulaValue().
Here is the caller graph for this function:
|
static |
Set the Array Return Type (Array or Value of first element in the array).
| string | $returnType | Array return type |
Definition at line 2856 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHtmlAll(), and PhpOffice\PhpSpreadsheet\Writer\Csv\save().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::setBranchPruningEnabled | ( | $enabled | ) |
Enable/disable calculation cache.
| mixed | $enabled |
Definition at line 2957 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\disableBranchPruning(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\enableBranchPruning().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::setCalculationCacheEnabled | ( | $pValue | ) |
Enable/disable calculation cache.
| bool | $pValue |
Definition at line 2896 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\clearCalculationCache().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\disableCalculationCache(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\enableCalculationCache().
Here is the call graph for this function:
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Calculation\Calculation::setLocale | ( | string | $locale | ) |
Set the locale code.
| string | $locale | The locale to use for formula translation, eg: 'en_us' |
Definition at line 3009 of file Calculation.php.
References $language, PhpOffice\PhpSpreadsheet\Calculation\Calculation\$localeFunctions, PhpOffice\PhpSpreadsheet\Calculation\Calculation\getLocaleFile(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\loadLocales().
Here is the call 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 3756 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Functions\flattenArray(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\showValue().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeArrayComparison(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeBinaryComparisonOperation(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeNumericBinaryOperation(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\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 3718 of file Calculation.php.
References $row, PhpOffice\PhpSpreadsheet\Calculation\Functions\flattenArray(), PhpOffice\PhpSpreadsheet\Calculation\Functions\flattenSingleValue(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\FORMULA_STRING_QUOTE, and PhpOffice\PhpSpreadsheet\Calculation\Calculation\showValue().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeArrayComparison(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\showTypeDetails(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\showValue().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
PHP8.1 deprecates passing null to strcmp.
| null | string | $str1 | First string value for the comparison |
| null | string | $str2 | Second string value for the comparison |
Definition at line 5120 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeBinaryComparisonOperation().
Here is the caller graph for this function:
|
private |
Compare two strings in the same way as strcmp() except that lowercase come before uppercase letters.
| null | string | $str1 | First string value for the comparison |
| null | string | $str2 | Second string value for the comparison |
Definition at line 5104 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Shared\StringHelper\strCaseReverse().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeBinaryComparisonOperation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
| string[] | $from | |
| string[] | $to | |
| string | $formula | |
| string | $fromSeparator | |
| string | $toSeparator |
Definition at line 3131 of file Calculation.php.
References $from, $i, and PhpOffice\PhpSpreadsheet\Calculation\Calculation\translateSeparator().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\_translateFormulaToEnglish(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\_translateFormulaToLocale().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| string | $fromSeparator | |
| string | $toSeparator | |
| string | $formula | |
| bool | $inBraces |
Definition at line 3098 of file Calculation.php.
References $i, PhpOffice\PhpSpreadsheet\Calculation\Calculation\FORMULA_CLOSE_FUNCTION_BRACE, and PhpOffice\PhpSpreadsheet\Calculation\Calculation\FORMULA_OPEN_FUNCTION_BRACE.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Ods\BaseReader\convertToExcelFormulaValue(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\translateFormula().
Here is the caller graph for this function:
|
static |
Remove quotes used as a wrapper to identify string values.
| mixed | $value |
Definition at line 3269 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Functions\NAN().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\calculateCellValue(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\calculateFormula(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeBinaryComparisonOperation(), PhpOffice\PhpSpreadsheet\Reader\Slk\processCFinal(), PhpOffice\PhpSpreadsheet\Reader\Slk\processCRecord(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack(), PhpOffice\PhpSpreadsheet\Chart\DataSeriesValues\refresh(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\validateBinaryOperand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 4902 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Shared\StringHelper\convertToNumberIfFraction(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\showTypeDetails(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\unwrapResult().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\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 3243 of file Calculation.php.
References PhpOffice\PhpSpreadsheet\Calculation\Calculation\FORMULA_STRING_QUOTE, and PhpOffice\PhpSpreadsheet\Calculation\Functions\NAN().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\_calculateFormulaValue(), PhpOffice\PhpSpreadsheet\Calculation\Functions\ifCondition(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\internalParseFormula(), and PhpOffice\PhpSpreadsheet\Calculation\Database\DatabaseAbstract\processCondition().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 110 of file Calculation.php.
|
private |
Definition at line 90 of file Calculation.php.
|
private |
Definition at line 88 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\getUnusedBranchStoreKey().
|
private |
Definition at line 74 of file Calculation.php.
|
private |
Definition at line 81 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\getCalculationCacheEnabled().
|
private |
Definition at line 154 of file Calculation.php.
|
staticprivate |
Definition at line 3859 of file Calculation.php.
|
staticprivate |
Definition at line 2743 of file Calculation.php.
|
private |
Definition at line 165 of file Calculation.php.
| PhpOffice\PhpSpreadsheet\Calculation\Calculation::$cyclicFormulaCount = 1 |
Definition at line 172 of file Calculation.php.
|
private |
Definition at line 163 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\_calculateFormulaValue().
|
private |
Definition at line 152 of file Calculation.php.
|
private |
Definition at line 122 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\getDebugLog().
|
private |
Definition at line 179 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Beta\betaFraction(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\executeBinaryComparisonOperation().
|
staticprivate |
Definition at line 224 of file Calculation.php.
| PhpOffice\PhpSpreadsheet\Calculation\Calculation::$formulaError |
Definition at line 138 of file Calculation.php.
|
staticprivate |
Definition at line 3162 of file Calculation.php.
|
staticprivate |
Definition at line 3191 of file Calculation.php.
|
staticprivate |
Definition at line 3193 of file Calculation.php.
|
staticprivate |
Definition at line 3164 of file Calculation.php.
|
staticprivate |
Definition at line 60 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\getInstance(), PhpOffice\PhpSpreadsheet\Calculation\TextData\SUBSTITUTE(), and PhpOffice\PhpSpreadsheet\Calculation\TextData\Replace\substitute().
|
staticprivate |
Definition at line 203 of file Calculation.php.
|
static |
Definition at line 212 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\_translateFormulaToLocale().
|
staticprivate |
Definition at line 205 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\setLocale().
|
staticprivate |
Definition at line 186 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\getLocale().
|
staticprivate |
Definition at line 3848 of file Calculation.php.
|
staticprivate |
Definition at line 3864 of file Calculation.php.
|
staticprivate |
Definition at line 98 of file Calculation.php.
|
staticprivate |
Definition at line 231 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\getFunctions().
|
staticprivate |
Definition at line 145 of file Calculation.php.
|
staticprivate |
Definition at line 53 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\calculateCellValue(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\getArrayReturnType().
|
private |
Definition at line 67 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\__construct(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\getInstance().
| PhpOffice\PhpSpreadsheet\Calculation\Calculation::$suppressFormulaErrors = false |
Definition at line 131 of file Calculation.php.
|
staticprivate |
Definition at line 194 of file Calculation.php.
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_CELLREF = '((([^\s,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?\$?\b([a-z]{1,3})\$?(\d{1,7})(?![\w.])' |
Definition at line 30 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Indirect\INDIRECT(), PhpOffice\PhpSpreadsheet\Calculation\Functions\isFormula(), PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\parseDefinedNameValue(), and PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Formula\text().
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_CELLREF_RELATIVE = '((([^\s\(,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?(\$?\b[a-z]{1,3})(\$?\d{1,7})(?![\w.])' |
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_COLUMN_RANGE = '(((([^\s\(,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?(\$?[a-z]{1,3})):(?![.*])' |
Definition at line 33 of file Calculation.php.
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_COLUMNRANGE_RELATIVE = '(\$?[a-z]{1,3}):(\$?[a-z]{1,3})' |
Definition at line 37 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\ReferenceHelper\updateColumnRangesAllWorksheets().
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_ERROR = '\#[A-Z][A-Z0_\/]*[!\?]?' |
Definition at line 42 of file Calculation.php.
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_FUNCTION = '@?(?:_xlfn\.)?([\p{L}][\p{L}\p{N}\.]*)[\s]*\(' |
Definition at line 28 of file Calculation.php.
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_NUMBER = '[-+]?\d*\.?\d+(e[-+]?\d+)?' |
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_OPENBRACE = '\(' |
Definition at line 26 of file Calculation.php.
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_ROW_RANGE = '(((([^\s\(,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?(\$?[1-9][0-9]{0,6})):(?![.*])' |
Definition at line 34 of file Calculation.php.
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_ROWRANGE_RELATIVE = '(\$?\d{1,7}):(\$?\d{1,7})' |
Definition at line 38 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\ReferenceHelper\updateRowRangesAllWorksheets().
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::CALCULATION_REGEXP_STRING = '"(?:[^"]|"")*"' |
Definition at line 24 of file Calculation.php.
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::FORMULA_CLOSE_FUNCTION_BRACE = '}' |
Definition at line 50 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\convertMatrixReferences(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\translateSeparator().
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::FORMULA_OPEN_FUNCTION_BRACE = '{' |
Definition at line 49 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\convertMatrixReferences(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\translateSeparator().
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::FORMULA_STRING_QUOTE = '"' |
Definition at line 51 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\showValue(), and PhpOffice\PhpSpreadsheet\Calculation\Calculation\wrapResult().
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::RETURN_ARRAY_AS_ARRAY = 'array' |
Definition at line 47 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\calculateCellValue().
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::RETURN_ARRAY_AS_ERROR = 'error' |
constants
Definition at line 45 of file Calculation.php.
| const PhpOffice\PhpSpreadsheet\Calculation\Calculation::RETURN_ARRAY_AS_VALUE = 'value' |
Definition at line 46 of file Calculation.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHtmlAll(), and PhpOffice\PhpSpreadsheet\Writer\Csv\save().