function 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;
}