public function ctools_math_expr::funcs in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 includes/math-expr.inc \ctools_math_expr::funcs()
Fetch all user defined functions in the expression.
Return value
array Array of name : string pairs, one for each function defined. The string will be of the form fname(arg1,arg2). The function body is not returned.
File
- includes/
math-expr.inc, line 392 - =============================================================================.
Class
- ctools_math_expr
- ctools_math_expr Class.
Code
public function funcs() {
$output = array();
foreach ($this->userfuncs as $fnn => $dat) {
$output[] = $fnn . '(' . implode(',', $dat['args']) . ')';
}
return $output;
}