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


Public Member Functions | |
| __construct (moodle_database $mdb_source, moodle_database $mdb_target, $check_schema=true, progress_trace $feeback=null) | |
| set_transaction_mode ($mode) | |
| begin_database_export ($version, $release, $timestamp, $description) | |
| begin_table_export (xmldb_table $table) | |
| export_table_data (xmldb_table $table, $data) | |
| finish_table_export (xmldb_table $table) | |
| finish_database_export () | |
Protected Attributes | |
| $importer | |
| $feeback | |
Definition at line 30 of file database_mover.php.
| __construct | ( | moodle_database $ | mdb_source, |
| moodle_database $ | mdb_target, | ||
| $ | check_schema = true, |
||
| progress_trace $ | feeback = null |
||
| ) |
Object constructor.
| moodle_database | $mdb | Connection to the source database (a |
| moodle_database | $mdb_target | Connection to the target database (a |
| boolean | $check_schema | - whether or not to check that XML database schema matches the RDBMS database schema before exporting (used by |
Definition at line 46 of file database_mover.php.
| begin_database_export | ( | $ | version, |
| $ | release, | ||
| $ | timestamp, | ||
| $ | description | ||
| ) |
Callback function. Calls importer's begin_database_import callback method.
| float | $version | the version of the system which generating the data |
| string | $timestamp | the timestamp of the data (in ISO 8601) format. |
| string | $description | a user description of the data. |
Reimplemented from database_exporter.
Definition at line 77 of file database_mover.php.
| begin_table_export | ( | xmldb_table $ | table | ) |
Callback function. Calls importer's begin_table_import callback method.
| xmldb_table | $table | - XMLDB object for the exported table |
Reimplemented from database_exporter.
Definition at line 88 of file database_mover.php.

| export_table_data | ( | xmldb_table $ | table, |
| $ | data | ||
| ) |
Callback function. Calls importer's import_table_data callback method.
| xmldb_table | $table | - XMLDB object of the table from which data was retrieved |
| object | $data | - data object (fields and values from record) |
Reimplemented from database_exporter.
Definition at line 101 of file database_mover.php.

Callback function. Calls importer's finish_database_import callback method.
Reimplemented from database_exporter.
Definition at line 119 of file database_mover.php.
| finish_table_export | ( | xmldb_table $ | table | ) |
Callback function. Calls importer's finish_table_import callback method.
| xmldb_table | $table | - XMLDB object for the exported table |
Reimplemented from database_exporter.
Definition at line 110 of file database_mover.php.

| set_transaction_mode | ( | $ | mode | ) |
How to use transactions during the transfer.
| string | $mode | 'pertable', 'allinone' or 'none'. |
Definition at line 65 of file database_mover.php.
$feeback [protected] |
Definition at line 33 of file database_mover.php.
$importer [protected] |
Importer object used to transfer data.
Definition at line 32 of file database_mover.php.