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

Public Member Functions

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

Protected Attributes

 $data

Detailed Description

XML format importer class from memory storage (i.e. string).

Definition at line 33 of file string_xml_database_importer.php.


Constructor & Destructor Documentation

__construct ( data,
moodle_database mdb,
check_schema = true 
)

Object constructor.

Parameters:
stringdata - string with XML data
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 46 of file string_xml_database_importer.php.


Member Function Documentation

Common import method: it creates the parser, feeds the XML parser with data, releases the parser.

Returns:
void

Reimplemented from database_importer.

Definition at line 56 of file string_xml_database_importer.php.

Here is the call graph for this function:


Field Documentation

$data [protected]

String with XML data.

Definition at line 35 of file string_xml_database_importer.php.


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