You are here

public function ctools_math_expr::vars in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/math-expr.inc \ctools_math_expr::vars()

Fetch an array of variables used in the expression.

Return value

array Array of name : value pairs, one for each variable defined.

File

includes/math-expr.inc, line 374
=============================================================================.

Class

ctools_math_expr
ctools_math_expr Class.

Code

public function vars() {
  $output = $this->vars;

  // @todo: Is this supposed to remove all constants? we should remove all
  // those in $this->constvars!
  unset($output['pi']);
  unset($output['e']);
  return $output;
}