PHPExcel_Calculation (Multiton)
category | PHPExcel |
---|---|
package | PHPExcel_Calculation |
copyright | Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
__clone()
Cloning should not be allowed in a Singleton!
access | public |
---|
\PHPExcel_Calculation_Exception |
---|
__destruct()
_calculateFormulaValue(string $formula, string $cellID, \PHPExcel_Cell $pCell) : mixed
string
The formula to parse and calculate
string
The ID (e.g. A3) of the cell that we are calculating
\PHPExcel_Calculation_Exception |
---|
mixed
_getMatrixDimensions(mixed $matrix) : array
mixed
&$matrix matrix operand
array
An array comprising the number of rows, and number of columns_localeFunc($function)
_translateFormulaToEnglish($formula)
_translateFormulaToLocale($formula)
_translateSeparator($fromSeparator, $toSeparator, $formula, $inBraces)
_unwrapResult(mixed $value) : mixed
mixed
mixed
_wrapResult(mixed $value) : mixed
mixed
mixed
calculate(\PHPExcel_Cell $pCell) : mixed
calculateCellValue(\PHPExcel_Cell $pCell, Boolean $resetLog) : mixed
access | public |
---|
Boolean
Flag indicating whether the debug log should be reset or not
\PHPExcel_Calculation_Exception |
---|
mixed
calculateFormula(string $formula, string $cellID, \PHPExcel_Cell $pCell) : mixed
string
Formula to parse
string
Address of the cell to calculate
\PHPExcel_Calculation_Exception |
---|
mixed
clearCalculationCache()
clearCalculationCacheForWorksheet(string $worksheetName)
string
disableCalculationCache()
enableCalculationCache()
extractCellRange(string $pRange, \PHPExcel_Worksheet $pSheet, boolean $resetLog) : mixed
string
&$pRange String based range representation
boolean
Flag indicating whether calculation log should be reset or not
\PHPExcel_Calculation_Exception |
---|
mixed
Array of values in range if range contains more than one element. Otherwise, a single value is returned.extractNamedRange(string $pRange, \PHPExcel_Worksheet $pSheet, boolean $resetLog) : mixed
string
&$pRange String based range representation
boolean
Flag indicating whether calculation log should be reset or not
\PHPExcel_Calculation_Exception |
---|
mixed
Array of values in range if range contains more than one element. Otherwise, a single value is returned.flushInstance() : null
access | public |
---|
null
getArrayReturnType() : string
access | public |
---|
string
$returnType Array return typegetCalculationCacheEnabled() : boolean
access | public |
---|
boolean
getFALSE() : string
access | public |
---|
string
locale-specific translation of FALSEgetInstance(\PHPExcel $workbook) : \PHPExcel_Calculation
access | public |
---|
\PHPExcel
Injected workbook for working with a PHPExcel object, or NULL to create a standalone claculation engine
getLocale() : string
string
getTRUE() : string
access | public |
---|
string
locale-specific translation of TRUEgetValueFromCache($worksheetName, $cellID, $cellValue)
isImplemented(string $pFunction) : boolean
string
Function Name
boolean
listAllFunctionNames() : array
array
listFunctionNames() : array
array
listFunctions() : array
array
of PHPExcel_Calculation_FunctionparseFormula(string $formula) : array
renameCalculationCacheForWorksheet(string $fromWorksheetName, string $toWorksheetName)
string
string
saveValueToCache($worksheetName, $cellID, $cellValue)
setArrayReturnType(string $returnType) : boolean
access | public |
---|
string
Array return type
boolean
Success or failuresetCalculationCacheEnabled(boolean $pValue)
access | public |
---|
boolean
setLocale(string $locale) : boolean
string
The locale to use for formula translation
boolean
unsetInstance(\PHPExcel $workbook)
_raiseFormulaError($errorMessage)
__construct(\PHPExcel $workbook)
_checkMatrixOperands(mixed $operand1, mixed $operand2, integer $resize)
mixed
&$operand1 First matrix operand
mixed
&$operand2 Second matrix operand
integer
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
_convertMatrixReferences($formula)
_dataTestReference($operandData)
_executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, $stack, $recursingArrays)
_executeNumericBinaryOperation($cellID, $operand1, $operand2, $operation, $matrixFunction, $stack)
_loadLocales()
_mkMatrix()
_parseFormula($formula, \PHPExcel_Cell $pCell)
_processTokenStack($tokens, $cellID, \PHPExcel_Cell $pCell)
_resizeMatricesExtend(mixed $matrix1, mixed $matrix2, integer $matrix1Rows, integer $matrix1Columns, integer $matrix2Rows, integer $matrix2Columns)
mixed
&$matrix1 First matrix operand
mixed
&$matrix2 Second matrix operand
integer
Row size of first matrix operand
integer
Column size of first matrix operand
integer
Row size of second matrix operand
integer
Column size of second matrix operand
_resizeMatricesShrink(mixed $matrix1, mixed $matrix2, integer $matrix1Rows, integer $matrix1Columns, integer $matrix2Rows, integer $matrix2Columns)
mixed
&$matrix1 First matrix operand
mixed
&$matrix2 Second matrix operand
integer
Row size of first matrix operand
integer
Column size of first matrix operand
integer
Row size of second matrix operand
integer
Column size of second matrix operand
_showTypeDetails(mixed $value) : mixed
mixed
First matrix operand
mixed
_showValue(mixed $value) : mixed
mixed
First matrix operand
mixed
_translateFormula($from, $to, $formula, $fromSeparator, $toSeparator)
_validateBinaryOperand($cellID, $operand, $stack)
$_localeBoolean : string[]
$cyclicFormulaCount : integer
$formulaError : string
access | public |
---|
$suppressFormulaErrors : boolean
access | public |
---|
$_ExcelConstants : string[]
$_PHPExcelFunctions
$_binaryOperators : array
access | private |
---|
$_calculationCache : array
access | private |
---|
$_calculationCacheEnabled : boolean
access | private |
---|
$_comparisonOperators
$_controlFunctions
$_cyclicFormulaCell
$_cyclicFormulaCount : integer
$_cyclicReferenceStack : array
access | private |
---|
$_instance : \PHPExcel_Calculation
access | private |
---|
$_localeArgumentSeparator : string
$_localeFunctions
$_localeLanguage : string
$_operatorAssociativity
$_operatorPrecedence
$_operators : array
access | private |
---|
$_savedPrecision : integer
$_validLocaleLanguages : string[]
$_workbook : \PHPExcel
access | private |
---|
$_workbookSets : \PHPExcel_Calculation[]
access | private |
---|
$debugLog : \PHPExcel_CalcEngine_Logger
access | private |
---|
$functionReplaceFromExcel
$functionReplaceFromLocale
$functionReplaceToExcel
$functionReplaceToLocale
$returnArrayAsType
CALCULATION_REGEXP_CELLREF
CALCULATION_REGEXP_ERROR
CALCULATION_REGEXP_FUNCTION
CALCULATION_REGEXP_NAMEDRANGE
CALCULATION_REGEXP_NUMBER
CALCULATION_REGEXP_OPENBRACE
CALCULATION_REGEXP_STRING
RETURN_ARRAY_AS_ARRAY
RETURN_ARRAY_AS_ERROR
RETURN_ARRAY_AS_VALUE