dolibarr 18.0.6
|
Public Member Functions | |
__construct () | |
Constructor. | |
e ($expr) | |
Evaluate. | |
evaluate ($expr) | |
Evaluate. | |
vars () | |
Function vars. | |
trigger ($code, $msg, $info=null) | |
trigger an error, but nicely, if need be | |
Private Member Functions | |
funcs () | |
Function funcs. | |
nfx ($expr) | |
Convert infix to postfix notation. | |
pfx ($tokens, $vars=array()) | |
Evaluate postfix notation. | |
Class EvalMath.
Definition at line 97 of file evalmath.class.php.
EvalMath::e | ( | $expr | ) |
Evaluate.
string | $expr | String |
Definition at line 135 of file evalmath.class.php.
References evaluate().
EvalMath::evaluate | ( | $expr | ) |
|
private |
|
private |
Convert infix to postfix notation.
string | $expr | Expression |
Definition at line 235 of file evalmath.class.php.
References trigger().
Referenced by evaluate().
|
private |
Evaluate postfix notation.
array | $tokens | Expression |
array | $vars | Array |
Definition at line 381 of file evalmath.class.php.
References pfx(), and trigger().
Referenced by evaluate(), and pfx().
EvalMath::trigger | ( | $code, | |
$msg, | |||
$info = null ) |
trigger an error, but nicely, if need be
string | $code | Code |
string | $msg | Msg |
string | null | $info | String |
Definition at line 468 of file evalmath.class.php.
Referenced by evaluate(), nfx(), and pfx().
EvalMath::vars | ( | ) |