Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
restore_decode_content Class Reference

Helper class in charge of providing the contents to be processed by restore_decode_rules. More...

Inheritance diagram for restore_decode_content:
processable restore_html_block_decode_content

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
 

Detailed Description

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

Member Function Documentation

◆ process()

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.


The documentation for this class was generated from the following file: