Moodle  2.2.1
http://www.collinsharper.com
restore_decode_content Class Reference
Inheritance diagram for restore_decode_content:
Collaboration diagram for restore_decode_content:

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

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

Definition at line 41 of file restore_decode_content.class.php.


Constructor & Destructor Documentation

__construct ( tablename,
fields,
mapping = null 
)

Definition at line 50 of file restore_decode_content.class.php.


Member Function Documentation

get_iterator ( ) [protected]

Reimplemented in restore_html_block_decode_content.

Definition at line 92 of file restore_decode_content.class.php.

Here is the caller graph for this function:

postprocess_field ( field) [protected]

Reimplemented in restore_html_block_decode_content.

Definition at line 115 of file restore_decode_content.class.php.

Here is the caller graph for this function:

preprocess_field ( field) [protected]

Reimplemented in restore_html_block_decode_content.

Definition at line 111 of file restore_decode_content.class.php.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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.

Here is the caller graph for this function:


Field Documentation

$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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations