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

Public Member Functions

 add_child ($element)
 process ($processor)

Detailed Description

Instantiable class representing one optigroup element for conditional branching

Objects of this class are internally nested elements, so they support having both final elements and children (more nested elements) and are able to have one source and all the stuff supported by nested elements. Their main differences are:

  • Support for conditional execution, using simple equality checks with outer values.
  • Don't have representation in the hierarchy, so:
    • Their level is the level of the parent of their enclosing optigroup.
    • Act as one "path bridge" when looking for parent path values
    • They don't support attributes

Their main use is to allow conditional branching, basically for optional submodules like question types, assignment subtypes... where different subtrees of information must be exported. It's correct to assume that each submodule will define its own optigroup_element for backup purposes.

Definition at line 45 of file backup_optigroup.class.php.


Member Function Documentation

add_child ( element)

Reimplemented from base_nested_element.

Definition at line 47 of file backup_optigroup.class.php.

process ( processor)

This function will call to the corresponding processor method in other to make them perform the desired tasks.

Implements processable.

Definition at line 59 of file backup_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