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


Public Member Functions | |
| begin_database_export ($version, $release, $timestamp, $description) | |
| begin_table_export (xmldb_table $table) | |
| finish_table_export (xmldb_table $table) | |
| finish_database_export () | |
| export_table_data (xmldb_table $table, $data) | |
Protected Member Functions | |
| output ($text) | |
XML format exporter class. Provides logic for writing XML tags and data inside appropriate callbacks. Subclasses should define XML data sinks.
Definition at line 35 of file xml_database_exporter.php.
| begin_database_export | ( | $ | version, |
| $ | release, | ||
| $ | timestamp, | ||
| $ | description | ||
| ) |
Callback function. Outputs open XML PI and moodle_database opening tag.
| float | $version | the version of the system which generating the data |
| string | $release | moodle release info |
| 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 51 of file xml_database_exporter.php.

| begin_table_export | ( | xmldb_table $ | table | ) |
Callback function. Outputs table opening tag.
| xmldb_table | $table | - XMLDB object for the exported table |
Reimplemented from database_exporter.
Definition at line 63 of file xml_database_exporter.php.

| export_table_data | ( | xmldb_table $ | table, |
| $ | data | ||
| ) |
Callback function. Outputs record tag with field subtags and data.
| 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 90 of file xml_database_exporter.php.

Callback function. Outputs moodle_database closing tag.
Reimplemented from database_exporter.
Definition at line 79 of file xml_database_exporter.php.

| finish_table_export | ( | xmldb_table $ | table | ) |
Callback function. Outputs table closing tag.
| xmldb_table | $table | - XMLDB object for the exported table |
Reimplemented from database_exporter.
Definition at line 72 of file xml_database_exporter.php.

| output | ( | $ | text | ) | [abstract, protected] |
Generic output method. Subclasses should implement it with code specific to the target XML sink.
Reimplemented in file_xml_database_exporter, and string_xml_database_exporter.
