MDL-15635 DTL refactoring, adding release field to xml file

This commit is contained in:
skodak
2008-08-30 18:54:57 +00:00
parent ebf20af07d
commit e85a924fec
14 changed files with 825 additions and 774 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php //$Id$
/**
* XML format exporter class to memory storage (i.e. a string).
*/
class string_xml_database_exporter extends xml_database_exporter {
/** String with XML data. */
protected $data;
/**
* Specific output method for the memory XML sink.
*/
protected function output($text) {
$this->data .= $text;
}
/**
* Returns the output of the exporters
* @return string XML data from exporter
*/
public function get_output() {
return $this->data;
}
/**
* Specific implementation for memory exporting the database: it clear the buffer
* and calls superclass @see database_exporter::export_database().
*
* @exception export_exception if any checking (e.g. database schema) fails
* @param string $description a user description of the data.
* @return void
*/
public function export_database($description=null) {
$this->data = '';
parent::export_database($description);
}
}