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

Public Member Functions

 __construct ($filepath, moodle_database $mdb, $check_schema=true)
 import_database ()

Protected Attributes

 $filepath

Detailed Description

XML format importer class from file storage.

Definition at line 33 of file file_xml_database_importer.php.


Constructor & Destructor Documentation

__construct ( filepath,
moodle_database mdb,
check_schema = true 
)

Object constructor.

Parameters:
string$filepath- path to the XML data file. Use 'php://input' for PHP input stream.
moodle_database$mdbConnection to the target database
See also:
xml_database_importer::__construct()
Parameters:
boolean$check_schema- whether or not to check that XML database
See also:
xml_database_importer::__construct()

Definition at line 47 of file file_xml_database_importer.php.


Member Function Documentation

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.

Returns:
void

Reimplemented from database_importer.

Definition at line 57 of file file_xml_database_importer.php.

Here is the call graph for this function:


Field Documentation

$filepath [protected]

Path to the XML data file.

Definition at line 35 of file file_xml_database_importer.php.


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