ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
PHPExcel_Calculation_Functions Class Reference
+ Collaboration diagram for PHPExcel_Calculation_Functions:

Static Public Member Functions

static setCompatibilityMode ($compatibilityMode)
static getCompatibilityMode ()
static setReturnDateType ($returnDateType)
static getReturnDateType ()
static DUMMY ()
static DIV0 ()
static NA ()
static NaN ()
static NAME ()
static REF ()
static NULL ()
static VALUE ()
static isMatrixValue ($idx)
static isValue ($idx)
static isCellValue ($idx)
static _ifCondition ($condition)
static ERROR_TYPE ($value= '')
 ERROR_TYPE.
static IS_BLANK ($value=null)
 IS_BLANK.
static IS_ERR ($value= '')
 IS_ERR.
static IS_ERROR ($value= '')
 IS_ERROR.
static IS_NA ($value= '')
 IS_NA.
static IS_EVEN ($value=0)
 IS_EVEN.
static IS_ODD ($value=null)
 IS_ODD.
static IS_NUMBER ($value=0)
 IS_NUMBER.
static IS_LOGICAL ($value=true)
 IS_LOGICAL.
static IS_TEXT ($value= '')
 IS_TEXT.
static IS_NONTEXT ($value= '')
 IS_NONTEXT.
static VERSION ()
 VERSION.
static N ($value)
 N.
static TYPE ($value)
 TYPE.
static flattenArray ($array)
 Convert a multi-dimensional array to a simple 1-dimensional array.
static flattenArrayIndexed ($array)
 Convert a multi-dimensional array to a simple 1-dimensional array, but retain an element of indexing.
static flattenSingleValue ($value= '')
 Convert an array to a single scalar value by extracting the first element.

Data Fields

const COMPATIBILITY_EXCEL = 'Excel'
 constants
const COMPATIBILITY_GNUMERIC = 'Gnumeric'
const COMPATIBILITY_OPENOFFICE = 'OpenOfficeCalc'
const RETURNDATE_PHP_NUMERIC = 'P'
const RETURNDATE_PHP_OBJECT = 'O'
const RETURNDATE_EXCEL = 'E'

Static Protected Attributes

static $compatibilityMode = self::COMPATIBILITY_EXCEL
static $ReturnDateType = self::RETURNDATE_EXCEL
static $_errorCodes

Detailed Description

Definition at line 59 of file Functions.php.

Member Function Documentation

static PHPExcel_Calculation_Functions::_ifCondition (   $condition)
static

Definition at line 309 of file Functions.php.

References PHPExcel_Calculation\_wrapResult(), and flattenSingleValue().

Referenced by PHPExcel_Calculation_Database\__filter(), PHPExcel_Calculation_Statistical\AVERAGEIF(), PHPExcel_Calculation_Statistical\COUNTIF(), PHPExcel_Calculation_Statistical\MAXIF(), PHPExcel_Calculation_Statistical\MINIF(), and PHPExcel_Calculation_MathTrig\SUMIF().

{
if (!in_array($condition{0},array('>', '<', '='))) {
if (!is_numeric($condition)) { $condition = PHPExcel_Calculation::_wrapResult(strtoupper($condition)); }
return '='.$condition;
} else {
preg_match('/([<>=]+)(.*)/',$condition,$matches);
list(,$operator,$operand) = $matches;
if (!is_numeric($operand)) { $operand = PHPExcel_Calculation::_wrapResult(strtoupper($operand)); }
return $operator.$operand;
}
} // function _ifCondition()

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::DUMMY ( )
static

Definition at line 189 of file Functions.php.

{
return '#Not Yet Implemented';
} // function DUMMY()
static PHPExcel_Calculation_Functions::ERROR_TYPE (   $value = '')
static

ERROR_TYPE.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 329 of file Functions.php.

References flattenSingleValue().

{
$value = self::flattenSingleValue($value);
$i = 1;
foreach(self::$_errorCodes as $errorCode) {
if ($value == $errorCode) {
return $i;
}
++$i;
}
return self::$_errorCodes['na'];
} // function ERROR_TYPE()

+ Here is the call graph for this function:

static PHPExcel_Calculation_Functions::flattenArray (   $array)
static

Convert a multi-dimensional array to a simple 1-dimensional array.

Parameters
array$arrayArray to be flattened
Returns
array Flattened array

Definition at line 588 of file Functions.php.

Referenced by PHPExcel_Calculation\_calculateFormulaValue(), PHPExcel_Calculation_Statistical\_checkTrendArrays(), PHPExcel_Calculation\_processTokenStack(), PHPExcel_Calculation\_showTypeDetails(), PHPExcel_Calculation\_showValue(), PHPExcel_Calculation_Statistical\AVERAGEIF(), PHPExcel_Calculation\calculateCellValue(), PHPExcel_Calculation_LookupRef\CHOOSE(), PHPExcel_Calculation_TextData\CONCATENATE(), PHPExcel_Calculation_Statistical\COUNTA(), PHPExcel_Calculation_Statistical\COUNTBLANK(), PHPExcel_Calculation_Statistical\COUNTIF(), PHPExcel_Calculation_Financial\FVSCHEDULE(), PHPExcel_Calculation_MathTrig\GCD(), PHPExcel_Calculation_Statistical\GEOMEAN(), PHPExcel_Calculation_Statistical\GROWTH(), PHPExcel_Calculation_Statistical\HARMEAN(), PHPExcel_Calculation_Engineering\IMPRODUCT(), PHPExcel_Calculation_Engineering\IMSUM(), PHPExcel_Calculation_Financial\IRR(), PHPExcel_Calculation_Financial\ISPMT(), PHPExcel_Calculation_Statistical\LARGE(), PHPExcel_Calculation_MathTrig\LCM(), PHPExcel_Calculation_Statistical\LINEST(), PHPExcel_Calculation_Statistical\LOGEST(), PHPExcel_Calculation_Logical\LOGICAL_AND(), PHPExcel_Calculation_Logical\LOGICAL_OR(), PHPExcel_Calculation_LookupRef\MATCH(), PHPExcel_Calculation_Statistical\MAX(), PHPExcel_Calculation_Statistical\MAXA(), PHPExcel_Calculation_Statistical\MAXIF(), PHPExcel_Calculation_Statistical\MEDIAN(), PHPExcel_Calculation_Statistical\MIN(), PHPExcel_Calculation_Statistical\MINA(), PHPExcel_Calculation_Statistical\MINIF(), PHPExcel_Calculation_Financial\MIRR(), PHPExcel_Calculation_Statistical\MODE(), PHPExcel_Calculation_MathTrig\MULTINOMIAL(), PHPExcel_Calculation_DateTime\NETWORKDAYS(), PHPExcel_Calculation_Financial\NPV(), PHPExcel_Calculation_Statistical\PERCENTILE(), PHPExcel_Calculation_Statistical\PERCENTRANK(), PHPExcel_Calculation_MathTrig\PRODUCT(), PHPExcel_Calculation_Statistical\QUARTILE(), PHPExcel_Calculation_MathTrig\QUOTIENT(), PHPExcel_Calculation_Statistical\RANK(), PHPExcel_Calculation_MathTrig\SERIESSUM(), PHPExcel_Calculation_Statistical\SMALL(), PHPExcel_Calculation_MathTrig\SUBTOTAL(), PHPExcel_Calculation_MathTrig\SUM(), PHPExcel_Calculation_MathTrig\SUMIF(), PHPExcel_Calculation_MathTrig\SUMPRODUCT(), PHPExcel_Calculation_MathTrig\SUMSQ(), PHPExcel_Calculation_MathTrig\SUMX2MY2(), PHPExcel_Calculation_MathTrig\SUMX2PY2(), PHPExcel_Calculation_MathTrig\SUMXMY2(), PHPExcel_Calculation_Statistical\TREND(), PHPExcel_Calculation_Statistical\TRIMMEAN(), PHPExcel_Calculation_Statistical\VARFunc(), PHPExcel_Calculation_Statistical\VARP(), PHPExcel_Calculation_DateTime\WORKDAY(), PHPExcel_Calculation_Financial\XIRR(), and PHPExcel_Calculation_Financial\XNPV().

{
if (!is_array($array)) {
return (array) $array;
}
$arrayValues = array();
foreach ($array as $value) {
if (is_array($value)) {
foreach ($value as $val) {
if (is_array($val)) {
foreach ($val as $v) {
$arrayValues[] = $v;
}
} else {
$arrayValues[] = $val;
}
}
} else {
$arrayValues[] = $value;
}
}
return $arrayValues;
} // function flattenArray()

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::flattenArrayIndexed (   $array)
static

Convert a multi-dimensional array to a simple 1-dimensional array, but retain an element of indexing.

Parameters
array$arrayArray to be flattened
Returns
array Flattened array

Definition at line 620 of file Functions.php.

Referenced by PHPExcel_Calculation_Statistical\AVEDEV(), PHPExcel_Calculation_Statistical\AVERAGE(), PHPExcel_Calculation_Statistical\AVERAGEA(), PHPExcel_Calculation_Statistical\COUNT(), PHPExcel_Calculation_Statistical\DEVSQ(), PHPExcel_Calculation_Statistical\KURT(), PHPExcel_Calculation_Statistical\SKEW(), PHPExcel_Calculation_Statistical\STDEV(), PHPExcel_Calculation_Statistical\STDEVA(), PHPExcel_Calculation_Statistical\STDEVP(), PHPExcel_Calculation_Statistical\STDEVPA(), TYPE(), PHPExcel_Calculation_Statistical\VARA(), PHPExcel_Calculation_Statistical\VARPA(), and PHPExcel_Calculation_Statistical\ZTEST().

{
if (!is_array($array)) {
return (array) $array;
}
$arrayValues = array();
foreach ($array as $k1 => $value) {
if (is_array($value)) {
foreach ($value as $k2 => $val) {
if (is_array($val)) {
foreach ($val as $k3 => $v) {
$arrayValues[$k1.'.'.$k2.'.'.$k3] = $v;
}
} else {
$arrayValues[$k1.'.'.$k2] = $val;
}
}
} else {
$arrayValues[$k1] = $value;
}
}
return $arrayValues;
} // function flattenArrayIndexed()

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::flattenSingleValue (   $value = '')
static

Convert an array to a single scalar value by extracting the first element.

Parameters
mixed$valueArray or scalar value
Returns
mixed

Definition at line 652 of file Functions.php.

Referenced by PHPExcel_Calculation_Database\__fieldExtract(), _ifCondition(), PHPExcel_Calculation\_processTokenStack(), PHPExcel_Calculation_Financial\ACCRINT(), PHPExcel_Calculation_Financial\ACCRINTM(), PHPExcel_Calculation_Financial\AMORDEGRC(), PHPExcel_Calculation_Financial\AMORLINC(), PHPExcel_Calculation_TextData\ASCIICODE(), PHPExcel_Calculation_MathTrig\ATAN2(), PHPExcel_Calculation_Engineering\BESSELI(), PHPExcel_Calculation_Engineering\BESSELJ(), PHPExcel_Calculation_Engineering\BESSELK(), PHPExcel_Calculation_Engineering\BESSELY(), PHPExcel_Calculation_Statistical\BETADIST(), PHPExcel_Calculation_Statistical\BETAINV(), PHPExcel_Calculation_Statistical\BINOMDIST(), PHPExcel_Calculation_Engineering\BINTODEC(), PHPExcel_Calculation_Engineering\BINTOHEX(), PHPExcel_Calculation_Engineering\BINTOOCT(), PHPExcel_Calculation_MathTrig\CEILING(), PHPExcel_Calculation_LookupRef\CELL_ADDRESS(), PHPExcel_Calculation_TextData\CHARACTER(), PHPExcel_Calculation_Statistical\CHIDIST(), PHPExcel_Calculation_Statistical\CHIINV(), PHPExcel_Calculation_MathTrig\COMBIN(), PHPExcel_Calculation_Engineering\COMPLEX(), PHPExcel_Calculation_Statistical\CONFIDENCE(), PHPExcel_Calculation_Engineering\CONVERTUOM(), PHPExcel_Calculation_Financial\COUPDAYBS(), PHPExcel_Calculation_Financial\COUPDAYS(), PHPExcel_Calculation_Financial\COUPDAYSNC(), PHPExcel_Calculation_Financial\COUPNCD(), PHPExcel_Calculation_Financial\COUPNUM(), PHPExcel_Calculation_Financial\COUPPCD(), PHPExcel_Calculation_Statistical\CRITBINOM(), PHPExcel_Calculation_Financial\CUMIPMT(), PHPExcel_Calculation_Financial\CUMPRINC(), PHPExcel_Calculation_DateTime\DATE(), PHPExcel_Calculation_DateTime\DATEDIF(), PHPExcel_Calculation_DateTime\DATEVALUE(), PHPExcel_Calculation_DateTime\DAYOFMONTH(), PHPExcel_Calculation_DateTime\DAYOFWEEK(), PHPExcel_Calculation_DateTime\DAYS360(), PHPExcel_Calculation_Financial\DB(), PHPExcel_Calculation_Financial\DDB(), PHPExcel_Calculation_Engineering\DECTOBIN(), PHPExcel_Calculation_Engineering\DECTOHEX(), PHPExcel_Calculation_Engineering\DECTOOCT(), PHPExcel_Calculation_Engineering\DELTA(), PHPExcel_Calculation_Financial\DISC(), PHPExcel_Calculation_TextData\DOLLAR(), PHPExcel_Calculation_Financial\DOLLARDE(), PHPExcel_Calculation_Financial\DOLLARFR(), PHPExcel_Calculation_DateTime\EDATE(), PHPExcel_Calculation_Financial\EFFECT(), PHPExcel_Calculation_DateTime\EOMONTH(), PHPExcel_Calculation_Engineering\ERF(), PHPExcel_Calculation_Engineering\ERFC(), ERROR_TYPE(), PHPExcel_Calculation_MathTrig\EVEN(), PHPExcel_Calculation_Statistical\EXPONDIST(), PHPExcel_Calculation_MathTrig\FACT(), PHPExcel_Calculation_MathTrig\FACTDOUBLE(), PHPExcel_Calculation_Statistical\FISHER(), PHPExcel_Calculation_Statistical\FISHERINV(), PHPExcel_Calculation_TextData\FIXEDFORMAT(), PHPExcel_Calculation_MathTrig\FLOOR(), PHPExcel_Calculation_Statistical\FORECAST(), PHPExcel_Calculation_Financial\FV(), PHPExcel_Calculation_Financial\FVSCHEDULE(), PHPExcel_Calculation_Statistical\GAMMADIST(), PHPExcel_Calculation_Statistical\GAMMAINV(), PHPExcel_Calculation_Statistical\GAMMALN(), PHPExcel_Calculation_Engineering\GESTEP(), PHPExcel_Calculation_Statistical\GROWTH(), PHPExcel_Calculation_Engineering\HEXTOBIN(), PHPExcel_Calculation_Engineering\HEXTODEC(), PHPExcel_Calculation_Engineering\HEXTOOCT(), PHPExcel_Calculation_DateTime\HOUROFDAY(), PHPExcel_Calculation_LookupRef\HYPERLINK(), PHPExcel_Calculation_Statistical\HYPGEOMDIST(), PHPExcel_Calculation_Logical\IFERROR(), PHPExcel_Calculation_Engineering\IMABS(), PHPExcel_Calculation_Engineering\IMAGINARY(), PHPExcel_Calculation_Engineering\IMARGUMENT(), PHPExcel_Calculation_Engineering\IMCONJUGATE(), PHPExcel_Calculation_Engineering\IMCOS(), PHPExcel_Calculation_Engineering\IMDIV(), PHPExcel_Calculation_Engineering\IMEXP(), PHPExcel_Calculation_Engineering\IMLN(), PHPExcel_Calculation_Engineering\IMLOG10(), PHPExcel_Calculation_Engineering\IMLOG2(), PHPExcel_Calculation_Engineering\IMPOWER(), PHPExcel_Calculation_Engineering\IMREAL(), PHPExcel_Calculation_Engineering\IMSIN(), PHPExcel_Calculation_Engineering\IMSQRT(), PHPExcel_Calculation_Engineering\IMSUB(), PHPExcel_Calculation_LookupRef\INDIRECT(), PHPExcel_Calculation_MathTrig\INT(), PHPExcel_Calculation_Financial\INTRATE(), PHPExcel_Calculation_Financial\IPMT(), PHPExcel_Calculation_Financial\IRR(), IS_BLANK(), IS_ERR(), IS_ERROR(), IS_EVEN(), IS_LOGICAL(), IS_NA(), IS_NUMBER(), IS_ODD(), IS_TEXT(), PHPExcel_Calculation_TextData\LEFT(), PHPExcel_Calculation_Statistical\LINEST(), PHPExcel_Calculation_MathTrig\LOG_BASE(), PHPExcel_Calculation_Statistical\LOGEST(), PHPExcel_Calculation_Statistical\LOGINV(), PHPExcel_Calculation_Statistical\LOGNORMDIST(), PHPExcel_Calculation_LookupRef\LOOKUP(), PHPExcel_Calculation_TextData\LOWERCASE(), PHPExcel_Calculation_LookupRef\MATCH(), PHPExcel_Calculation_TextData\MID(), PHPExcel_Calculation_DateTime\MINUTEOFHOUR(), PHPExcel_Calculation_Financial\MIRR(), PHPExcel_Calculation_MathTrig\MOD(), PHPExcel_Calculation_DateTime\MONTHOFYEAR(), PHPExcel_Calculation_MathTrig\MROUND(), PHPExcel_Calculation_Statistical\NEGBINOMDIST(), PHPExcel_Calculation_DateTime\NETWORKDAYS(), PHPExcel_Calculation_Financial\NOMINAL(), PHPExcel_Calculation_Statistical\NORMDIST(), PHPExcel_Calculation_Statistical\NORMINV(), PHPExcel_Calculation_Statistical\NORMSDIST(), PHPExcel_Calculation_Logical\NOT(), PHPExcel_Calculation_Financial\NPER(), PHPExcel_Calculation_Engineering\OCTTOBIN(), PHPExcel_Calculation_Engineering\OCTTODEC(), PHPExcel_Calculation_Engineering\OCTTOHEX(), PHPExcel_Calculation_MathTrig\ODD(), PHPExcel_Calculation_LookupRef\OFFSET(), PHPExcel_Calculation_Statistical\PERCENTRANK(), PHPExcel_Calculation_Statistical\PERMUT(), PHPExcel_Calculation_Financial\PMT(), PHPExcel_Calculation_Statistical\POISSON(), PHPExcel_Calculation_MathTrig\POWER(), PHPExcel_Calculation_Financial\PPMT(), PHPExcel_Calculation_Financial\PRICE(), PHPExcel_Calculation_Financial\PRICEDISC(), PHPExcel_Calculation_Financial\PRICEMAT(), PHPExcel_Calculation_TextData\PROPERCASE(), PHPExcel_Calculation_Financial\PV(), PHPExcel_Calculation_MathTrig\RAND(), PHPExcel_Calculation_Statistical\RANK(), PHPExcel_Calculation_Financial\RATE(), PHPExcel_Calculation_Financial\RECEIVED(), PHPExcel_Calculation_TextData\REPLACE(), PHPExcel_Calculation_TextData\RETURNSTRING(), PHPExcel_Calculation_TextData\RIGHT(), PHPExcel_Calculation_MathTrig\ROMAN(), PHPExcel_Calculation_MathTrig\ROUNDDOWN(), PHPExcel_Calculation_MathTrig\ROUNDUP(), PHPExcel_Calculation_TextData\SEARCHINSENSITIVE(), PHPExcel_Calculation_TextData\SEARCHSENSITIVE(), PHPExcel_Calculation_DateTime\SECONDOFMINUTE(), PHPExcel_Calculation_MathTrig\SIGN(), PHPExcel_Calculation_Financial\SLN(), PHPExcel_Calculation_MathTrig\SQRTPI(), PHPExcel_Calculation_Statistical\STANDARDIZE(), PHPExcel_Calculation_Logical\STATEMENT_IF(), PHPExcel_Calculation_TextData\STRINGLENGTH(), PHPExcel_Calculation_TextData\SUBSTITUTE(), PHPExcel_Calculation_Financial\SYD(), PHPExcel_Calculation_Financial\TBILLEQ(), PHPExcel_Calculation_Financial\TBILLPRICE(), PHPExcel_Calculation_Financial\TBILLYIELD(), PHPExcel_Calculation_Statistical\TDIST(), PHPExcel_Calculation_TextData\TEXTFORMAT(), PHPExcel_Calculation_DateTime\TIME(), PHPExcel_Calculation_DateTime\TIMEVALUE(), PHPExcel_Calculation_Statistical\TINV(), PHPExcel_Calculation_Statistical\TREND(), PHPExcel_Calculation_TextData\TRIMNONPRINTABLE(), PHPExcel_Calculation_TextData\TRIMSPACES(), PHPExcel_Calculation_MathTrig\TRUNC(), TYPE(), PHPExcel_Calculation_TextData\UPPERCASE(), PHPExcel_Calculation_LookupRef\VLOOKUP(), PHPExcel_Calculation_DateTime\WEEKOFYEAR(), PHPExcel_Calculation_Statistical\WEIBULL(), PHPExcel_Calculation_DateTime\WORKDAY(), PHPExcel_Calculation_Financial\XIRR(), PHPExcel_Calculation_Financial\XNPV(), PHPExcel_Calculation_DateTime\YEAR(), PHPExcel_Calculation_DateTime\YEARFRAC(), PHPExcel_Calculation_Financial\YIELDDISC(), PHPExcel_Calculation_Financial\YIELDMAT(), and PHPExcel_Calculation_Statistical\ZTEST().

{
while (is_array($value)) {
$value = array_pop($value);
}
return $value;
} // function flattenSingleValue()

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::getCompatibilityMode ( )
static

Definition at line 138 of file Functions.php.

References $compatibilityMode.

Referenced by PHPExcel_Calculation\_executeNumericBinaryOperation(), PHPExcel_Calculation_DateTime\_getDateValue(), PHPExcel_Calculation_Financial\_validFrequency(), PHPExcel_Calculation_TextData\ASCIICODE(), PHPExcel_Calculation_Statistical\AVEDEV(), PHPExcel_Calculation_Statistical\AVERAGE(), PHPExcel_Calculation_Engineering\BINTODEC(), PHPExcel_Calculation_Engineering\BINTOHEX(), PHPExcel_Calculation_Engineering\BINTOOCT(), PHPExcel_Calculation_MathTrig\CEILING(), PHPExcel_Calculation_Statistical\CHIDIST(), PHPExcel_Calculation_TextData\CONCATENATE(), PHPExcel_Calculation_Statistical\COUNT(), PHPExcel_Calculation_DateTime\DAYOFWEEK(), PHPExcel_Calculation_Financial\DB(), PHPExcel_Calculation_Financial\DDB(), PHPExcel_Calculation_Engineering\DECTOBIN(), PHPExcel_Calculation_Engineering\DECTOHEX(), PHPExcel_Calculation_Engineering\DECTOOCT(), PHPExcel_Calculation_Statistical\DEVSQ(), PHPExcel_Calculation_MathTrig\FACT(), PHPExcel_Calculation_MathTrig\FLOOR(), PHPExcel_Calculation_DateTime\HOUROFDAY(), PHPExcel_Calculation_DateTime\MINUTEOFHOUR(), PHPExcel_Calculation_Statistical\NEGBINOMDIST(), PHPExcel_Calculation_DateTime\SECONDOFMINUTE(), PHPExcel_Calculation_Statistical\STDEV(), PHPExcel_Calculation_Statistical\STDEVP(), PHPExcel_Calculation_Financial\TBILLEQ(), PHPExcel_Calculation_Financial\TBILLPRICE(), PHPExcel_Calculation_Financial\TBILLYIELD(), and PHPExcel_Calculation_DateTime\TIMEVALUE().

{
} // function getCompatibilityMode()

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::IS_BLANK (   $value = null)
static

IS_BLANK.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 349 of file Functions.php.

References flattenSingleValue().

{
if (!is_null($value)) {
$value = self::flattenSingleValue($value);
}
return is_null($value);
} // function IS_BLANK()

+ Here is the call graph for this function:

static PHPExcel_Calculation_Functions::IS_ERR (   $value = '')
static

IS_ERR.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 364 of file Functions.php.

References flattenSingleValue(), IS_ERROR(), and IS_NA().

{
$value = self::flattenSingleValue($value);
return self::IS_ERROR($value) && (!self::IS_NA($value));
} // function IS_ERR()

+ Here is the call graph for this function:

static PHPExcel_Calculation_Functions::IS_ERROR (   $value = '')
static

IS_ERROR.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 377 of file Functions.php.

References flattenSingleValue().

Referenced by PHPExcel_Calculation_Logical\IFERROR(), and IS_ERR().

{
$value = self::flattenSingleValue($value);
return in_array($value, array_values(self::$_errorCodes));
} // function IS_ERROR()

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::IS_EVEN (   $value = 0)
static

IS_EVEN.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 403 of file Functions.php.

References flattenSingleValue().

{
$value = self::flattenSingleValue($value);
if ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value)))) {
return self::$_errorCodes['value'];
}
return ($value % 2 == 0);
} // function IS_EVEN()

+ Here is the call graph for this function:

static PHPExcel_Calculation_Functions::IS_LOGICAL (   $value = true)
static

IS_LOGICAL.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 451 of file Functions.php.

References flattenSingleValue().

{
$value = self::flattenSingleValue($value);
return is_bool($value);
} // function IS_LOGICAL()

+ Here is the call graph for this function:

static PHPExcel_Calculation_Functions::IS_NA (   $value = '')
static

IS_NA.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 390 of file Functions.php.

References flattenSingleValue().

Referenced by IS_ERR().

{
$value = self::flattenSingleValue($value);
return ($value === self::$_errorCodes['na']);
} // function IS_NA()

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::IS_NONTEXT (   $value = '')
static

IS_NONTEXT.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 477 of file Functions.php.

References IS_TEXT().

{
return !self::IS_TEXT($value);
} // function IS_NONTEXT()

+ Here is the call graph for this function:

static PHPExcel_Calculation_Functions::IS_NUMBER (   $value = 0)
static

IS_NUMBER.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 435 of file Functions.php.

References flattenSingleValue().

{
$value = self::flattenSingleValue($value);
if (is_string($value)) {
return False;
}
return is_numeric($value);
} // function IS_NUMBER()

+ Here is the call graph for this function:

static PHPExcel_Calculation_Functions::IS_ODD (   $value = null)
static

IS_ODD.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 419 of file Functions.php.

References flattenSingleValue().

{
$value = self::flattenSingleValue($value);
if ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value)))) {
return self::$_errorCodes['value'];
}
return (abs($value) % 2 == 1);
} // function IS_ODD()

+ Here is the call graph for this function:

static PHPExcel_Calculation_Functions::IS_TEXT (   $value = '')
static

IS_TEXT.

Parameters
mixed$valueValue to check
Returns
boolean

Definition at line 464 of file Functions.php.

References flattenSingleValue().

Referenced by IS_NONTEXT().

{
$value = self::flattenSingleValue($value);
return is_string($value);
} // function IS_TEXT()

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::isCellValue (   $idx)
static
static PHPExcel_Calculation_Functions::isMatrixValue (   $idx)
static
static PHPExcel_Calculation_Functions::isValue (   $idx)
static

Definition at line 299 of file Functions.php.

Referenced by PHPExcel_Calculation_Statistical\VARA(), and PHPExcel_Calculation_Statistical\VARPA().

{
return (substr_count($idx,'.') == 0);
}

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::N (   $value)
static

N.

Returns a value converted to a number

Parameters
valueThe value you want converted
Returns
number N converts values listed in the following table If value is or refers to N returns A number That number A date The serial number of that date TRUE 1 FALSE 0 An error value The error value Anything else 0

Definition at line 507 of file Functions.php.

{
while (is_array($value)) {
$value = array_shift($value);
}
switch (gettype($value)) {
case 'double' :
case 'float' :
case 'integer' :
return $value;
break;
case 'boolean' :
return (integer) $value;
break;
case 'string' :
// Errors
if ((strlen($value) > 0) && ($value{0} == '#')) {
return $value;
}
break;
}
return 0;
} // function N()
static PHPExcel_Calculation_Functions::NAME ( )
static

Definition at line 247 of file Functions.php.

{
return self::$_errorCodes['name'];
} // function NAME()
static PHPExcel_Calculation_Functions::NaN ( )
static

Definition at line 233 of file Functions.php.

Referenced by PHPExcel_Calculation_Financial\_daysPerYear(), PHPExcel_Calculation_Engineering\_nbrConversionFormat(), PHPExcel_Calculation\_unwrapResult(), PHPExcel_Calculation\_wrapResult(), PHPExcel_Calculation_Financial\ACCRINT(), PHPExcel_Calculation_Financial\ACCRINTM(), PHPExcel_Shared_JAMA_Matrix\arrayRightDivide(), PHPExcel_Shared_JAMA_Matrix\arrayTimesEquals(), PHPExcel_Calculation_Statistical\AVEDEV(), PHPExcel_Calculation_Engineering\BESSELI(), PHPExcel_Calculation_Engineering\BESSELJ(), PHPExcel_Calculation_Engineering\BESSELK(), PHPExcel_Calculation_Engineering\BESSELY(), PHPExcel_Calculation_Statistical\BETADIST(), PHPExcel_Calculation_Statistical\BETAINV(), PHPExcel_Calculation_Statistical\BINOMDIST(), PHPExcel_Calculation_Engineering\BINTODEC(), PHPExcel_Calculation_Engineering\BINTOHEX(), PHPExcel_Calculation_Engineering\BINTOOCT(), PHPExcel_Calculation\calculateCellValue(), PHPExcel_Calculation_MathTrig\CEILING(), PHPExcel_Calculation_Statistical\CHIDIST(), PHPExcel_Calculation_MathTrig\COMBIN(), PHPExcel_Calculation_Statistical\CONFIDENCE(), PHPExcel_Calculation_Financial\COUPDAYBS(), PHPExcel_Calculation_Financial\COUPDAYS(), PHPExcel_Calculation_Financial\COUPDAYSNC(), PHPExcel_Calculation_Financial\COUPNCD(), PHPExcel_Calculation_Financial\COUPNUM(), PHPExcel_Calculation_Financial\COUPPCD(), PHPExcel_Calculation_Statistical\CRITBINOM(), PHPExcel_Calculation_Financial\CUMIPMT(), PHPExcel_Calculation_Financial\CUMPRINC(), PHPExcel_Calculation_DateTime\DATE(), PHPExcel_Calculation_DateTime\DATEDIF(), PHPExcel_Calculation_DateTime\DAYOFMONTH(), PHPExcel_Calculation_DateTime\DAYOFWEEK(), PHPExcel_Calculation_Financial\DB(), PHPExcel_Calculation_Financial\DDB(), PHPExcel_Calculation_Engineering\DECTOBIN(), PHPExcel_Calculation_Statistical\DEVSQ(), PHPExcel_Calculation_Database\DGET(), PHPExcel_Calculation_Financial\DISC(), PHPExcel_Calculation_TextData\DOLLAR(), PHPExcel_Calculation_Financial\DOLLARDE(), PHPExcel_Calculation_Financial\DOLLARFR(), PHPExcel_Calculation_Financial\EFFECT(), PHPExcel_Calculation_Engineering\ERF(), PHPExcel_Calculation_Engineering\ERFC(), PHPExcel_Calculation_Statistical\EXPONDIST(), PHPExcel_Calculation_MathTrig\FACT(), PHPExcel_Calculation_MathTrig\FACTDOUBLE(), PHPExcel_Calculation_Statistical\FISHER(), PHPExcel_Calculation_MathTrig\FLOOR(), PHPExcel_Calculation_Financial\FV(), PHPExcel_Calculation_Statistical\GAMMADIST(), PHPExcel_Calculation_Statistical\GAMMAINV(), PHPExcel_Calculation_Statistical\GAMMALN(), PHPExcel_Calculation_Statistical\GEOMEAN(), PHPExcel_Calculation_Statistical\HARMEAN(), PHPExcel_Calculation_Engineering\HEXTOBIN(), PHPExcel_Calculation_Engineering\HEXTODEC(), PHPExcel_Calculation_Engineering\HEXTOOCT(), PHPExcel_Calculation_DateTime\HOUROFDAY(), PHPExcel_Calculation_Statistical\HYPGEOMDIST(), PHPExcel_Calculation_Engineering\IMDIV(), PHPExcel_Calculation_Engineering\IMLN(), PHPExcel_Calculation_Engineering\IMLOG10(), PHPExcel_Calculation_Engineering\IMLOG2(), PHPExcel_Calculation_Engineering\IMPRODUCT(), PHPExcel_Calculation_Engineering\IMSUB(), PHPExcel_Calculation_Financial\INTRATE(), PHPExcel_Calculation_Financial\IPMT(), PHPExcel_Calculation_Statistical\LARGE(), PHPExcel_Calculation_MathTrig\LCM(), PHPExcel_Calculation_Statistical\LOGEST(), PHPExcel_Calculation_Statistical\LOGINV(), PHPExcel_Calculation_Statistical\LOGNORMDIST(), PHPExcel_Calculation_Statistical\MEDIAN(), PHPExcel_Shared_JAMA_Matrix\minusEquals(), PHPExcel_Calculation_DateTime\MINUTEOFHOUR(), PHPExcel_Calculation_DateTime\MONTHOFYEAR(), PHPExcel_Calculation_MathTrig\MROUND(), PHPExcel_Calculation_MathTrig\MULTINOMIAL(), PHPExcel_Calculation_Statistical\NEGBINOMDIST(), PHPExcel_Calculation_Financial\NOMINAL(), PHPExcel_Calculation_Statistical\NORMDIST(), PHPExcel_Calculation_Statistical\NORMINV(), PHPExcel_Calculation_Financial\NPER(), PHPExcel_Calculation_Engineering\OCTTOBIN(), PHPExcel_Calculation_Engineering\OCTTODEC(), PHPExcel_Calculation_Engineering\OCTTOHEX(), PHPExcel_Calculation_Statistical\PERCENTILE(), PHPExcel_Calculation_Statistical\PERCENTRANK(), PHPExcel_Calculation_Statistical\PERMUT(), PHPExcel_Shared_JAMA_Matrix\plusEquals(), PHPExcel_Calculation_Financial\PMT(), PHPExcel_Calculation_Statistical\POISSON(), PHPExcel_Shared_JAMA_Matrix\power(), PHPExcel_Calculation_Financial\PPMT(), PHPExcel_Calculation_Financial\PRICE(), PHPExcel_Calculation_Financial\PRICEDISC(), PHPExcel_Calculation_Financial\PRICEMAT(), PHPExcel_Calculation_Financial\PV(), PHPExcel_Calculation_Statistical\QUARTILE(), PHPExcel_Calculation_Financial\RECEIVED(), PHPExcel_Calculation_DateTime\SECONDOFMINUTE(), PHPExcel_Calculation_Financial\SLN(), PHPExcel_Calculation_Statistical\SMALL(), PHPExcel_Calculation_MathTrig\SQRTPI(), PHPExcel_Calculation_Statistical\STANDARDIZE(), PHPExcel_Calculation_Financial\SYD(), PHPExcel_Calculation_Financial\TBILLPRICE(), PHPExcel_Calculation_Financial\TBILLYIELD(), PHPExcel_Calculation_Statistical\TDIST(), PHPExcel_Calculation_DateTime\TIME(), PHPExcel_Calculation_Statistical\TRIMMEAN(), PHPExcel_Calculation_DateTime\WEEKOFYEAR(), PHPExcel_Calculation_Statistical\WEIBULL(), PHPExcel_Calculation_Financial\XIRR(), PHPExcel_Calculation_Financial\XNPV(), PHPExcel_Calculation_DateTime\YEAR(), PHPExcel_Calculation_Financial\YIELDDISC(), and PHPExcel_Calculation_Financial\YIELDMAT().

{
return self::$_errorCodes['num'];
} // function NaN()

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::NULL ( )
static

Definition at line 275 of file Functions.php.

Referenced by PHPExcel_Calculation_Statistical\_inverse_ncdf().

{
return self::$_errorCodes['null'];
} // function NULL()

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::REF ( )
static
static PHPExcel_Calculation_Functions::setCompatibilityMode (   $compatibilityMode)
static

Definition at line 116 of file Functions.php.

References $compatibilityMode.

{
if (($compatibilityMode == self::COMPATIBILITY_EXCEL) ||
($compatibilityMode == self::COMPATIBILITY_GNUMERIC) ||
($compatibilityMode == self::COMPATIBILITY_OPENOFFICE)) {
self::$compatibilityMode = $compatibilityMode;
return True;
}
return False;
} // function setCompatibilityMode()
static PHPExcel_Calculation_Functions::setReturnDateType (   $returnDateType)
static

Definition at line 155 of file Functions.php.

Referenced by PHPExcel_Calculation_DateTime\_getDateValue(), PHPExcel_Calculation_DateTime\_getTimeValue(), PHPExcel_Writer_Excel5\save(), and PHPExcel_Writer_Excel2007\save().

{
if (($returnDateType == self::RETURNDATE_PHP_NUMERIC) ||
($returnDateType == self::RETURNDATE_PHP_OBJECT) ||
($returnDateType == self::RETURNDATE_EXCEL)) {
self::$ReturnDateType = $returnDateType;
return True;
}
return False;
} // function setReturnDateType()

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::TYPE (   $value)
static

TYPE.

Returns a number that identifies the type of a value

Parameters
valueThe value you want tested
Returns
number N converts values listed in the following table If value is or refers to N returns A number 1 Text 2 Logical Value 4 An error value 16 Array or Matrix 64

Definition at line 546 of file Functions.php.

References flattenArrayIndexed(), and flattenSingleValue().

{
$value = self::flattenArrayIndexed($value);
if (is_array($value) && (count($value) > 1)) {
$a = array_keys($value);
$a = array_pop($a);
// Range of cells is an error
if (self::isCellValue($a)) {
return 16;
// Test for Matrix
} elseif (self::isMatrixValue($a)) {
return 64;
}
} elseif(count($value) == 0) {
// Empty Cell
return 1;
}
$value = self::flattenSingleValue($value);
if ((is_float($value)) || (is_int($value))) {
return 1;
} elseif(is_bool($value)) {
return 4;
} elseif(is_array($value)) {
return 64;
break;
} elseif(is_string($value)) {
// Errors
if ((strlen($value) > 0) && ($value{0} == '#')) {
return 16;
}
return 2;
}
return 0;
} // function TYPE()

+ Here is the call graph for this function:

static PHPExcel_Calculation_Functions::VALUE ( )
static

Definition at line 289 of file Functions.php.

Referenced by PHPExcel_Calculation\_executeNumericBinaryOperation(), PHPExcel_Calculation_DateTime\_getDateValue(), PHPExcel_Calculation_TextData\_uniord(), PHPExcel_Calculation_Financial\ACCRINT(), PHPExcel_Calculation_Financial\ACCRINTM(), PHPExcel_Calculation_Engineering\BESSELI(), PHPExcel_Calculation_Engineering\BESSELJ(), PHPExcel_Calculation_Engineering\BESSELK(), PHPExcel_Calculation_Engineering\BESSELY(), PHPExcel_Calculation_Statistical\BETADIST(), PHPExcel_Calculation_Statistical\BETAINV(), PHPExcel_Calculation_Statistical\BINOMDIST(), PHPExcel_Calculation_Engineering\BINTODEC(), PHPExcel_Calculation_Engineering\BINTOHEX(), PHPExcel_Calculation_Engineering\BINTOOCT(), PHPExcel_Calculation\calculateCellValue(), PHPExcel_Calculation_MathTrig\CEILING(), PHPExcel_Calculation_LookupRef\CELL_ADDRESS(), PHPExcel_Calculation_TextData\CHARACTER(), PHPExcel_Calculation_Statistical\CHIDIST(), PHPExcel_Calculation_Statistical\CHIINV(), PHPExcel_Calculation_LookupRef\CHOOSE(), PHPExcel_Calculation_LookupRef\COLUMNS(), PHPExcel_Calculation_MathTrig\COMBIN(), PHPExcel_Calculation_Engineering\COMPLEX(), PHPExcel_Calculation_Statistical\CONFIDENCE(), PHPExcel_Calculation_Engineering\CONVERTUOM(), PHPExcel_Calculation_Statistical\CORREL(), PHPExcel_Calculation_Financial\COUPDAYBS(), PHPExcel_Calculation_Financial\COUPDAYS(), PHPExcel_Calculation_Financial\COUPDAYSNC(), PHPExcel_Calculation_Financial\COUPNCD(), PHPExcel_Calculation_Financial\COUPNUM(), PHPExcel_Calculation_Financial\COUPPCD(), PHPExcel_Calculation_Statistical\COVAR(), PHPExcel_Calculation_Statistical\CRITBINOM(), PHPExcel_Calculation_Financial\CUMIPMT(), PHPExcel_Calculation_Financial\CUMPRINC(), PHPExcel_Calculation_DateTime\DATEDIF(), PHPExcel_Calculation_DateTime\DATEVALUE(), PHPExcel_Calculation_DateTime\DAYOFMONTH(), PHPExcel_Calculation_DateTime\DAYOFWEEK(), PHPExcel_Calculation_DateTime\DAYS360(), PHPExcel_Calculation_Financial\DB(), PHPExcel_Calculation_Financial\DDB(), PHPExcel_Calculation_Engineering\DECTOBIN(), PHPExcel_Calculation_Engineering\DECTOHEX(), PHPExcel_Calculation_Engineering\DECTOOCT(), PHPExcel_Calculation_Financial\DISC(), PHPExcel_Calculation_DateTime\EDATE(), PHPExcel_Calculation_DateTime\EOMONTH(), PHPExcel_Calculation_Engineering\ERF(), PHPExcel_Calculation_Engineering\ERFC(), PHPExcel_Calculation_MathTrig\EVEN(), PHPExcel_Calculation_Statistical\EXPONDIST(), PHPExcel_Calculation_MathTrig\FACT(), PHPExcel_Calculation_MathTrig\FACTDOUBLE(), PHPExcel_Calculation_Statistical\FISHER(), PHPExcel_Calculation_Statistical\FISHERINV(), PHPExcel_Calculation_MathTrig\FLOOR(), PHPExcel_Calculation_Statistical\FORECAST(), PHPExcel_Calculation_Statistical\GAMMADIST(), PHPExcel_Calculation_Statistical\GAMMAINV(), PHPExcel_Calculation_Statistical\GAMMALN(), PHPExcel_Calculation_Engineering\HEXTOBIN(), PHPExcel_Calculation_Engineering\HEXTODEC(), PHPExcel_Calculation_Engineering\HEXTOOCT(), PHPExcel_Calculation_DateTime\HOUROFDAY(), PHPExcel_Calculation_Statistical\HYPGEOMDIST(), PHPExcel_Calculation_Engineering\IMPOWER(), PHPExcel_Calculation_Engineering\IMSUM(), PHPExcel_Calculation_LookupRef\INDEX(), PHPExcel_Calculation_MathTrig\INT(), PHPExcel_Calculation_Statistical\INTERCEPT(), PHPExcel_Calculation_Financial\INTRATE(), PHPExcel_Calculation_Financial\IPMT(), PHPExcel_Calculation_Financial\IRR(), PHPExcel_Calculation_Statistical\LARGE(), PHPExcel_Calculation_MathTrig\LCM(), PHPExcel_Calculation_TextData\LEFT(), PHPExcel_Calculation_Statistical\LINEST(), PHPExcel_Calculation_Statistical\LOGEST(), PHPExcel_Calculation_Logical\LOGICAL_AND(), PHPExcel_Calculation_Logical\LOGICAL_OR(), PHPExcel_Calculation_Statistical\LOGINV(), PHPExcel_Calculation_Statistical\LOGNORMDIST(), PHPExcel_Calculation_MathTrig\MDETERM(), PHPExcel_Calculation_TextData\MID(), PHPExcel_Calculation_DateTime\MINUTEOFHOUR(), PHPExcel_Calculation_MathTrig\MINVERSE(), PHPExcel_Calculation_Financial\MIRR(), PHPExcel_Calculation_MathTrig\MMULT(), PHPExcel_Calculation_DateTime\MONTHOFYEAR(), PHPExcel_Calculation_MathTrig\MROUND(), PHPExcel_Calculation_MathTrig\MULTINOMIAL(), PHPExcel_Calculation_Statistical\NEGBINOMDIST(), PHPExcel_Calculation_DateTime\NETWORKDAYS(), PHPExcel_Calculation_Statistical\NORMDIST(), PHPExcel_Calculation_Statistical\NORMINV(), PHPExcel_Calculation_Logical\NOT(), PHPExcel_Calculation_Engineering\OCTTOBIN(), PHPExcel_Calculation_Engineering\OCTTODEC(), PHPExcel_Calculation_Engineering\OCTTOHEX(), PHPExcel_Calculation_MathTrig\ODD(), PHPExcel_Calculation_Statistical\PERCENTILE(), PHPExcel_Calculation_Statistical\PERMUT(), PHPExcel_Calculation_Statistical\POISSON(), PHPExcel_Calculation_Financial\PPMT(), PHPExcel_Calculation_Financial\PRICE(), PHPExcel_Calculation_Financial\PRICEDISC(), PHPExcel_Calculation_Financial\PRICEMAT(), PHPExcel_Calculation_Statistical\QUARTILE(), PHPExcel_Calculation_Financial\RECEIVED(), PHPExcel_Calculation_TextData\RIGHT(), PHPExcel_Calculation_MathTrig\ROMAN(), PHPExcel_Calculation_MathTrig\ROUNDDOWN(), PHPExcel_Calculation_MathTrig\ROUNDUP(), PHPExcel_Calculation_LookupRef\ROWS(), PHPExcel_Calculation_Statistical\RSQ(), PHPExcel_Calculation_TextData\SEARCHINSENSITIVE(), PHPExcel_Calculation_TextData\SEARCHSENSITIVE(), PHPExcel_Calculation_DateTime\SECONDOFMINUTE(), PHPExcel_Calculation_MathTrig\SERIESSUM(), PHPExcel_Calculation_MathTrig\SIGN(), PHPExcel_Calculation_Financial\SLN(), PHPExcel_Calculation_Statistical\SLOPE(), PHPExcel_Calculation_Statistical\SMALL(), PHPExcel_Calculation_MathTrig\SQRTPI(), PHPExcel_Calculation_Statistical\STANDARDIZE(), PHPExcel_Calculation_Statistical\STEYX(), PHPExcel_Shared_Date\stringToExcel(), PHPExcel_Calculation_MathTrig\SUBTOTAL(), PHPExcel_Calculation_MathTrig\SUMPRODUCT(), PHPExcel_Calculation_Financial\SYD(), PHPExcel_Calculation_Financial\TBILLEQ(), PHPExcel_Calculation_Financial\TBILLPRICE(), PHPExcel_Calculation_Financial\TBILLYIELD(), PHPExcel_Calculation_Statistical\TDIST(), PHPExcel_Calculation_DateTime\TIME(), PHPExcel_Calculation_DateTime\TIMEVALUE(), PHPExcel_Calculation_Statistical\TINV(), PHPExcel_Calculation_Statistical\TRIMMEAN(), PHPExcel_Calculation_MathTrig\TRUNC(), PHPExcel_Calculation_Statistical\VARA(), PHPExcel_Calculation_Statistical\VARPA(), PHPExcel_Calculation_LookupRef\VLOOKUP(), PHPExcel_Calculation_DateTime\WEEKOFYEAR(), PHPExcel_Calculation_Statistical\WEIBULL(), PHPExcel_Calculation_DateTime\WORKDAY(), PHPExcel_Calculation_Financial\XIRR(), PHPExcel_Calculation_Financial\XNPV(), PHPExcel_Calculation_DateTime\YEAR(), PHPExcel_Calculation_DateTime\YEARFRAC(), PHPExcel_Calculation_Financial\YIELDDISC(), and PHPExcel_Calculation_Financial\YIELDMAT().

{
return self::$_errorCodes['value'];
} // function VALUE()

+ Here is the caller graph for this function:

static PHPExcel_Calculation_Functions::VERSION ( )
static

VERSION.

Returns
string Version information

Definition at line 487 of file Functions.php.

{
return 'PHPExcel 1.7.6, 2011-02-27';
} // function VERSION()

Field Documentation

PHPExcel_Calculation_Functions::$_errorCodes
staticprotected
Initial value:
array( 'null' => '#NULL!',
'divisionbyzero' => '#DIV/0!',
'value' => '#VALUE!',
'reference' => '#REF!',
'name' => '#NAME?',
'num' => '#NUM!',
'na' => '#N/A',
'gettingdata' => '#GETTING_DATA'
)

Definition at line 93 of file Functions.php.

PHPExcel_Calculation_Functions::$compatibilityMode = self::COMPATIBILITY_EXCEL
staticprotected

Definition at line 77 of file Functions.php.

Referenced by getCompatibilityMode(), and setCompatibilityMode().

PHPExcel_Calculation_Functions::$ReturnDateType = self::RETURNDATE_EXCEL
staticprotected

Definition at line 85 of file Functions.php.

Referenced by getReturnDateType().

const PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL = 'Excel'

constants

Definition at line 62 of file Functions.php.

Referenced by PHPExcel_Calculation_DateTime\DAYOFWEEK().


The documentation for this class was generated from the following file: