Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Helper class in charge of providing the contents to be processed by restore_decode_rules. More...
Public Member Functions | |
__construct ($tablename, $fields, $mapping=null) | |
process ($processor) | |
This function will call to the corresponding processor method in other to make them perform the desired tasks. More... | |
set_restoreid ($restoreid) | |
Protected Member Functions | |
get_iterator () | |
postprocess_field ($field) | |
preprocess_field ($field) | |
update_iterator_row ($row) | |
Protected Attributes | |
$fields | |
$iterator | |
$mapping | |
$restoreid | |
$tablename | |
Helper class in charge of providing the contents to be processed by restore_decode_rules.
This class is in charge of looking (in DB) for the contents needing to be processed by the declared restore_decode_rules. Basically it iterates over one recordset (optimised by joining them with backup_ids records), retrieving them from DB, delegating process to the restore_plan and storing results back to DB.
Implements one visitor-like pattern so the decode_processor will visit it to get all the contents processed by its defined rules
TODO: Complete phpdocs
restore_decode_content::process | ( | $processor | ) |
This function will call to the corresponding processor method in other to make them perform the desired tasks.
Implements processable.