Added listAllFunctionNames() method to the Calculation Engine, and modified the listFunctionNames() method to return only implemented functions
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@69154 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
46e1c4eaff
commit
a07dd58fc7
|
@ -3737,13 +3737,32 @@ class PHPExcel_Calculation {
|
|||
} // function listFunctions()
|
||||
|
||||
|
||||
/**
|
||||
* Get a list of all Excel function names
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function listAllFunctionNames() {
|
||||
return array_keys(self::$_PHPExcelFunctions);
|
||||
} // function listAllFunctionNames()
|
||||
|
||||
/**
|
||||
* Get a list of implemented Excel function names
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function listFunctionNames() {
|
||||
return array_keys(self::$_PHPExcelFunctions);
|
||||
// Return value
|
||||
$returnValue = array();
|
||||
// Loop functions
|
||||
foreach(self::$_PHPExcelFunctions as $functionName => $function) {
|
||||
if ($function['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY') {
|
||||
$returnValue[] = $functionName;
|
||||
}
|
||||
}
|
||||
|
||||
// Return
|
||||
return $returnValue;
|
||||
} // function listFunctionNames()
|
||||
|
||||
} // class PHPExcel_Calculation
|
||||
|
|
Loading…
Reference in New Issue