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

Public Member Functions

 __construct ($filepath, moodle_database $mdb, $check_schema=true)
 export_database ($description=null)

Protected Member Functions

 output ($text)

Protected Attributes

 $filepath
 $file

Detailed Description

XML format exporter class to file storage.

Definition at line 33 of file file_xml_database_exporter.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://output' for PHP output stream.
moodle_database$mdbConnection to the source database
See also:
xml_database_exporter::__construct()
Parameters:
boolean$check_schema- whether or not to check that XML database
See also:
xml_database_exporter::__construct()

Definition at line 49 of file file_xml_database_exporter.php.


Member Function Documentation

export_database ( description = null)

Specific implementation for file exporting the database: it opens output stream, calls superclass

See also:
database_exporter::export_database() and closes output stream.
Exceptions:
dbtransfer_exceptionif any checking (e.g. database schema) fails
Parameters:
string$descriptiona 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.


Field Documentation

$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.


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