XmlDumpWriter Class Reference
[Dump]

List of all members.

Public Member Functions

 schemaVersion ()
 Returns the export schema version.
 openStream ()
 Opens the XML output stream's root <mediawiki> element.
 siteInfo ()
 sitename ()
 generator ()
 homelink ()
 caseSetting ()
 namespaces ()
 closeStream ()
 Closes the output stream with the closing root element.
 openPage ($row)
 Opens a <page> section on the output stream, with data from the given database row.
 closePage ()
 Closes a <page> section on the output stream.
 writeRevision ($row)
 Dumps a <revision> section on the output stream, with data filled in from the given database row.
 writeLogItem ($row)
 Dumps a <logitem> section on the output stream, with data filled in from the given database row.
 writeTimestamp ($timestamp)
 writeContributor ($id, $text)
 writeUploads ($row)
 Warning! This data is potentially inconsistent.
 writeUpload ($file)


Detailed Description

Definition at line 343 of file Export.php.


Member Function Documentation

XmlDumpWriter::caseSetting (  ) 

Definition at line 404 of file Export.php.

References $wgCapitalLinks, and Xml::element().

Referenced by siteInfo().

XmlDumpWriter::closePage (  ) 

Closes a <page> section on the output stream.

Access:
private

Definition at line 455 of file Export.php.

XmlDumpWriter::closeStream (  ) 

Closes the output stream with the closing root element.

Call when finished dumping things.

Definition at line 425 of file Export.php.

XmlDumpWriter::generator (  ) 

Definition at line 395 of file Export.php.

References $wgVersion, and Xml::element().

Referenced by siteInfo().

XmlDumpWriter::homelink (  ) 

Definition at line 400 of file Export.php.

References Xml::element(), and Title::newMainPage().

Referenced by siteInfo().

XmlDumpWriter::namespaces (  ) 

Definition at line 411 of file Export.php.

References $ns, $title, $wgContLang, and Xml::element().

Referenced by siteInfo().

XmlDumpWriter::openPage ( row  ) 

Opens a <page> section on the output stream, with data from the given database row.

Parameters:
$row object
Returns:
string
Access:
private

Definition at line 438 of file Export.php.

References $out, $row, $title, Xml::element(), Xml::elementClean(), and Title::makeTitle().

XmlDumpWriter::openStream (  ) 

Opens the XML output stream's root <mediawiki> element.

This does not include an xml directive, so is safe to include as a subelement in a larger XML stream. Namespace and XML Schema references are included.

Output will be encoded in UTF-8.

Returns:
string

Definition at line 363 of file Export.php.

References $wgContLanguageCode, Xml::element(), schemaVersion(), and siteInfo().

XmlDumpWriter::schemaVersion (  ) 

Returns the export schema version.

Returns:
string

Definition at line 349 of file Export.php.

Referenced by openStream().

XmlDumpWriter::siteInfo (  ) 

Definition at line 378 of file Export.php.

References caseSetting(), generator(), homelink(), namespaces(), and sitename().

Referenced by openStream().

XmlDumpWriter::sitename (  ) 

Definition at line 390 of file Export.php.

References $wgSitename, and Xml::element().

Referenced by siteInfo().

XmlDumpWriter::writeContributor ( id,
text 
)

Definition at line 565 of file Export.php.

References $out, $text, Xml::element(), and Xml::elementClean().

Referenced by writeLogItem(), writeRevision(), and writeUpload().

XmlDumpWriter::writeLogItem ( row  ) 

Dumps a <logitem> section on the output stream, with data filled in from the given database row.

Parameters:
$row object
Returns:
string
Access:
private

Definition at line 520 of file Export.php.

References $fname, $out, $row, $title, LogPage::DELETED_ACTION, LogPage::DELETED_COMMENT, LogPage::DELETED_USER, Xml::element(), Xml::elementClean(), Title::makeTitle(), wfProfileIn(), wfProfileOut(), writeContributor(), and writeTimestamp().

XmlDumpWriter::writeRevision ( row  ) 

Dumps a <revision> section on the output stream, with data filled in from the given database row.

Parameters:
$row object
Returns:
string
Access:
private

Definition at line 467 of file Export.php.

References $fname, $out, $row, $text, Revision::DELETED_COMMENT, Revision::DELETED_TEXT, Revision::DELETED_USER, Xml::element(), Xml::elementClean(), Revision::getRevisionText(), wfProfileIn(), wfProfileOut(), writeContributor(), and writeTimestamp().

XmlDumpWriter::writeTimestamp ( timestamp  ) 

Definition at line 560 of file Export.php.

References $ts, Xml::element(), and wfTimestamp().

Referenced by writeLogItem(), writeRevision(), and writeUpload().

XmlDumpWriter::writeUpload ( file  ) 

Definition at line 595 of file Export.php.

References $file, Xml::element(), Xml::elementClean(), writeContributor(), and writeTimestamp().

Referenced by writeUploads().

XmlDumpWriter::writeUploads ( row  ) 

Warning! This data is potentially inconsistent.

:(

Definition at line 580 of file Export.php.

References $out, $row, wfFindFile(), and writeUpload().


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:51 2009 for MediaWiki by  doxygen 1.5.9