|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($name, $elements=null, $multiple=false) | |
| get_level () | |
| to_string ($showvalue=false) | |
| add_attributes ($attributes) | |
| add_final_elements ($attributes) | |
Protected Member Functions | |
| get_new_attribute ($name) | |
| get_new_final_element ($name) | |
| add_children ($elements) | |
| set_parent ($element) | |
| add_used ($element) | |
| is_multiple () | |
Abstract class representing one optigroup for conditional branching
Definition at line 30 of file base_optigroup.class.php.
| __construct | ( | $ | name, |
| $ | elements = null, |
||
| $ | multiple = false |
||
| ) |
Constructor - instantiates one base_optigroup, specifying its basic info
| string | $name | name of the element |
| array | $elements | base_optigroup_elements of this group |
| bool | $multiple | to decide if the group allows multiple branches processing or no |
Reimplemented from base_nested_element.
Definition at line 42 of file base_optigroup.class.php.

| add_attributes | ( | $ | attributes | ) |
Adding attributes is forbidden
Reimplemented from base_final_element.
Definition at line 78 of file base_optigroup.class.php.
| add_children | ( | $ | elements | ) | [protected] |
Definition at line 105 of file base_optigroup.class.php.


| add_final_elements | ( | $ | attributes | ) |
Adding final elements is forbidden
Reimplemented from base_nested_element.
Definition at line 92 of file base_optigroup.class.php.
| add_used | ( | $ | element | ) | [protected] |
Recalculate all the used elements in the optigroup, observing restrictions and passing the new used to outer level
Reimplemented from base_nested_element.
Definition at line 134 of file base_optigroup.class.php.

| get_level | ( | ) |
Return the level of this element, that will be, the level of the parent (doesn't consume level) (note this os only a "cosmetic" effect (to_string) as fact as the real responsible for this is the corresponding structure_processor for the final output.
Reimplemented from base_final_element.
Definition at line 57 of file base_optigroup.class.php.


| get_new_attribute | ( | $ | name | ) | [protected] |
Instantiating attributes is forbidden
Reimplemented from base_final_element.
Reimplemented in mock_base_optigroup.
Definition at line 85 of file base_optigroup.class.php.
| get_new_final_element | ( | $ | name | ) | [protected] |
Instantiating final elements is forbidden
Reimplemented from base_nested_element.
Reimplemented in mock_base_optigroup.
Definition at line 99 of file base_optigroup.class.php.
| is_multiple | ( | ) | [protected] |
Reimplemented in mock_base_optigroup.
Definition at line 156 of file base_optigroup.class.php.

| set_parent | ( | $ | element | ) | [protected] |
Set the parent of the optigroup and, at the same time, process all the condition params in all the childs
Reimplemented from base_final_element.
Definition at line 122 of file base_optigroup.class.php.

| to_string | ( | $ | showvalue = false | ) |
Reimplemented from base_nested_element.
Definition at line 61 of file base_optigroup.class.php.
