ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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!
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(), getValueFromCache(), and saveValueToCache().
Referenced by calculateCellValue(), and calculateFormula().
|
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 array.
|
private |
Definition at line 2652 of file Calculation.php.
References _raiseFormulaError(), and array.
Referenced by _parseFormula().
|
staticprivate |
Definition at line 3082 of file Calculation.php.
|
private |
Definition at line 3532 of file Calculation.php.
References $r, $result, $x, _showTypeDetails(), _showValue(), array, PHPExcel_Calculation_Functions\COMPATIBILITY_OPENOFFICE, PHPExcel_Calculation_Functions\getCompatibilityMode(), and strcmpLowercaseFirst().
Referenced by _processTokenStack().
|
private |
Definition at line 3661 of file Calculation.php.
References $result, _showTypeDetails(), _validateBinaryOperand(), PHPExcel_Calculation_Functions\COMPATIBILITY_OPENOFFICE, PHPExcel_Calculation_Functions\getCompatibilityMode(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by _processTokenStack().
|
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.
References array.
Referenced by PHPExcel_Calculation_LookupRef\COLUMNS(), and PHPExcel_Calculation_LookupRef\ROWS().
|
staticprivate |
|
static |
Definition at line 2142 of file Calculation.php.
Referenced by PHPExcel_Calculation_Token_Stack\push().
|
staticprivate |
Definition at line 2703 of file Calculation.php.
|
private |
Definition at line 2740 of file Calculation.php.
References $d, $output, _convertMatrixReferences(), _raiseFormulaError(), and array.
Referenced by _calculateFormulaValue(), and parseFormula().
|
private |
Definition at line 3098 of file Calculation.php.
References $data, $output, $result, $row, _executeBinaryComparisonOperation(), _executeNumericBinaryOperation(), _raiseFormulaError(), _showTypeDetails(), _showValue(), array, 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().
|
protected |
Definition at line 3731 of file Calculation.php.
Referenced by _calculateFormulaValue(), _convertMatrixReferences(), _parseFormula(), and _processTokenStack().
|
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.
References $x.
|
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.
|
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().
|
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, array, PHPExcel_Calculation_Functions\flattenArray(), and PHPExcel_Calculation_Functions\flattenSingleValue().
Referenced by _executeBinaryComparisonOperation(), _processTokenStack(), and _showTypeDetails().
|
staticprivate |
Definition at line 2055 of file Calculation.php.
PHPExcel_Calculation::_translateFormulaToEnglish | ( | $formula | ) |
Definition at line 2117 of file Calculation.php.
References array.
PHPExcel_Calculation::_translateFormulaToLocale | ( | $formula | ) |
Definition at line 2088 of file Calculation.php.
References array.
|
static |
Definition at line 2037 of file Calculation.php.
Referenced by PHPExcel_Reader_OOCalc\loadIntoExisting().
|
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 PHPExcel_Reader_SYLK\loadIntoExisting(), and PHPExcel_Chart_DataSeriesValues\refresh().
|
private |
Definition at line 3498 of file Calculation.php.
References _showTypeDetails(), and PHPExcel_Shared_String\convertToNumberIfFraction().
Referenced by _executeNumericBinaryOperation().
|
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(), PHPExcel_Calculation_Functions\_ifCondition(), PHPExcel_Calculation_Statistical\AVERAGEIF(), PHPExcel_Calculation_Statistical\COUNTIF(), PHPExcel_Calculation_Statistical\MAXIF(), PHPExcel_Calculation_Statistical\MINIF(), and PHPExcel_Calculation_MathTrig\SUMIF().
PHPExcel_Calculation::calculate | ( | PHPExcel_Cell | $pCell = NULL | ) |
Calculate cell value (using formula from a cell ID) Retained for backward compatibility.
public
PHPExcel_Cell | $pCell | Cell to calculate |
PHPExcel_Calculation_Exception |
Definition at line 2211 of file Calculation.php.
References calculateCellValue().
PHPExcel_Calculation::calculateCellValue | ( | PHPExcel_Cell | $pCell = NULL , |
$resetLog = TRUE |
|||
) |
Calculate the value of a cell formula.
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(), array, PHPExcel_Calculation_Functions\flattenArray(), PHPExcel_Calculation_Functions\NaN(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by calculate().
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(), and getCalculationCacheEnabled().
PHPExcel_Calculation::clearCalculationCache | ( | ) |
Clear calculation cache.
Definition at line 1917 of file Calculation.php.
References array.
Referenced by flushInstance(), and setCalculationCacheEnabled().
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().
PHPExcel_Calculation::enableCalculationCache | ( | ) |
Enable calculation cache.
Definition at line 1901 of file Calculation.php.
References setCalculationCacheEnabled().
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 array, PHPExcel_Cell\extractAllCellReferencesInRange(), and PHPExcel_Worksheet\extractSheetTitle().
Referenced by _processTokenStack().
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 array, PHPExcel_Cell\coordinateFromString(), PHPExcel_Cell\extractAllCellReferencesInRange(), PHPExcel_Worksheet\extractSheetTitle(), PHPExcel_Calculation_Functions\REF(), PHPExcel_NamedRange\resolveRange(), and PHPExcel_Cell\splitRange().
Referenced by _processTokenStack().
PHPExcel_Calculation::flushInstance | ( | ) |
Flush the calculation cache for any existing instance of this class but only if a PHPExcel_Calculation instance exists.
public
Definition at line 1801 of file Calculation.php.
References clearCalculationCache().
|
static |
Return the Array Return Type (Array or Value of first element in the array)
public
Definition at line 1871 of file Calculation.php.
Referenced by PHPExcel_Writer_PDF_Core\prepareForSave(), PHPExcel_Writer_CSV\save(), and PHPExcel_Writer_HTML\save().
PHPExcel_Calculation::getCalculationCacheEnabled | ( | ) |
Is calculation caching enabled?
public
Definition at line 1882 of file Calculation.php.
References $_calculationCacheEnabled.
Referenced by calculateFormula().
PHPExcel_Calculation::getDebugLog | ( | ) |
Get the debuglog for this claculation engine instance.
public
Definition at line 1812 of file Calculation.php.
|
static |
Return the locale-specific translation of FALSE.
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().
|
static |
Get an instance of this class.
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.
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_Excel5\save(), PHPExcel_Writer_HTML\save(), PHPExcel_Writer_Excel2007\save(), PHPExcel_Settings\setLocale(), PHPExcel_Worksheet\setTitle(), PHPExcel_Worksheet_AutoFilter\showHideRows(), PHPExcel_Calculation_MathTrig\SUMIF(), and CalculationTest\testBinaryComparisonOperation().
PHPExcel_Calculation::getLocale | ( | ) |
Get the currently defined locale code.
Definition at line 1951 of file Calculation.php.
|
static |
Return the locale-specific translation of TRUE.
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().
PHPExcel_Calculation::getValueFromCache | ( | $cellReference, | |
& | $cellValue | ||
) |
Definition at line 2347 of file Calculation.php.
Referenced by _calculateFormulaValue().
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 array.
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 array.
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(), and array.
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().
|
static |
Set the Array Return Type (Array or Value of first element in the array)
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().
PHPExcel_Calculation::setCalculationCacheEnabled | ( | $pValue = TRUE | ) |
Enable/disable calculation cache.
public
boolean | $pValue |
Definition at line 1892 of file Calculation.php.
References clearCalculationCache().
Referenced by disableCalculationCache(), and enableCalculationCache().
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.
|
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().
|
static |
Unset an instance of this class.
public
PHPExcel | $workbook | Injected workbook identifying the instance to unset |
Definition at line 1786 of file Calculation.php.
Referenced by PHPExcel\__destruct().
|
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.
|
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.
|
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().
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 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().