Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Instantiable class defining the process of backup structures. More...
Public Member Functions | |
__construct (xml_writer $writer, core\progress\base $progress=null) | |
Constructor. | |
get_var ($key) | |
post_process_nested_element (base_nested_element $nested) | |
pre_process_nested_element (base_nested_element $nested) | |
process_attribute (base_attribute $attribute) | |
process_final_element (base_final_element $final) | |
process_nested_element (base_nested_element $nested) | |
set_var ($key, $value) | |
Protected Attributes | |
core progress base | $progress |
Progress tracker (null if none) | |
$vars | |
$writer | |
Instantiable class defining the process of backup structures.
TODO: Finish phpdocs
This class will process the given backup structure (nested/final/attribute) based on its definition, triggering as many actions as necessary (pre/post triggers, ids annotations, deciding based on settings, xml output...). Somehow one visitor pattern to allow backup structures to work with nice decoupling
backup_structure_processor::__construct | ( | xml_writer | $writer, |
core\progress\base | $progress = null ) |
Constructor.
xml_writer | $writer | XML writer to save data |
c\core\progress\base$progress | Progress tracker (optional) |
backup_structure_processor::post_process_nested_element | ( | base_nested_element | $nested | ) |
Reimplemented from base_processor.
backup_structure_processor::pre_process_nested_element | ( | base_nested_element | $nested | ) |
Reimplemented from base_processor.
backup_structure_processor::process_attribute | ( | base_attribute | $attribute | ) |
Reimplemented from base_processor.
backup_structure_processor::process_final_element | ( | base_final_element | $final | ) |
Reimplemented from base_processor.
backup_structure_processor::process_nested_element | ( | base_nested_element | $nested | ) |
Reimplemented from base_processor.