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


Public Member Functions | |
| __construct ($filepath, moodle_database $mdb, $check_schema=true) | |
| export_database ($description=null) | |
Protected Member Functions | |
| output ($text) | |
Protected Attributes | |
| $filepath | |
| $file | |
XML format exporter class to file storage.
Definition at line 33 of file file_xml_database_exporter.php.
| __construct | ( | $ | filepath, |
| moodle_database $ | mdb, | ||
| $ | check_schema = true |
||
| ) |
Object constructor.
| string | $filepath | - path to the XML data file. Use 'php://output' for PHP output stream. |
| moodle_database | $mdb | Connection to the source database |
| boolean | $check_schema | - whether or not to check that XML database |
Definition at line 49 of file file_xml_database_exporter.php.
| export_database | ( | $ | description = null | ) |
Specific implementation for file exporting the database: it opens output stream, calls superclass
| dbtransfer_exception | if any checking (e.g. database schema) fails |
| string | $description | a user description of the data. |
Reimplemented from database_exporter.
Definition at line 69 of file file_xml_database_exporter.php.
| output | ( | $ | text | ) | [protected] |
Specific output method for the file XML sink.
Reimplemented from xml_database_exporter.
Definition at line 57 of file file_xml_database_exporter.php.
$file [protected] |
File descriptor for the output file.
Definition at line 37 of file file_xml_database_exporter.php.
$filepath [protected] |
Path to the XML data file.
Definition at line 35 of file file_xml_database_exporter.php.