Adjust conditional execution systems to new version of AECode

Registered by KaDMiO

Information on the new conditional execution widget.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Essential
Drafter:
None
Direction:
Approved
Assignee:
KaDMiO
Definition:
Approved
Series goal:
Accepted for v1
Implementation:
Implemented
Milestone target:
milestone icon alpha-3
Started by
KaDMiO
Completed by
KaDMiO

Sprints

Whiteboard

Conditional execution on a widget is set during the web page mask creation with the function:
setConditionalExecution($type,$truecondicion,$extraprocessing=null,$maximum=20)

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->CONDITONAL_EXECUTION = array(
    'type' => $type,
    'truecondition' => $truecondicion,
    'extraprocessing' => $extraprocessing,
    'maximum' => $maximum
);

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.