function ctools_math_expr::set_suppress_errors

Change the suppress errors flag.

When errors are not suppressed, trigger_error is used to cause a PHP error when an evaluation error occurs, as a result of calling trigger(). With errors suppressed this doesn't happen.

Parameters

bool $enable: If FALSE, enable triggering of php errors when expression errors occurs. otherwise, suppress triggering the errors.

Return value

bool The new (current) state of the flag.

See also

ctools_math_expr::trigger()

File

includes/math-expr.inc, line 279

Class

ctools_math_expr
ctools_math_expr Class.

Code

public function set_suppress_errors($enable) {
    return $this->suppress_errors = (bool) $enable;
}