protected function ctools_math_expr::trigger in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 includes/math-expr.inc \ctools_math_expr::trigger()
Trigger an error, but nicely, if need be.
Parameters
string $msg: Message to add to trigger error.
Return value
bool Can trigger error, then returns FALSE.
3 calls to ctools_math_expr::trigger()
- ctools_math_expr::evaluate in includes/
math-expr.inc - Evaluate the expression.
- ctools_math_expr::nfx in includes/
math-expr.inc - Convert infix to postfix notation.
- ctools_math_expr::pfx in includes/
math-expr.inc - Evaluate a prefix-operator stack expression.
File
- includes/
math-expr.inc, line 803 - =============================================================================.
Class
- ctools_math_expr
- ctools_math_expr Class.
Code
protected function trigger($msg) {
$this->errors[] = $msg;
$this->last_error = $msg;
if (!$this->suppress_errors) {
trigger_error($msg, E_USER_WARNING);
}
return FALSE;
}