Moodle  2.2.1
http://www.collinsharper.com
base_optigroup Class Reference
Inheritance diagram for base_optigroup:
Collaboration diagram for base_optigroup:

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 ()

Detailed Description

Abstract class representing one optigroup for conditional branching

Definition at line 30 of file base_optigroup.class.php.


Constructor & Destructor Documentation

__construct ( name,
elements = null,
multiple = false 
)

Constructor - instantiates one base_optigroup, specifying its basic info

Parameters:
string$namename of the element
array$elementsbase_optigroup_elements of this group
bool$multipleto 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.

Here is the call graph for this function:


Member Function Documentation

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

to_string ( showvalue = false)

Reimplemented from base_nested_element.

Definition at line 61 of file base_optigroup.class.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations