Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
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. | |
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.