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


Public Member Functions | |
| __construct ($filepath, moodle_database $mdb, $check_schema=true) | |
| import_database () | |
Protected Attributes | |
| $filepath | |
XML format importer class from file storage.
Definition at line 33 of file file_xml_database_importer.php.
| __construct | ( | $ | filepath, |
| moodle_database $ | mdb, | ||
| $ | check_schema = true |
||
| ) |
Object constructor.
| string | $filepath | - path to the XML data file. Use 'php://input' for PHP input stream. |
| moodle_database | $mdb | Connection to the target database |
| boolean | $check_schema | - whether or not to check that XML database |
Definition at line 47 of file file_xml_database_importer.php.
| import_database | ( | ) |
Common import method: it opens the file storage, creates the parser, feeds the XML parser with data, releases the parser and closes the file storage.
Reimplemented from database_importer.
Definition at line 57 of file file_xml_database_importer.php.

$filepath [protected] |
Path to the XML data file.
Definition at line 35 of file file_xml_database_importer.php.