|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($tablename, $fields, $mapping=null) | |
| set_restoreid ($restoreid) | |
| process ($processor) | |
Protected Member Functions | |
| get_iterator () | |
| update_iterator_row ($row) | |
| preprocess_field ($field) | |
| postprocess_field ($field) | |
Protected Attributes | |
| $tablename | |
| $fields | |
| $mapping | |
| $restoreid | |
| $iterator | |
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
Definition at line 41 of file restore_decode_content.class.php.
| __construct | ( | $ | tablename, |
| $ | fields, | ||
| $ | mapping = null |
||
| ) |
Definition at line 50 of file restore_decode_content.class.php.
| get_iterator | ( | ) | [protected] |
Reimplemented in restore_html_block_decode_content.
Definition at line 92 of file restore_decode_content.class.php.

| postprocess_field | ( | $ | field | ) | [protected] |
Reimplemented in restore_html_block_decode_content.
Definition at line 115 of file restore_decode_content.class.php.

| preprocess_field | ( | $ | field | ) | [protected] |
Reimplemented in restore_html_block_decode_content.
Definition at line 111 of file restore_decode_content.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 63 of file restore_decode_content.class.php.

| set_restoreid | ( | $ | restoreid | ) |
Definition at line 59 of file restore_decode_content.class.php.
| update_iterator_row | ( | $ | row | ) | [protected] |
Definition at line 106 of file restore_decode_content.class.php.

$fields [protected] |
Definition at line 44 of file restore_decode_content.class.php.
$iterator [protected] |
Definition at line 48 of file restore_decode_content.class.php.
$mapping [protected] |
Definition at line 45 of file restore_decode_content.class.php.
$restoreid [protected] |
Definition at line 47 of file restore_decode_content.class.php.
$tablename [protected] |
Definition at line 43 of file restore_decode_content.class.php.