Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes

Expression Class Reference

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}','{'=>'}')

Detailed Description

Definition at line 26 of file Expression.php.


Member Function Documentation

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

Parameters:
string$code- expression text
Returns:
boolean

Definition at line 374 of file Expression.php.

Here is the caller graph for this function:

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

Parameters:
string$expression- simple expression supported by the openbiz
object$object
Returns:
mixed

Definition at line 288 of file Expression.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static replaceElementsExpr ( expression,
formObj 
) [static, protected]

Replace elements expression with value from $formObj

Parameters:
string$expression
EasyForm$formObj
Returns:
mixed

Definition at line 89 of file Expression.php.

Here is the caller graph for this function:

static replaceFieldsExpr ( expression,
bizObj 
) [static, protected]

Replase field expression with value from $bizObj

Parameters:
string$expression
BizDataObj$bizObj
Returns:
mixed

Definition at line 42 of file Expression.php.

Here is the caller graph for this function:

static replaceVarExpr ( expression,
object 
) [static, protected]

Replace var expression :property, :field[fldname].property, :control[ctrlname].property @:prop = :prop

BizSystem $g_BizSystem

Parameters:
string$expression
object$object
Returns:
string

Definition at line 144 of file Expression.php.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: