dolibarr
20.0.0-beta
|
Public Member Functions | |
__construct () | |
Constructor. | |
e ($expr) | |
Evaluate. More... | |
evaluate ($expr) | |
Evaluate. More... | |
vars () | |
Function vars. More... | |
trigger ($code, $msg, $info=null) | |
trigger an error, but nicely, if need be More... | |
Private Member Functions | |
funcs () | |
Function funcs. More... | |
nfx ($expr) | |
Convert infix to postfix notation. More... | |
pfx ($tokens, $vars=array()) | |
Evaluate postfix notation. More... | |
Class EvalMath.
Definition at line 97 of file evalmath.class.php.
EvalMath::e | ( | $expr | ) |
Evaluate.
string | $expr | String |
Definition at line 134 of file evalmath.class.php.
References evaluate().
EvalMath::evaluate | ( | $expr | ) |
Evaluate.
string | $expr | String |
Definition at line 145 of file evalmath.class.php.
References trigger().
Referenced by e().
|
private |
|
private |
Convert infix to postfix notation.
string | $expr | Expression |
Definition at line 234 of file evalmath.class.php.
|
private |
Evaluate postfix notation.
array | $tokens | Expression |
array | $vars | Array |
Definition at line 380 of file evalmath.class.php.
References trigger().
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(), and pfx().
EvalMath::vars | ( | ) |