| 
    dolibarr 21.0.0-beta
    
   | 
 
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 101 of file evalmath.class.php.
| EvalMath::e | ( | $expr | ) | 
Evaluate.
| string | $expr | String | 
Definition at line 156 of file evalmath.class.php.
References evaluate().
| EvalMath::evaluate | ( | $expr | ) | 
      
  | 
  private | 
      
  | 
  private | 
Convert infix to postfix notation.
| string | $expr | Expression | 
Definition at line 256 of file evalmath.class.php.
References trigger().
Referenced by evaluate().
      
  | 
  private | 
Evaluate postfix notation.
| string[] | $tokens | Expression | 
| array<string,string> | $vars Array | 
Definition at line 402 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
| int | $code | Code | 
| string | $msg | Msg | 
| null|string|array{0:?mixed,1:int} | $info String | 
Definition at line 490 of file evalmath.class.php.
Referenced by evaluate(), nfx(), and pfx().
| EvalMath::vars | ( | ) |