Public Member Functions | |
__construct (&$xmlArr) | |
Static Public Member Functions | |
static | evaluateExpression ($expression, $object) |
static | eval_syntax ($code) |
Static Protected Member Functions | |
static | replaceFieldsExpr ($expression, $bizObj) |
static | replaceElementsExpr ($expression, $formObj) |
static | replaceVarExpr ($expression, $object) |
static | replaceMacrosExpr ($expression) |
static | getNextContainerPos ($expression, &$start) |
Static Protected Attributes | |
static | $services = array() |
static | $expContainers = array('{fx}'=>'{/fx}','{tx}'=>'{/tx}','{'=>'}') |
Definition at line 26 of file Expression.php.
static eval_syntax | ( | $ | code ) | [static] |
Check expression for syntax errors just before eval() function If the expression fails, do not eval the funciton. Return DEBUG error in logs
string | $code | - expression text |
Definition at line 374 of file Expression.php.
static evaluateExpression | ( | $ | expression, |
$ | object | ||
) | [static] |
Evaluate simple expression expression is combination of text, simple expressiones and field variables simple expression - {...} field variable - [field name] expression samples: text1{[field1]*10}text2{function1([field2],'a')}text3
:property, :field[fldname].property, :control[ctrlname].property @:prop = :prop [fldname] = :field[fldname].value .BOEvent:Name, @:Name .BOEvent:Field[EventName].Column, .BOEvent:Field[EventName].Value .FMEvent:Control[evt_name].FieldName, .FMEvent:Control[evt_name].Value [EventName] is .BOEvent:Field[EventName].Value in BOEvent.xml
string | $expression | - simple expression supported by the openbiz |
object | $object |
Definition at line 288 of file Expression.php.
static replaceElementsExpr | ( | $ | expression, |
$ | formObj | ||
) | [static, protected] |
Replace elements expression with value from $formObj
string | $expression | |
EasyForm | $formObj |
Definition at line 89 of file Expression.php.
static replaceFieldsExpr | ( | $ | expression, |
$ | bizObj | ||
) | [static, protected] |
Replase field expression with value from $bizObj
string | $expression | |
BizDataObj | $bizObj |
Definition at line 42 of file Expression.php.
static replaceVarExpr | ( | $ | expression, |
$ | object | ||
) | [static, protected] |
Replace var expression :property, :field[fldname].property, :control[ctrlname].property @:prop = :prop
BizSystem $g_BizSystem
string | $expression | |
object | $object |
Definition at line 144 of file Expression.php.