Adjust conditional execution systems to new version of AECode
Information on the new conditional execution widget.
Blueprint information
Whiteboard
Conditional execution on a widget is set during the web page mask creation with the function:
setConditionalE
Where each parameter is:
- $type: Holds values "IF" or "WHILE" as strings. Type IF means the widget will be executed only if the truecondition is met. Type while means the widget will execute itself as long as the truecondition remains true.
- $truecondition: Name of the global variable with the data to check. No operations are allowed. The variable is checked for it's content. The following values are considered FALSE:
* the boolean FALSE itself
* the integer 0 (zero)
* the float 0.0 (zero)
* the empty string, and the string "0"
* an array with zero elements
* the special type NULL (including unset variables)
* SimpleXML objects created from empty tags
- $extraprocessing: Additional set of AECode instructions to be executed after the widget has. The instructions must not have the AECode header, just the instructions following the regular AECode syntax.
- $maximum: In the case of a WHILE conditional execution, this maximum value limits the amount of times a certain widget is executed. This prevents the system from falling into an infinite loop. The default value is set to 20.
Information is saved in the following way:
$this->
'type' => $type,
'truecondition' => $truecondicion,
'extraproce
'maximum' => $maximum
);
Work Items
Dependency tree
* Blueprints in grey have been implemented.