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 345 of file Export.php.


Member Function Documentation

XmlDumpWriter::caseSetting (  ) 

Definition at line 406 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 467 of file Export.php.

XmlDumpWriter::closeStream (  ) 

Closes the output stream with the closing root element.

Call when finished dumping things.

Definition at line 431 of file Export.php.

XmlDumpWriter::generator (  ) 

Definition at line 397 of file Export.php.

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

Referenced by siteInfo().

XmlDumpWriter::homelink (  ) 

Definition at line 402 of file Export.php.

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

Referenced by siteInfo().

XmlDumpWriter::namespaces (  ) 

Definition at line 413 of file Export.php.

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

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 444 of file Export.php.

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

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 365 of file Export.php.

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

XmlDumpWriter::schemaVersion (  ) 

Returns the export schema version.

Returns:
string

Definition at line 351 of file Export.php.

Referenced by openStream().

XmlDumpWriter::siteInfo (  ) 

Definition at line 380 of file Export.php.

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

Referenced by openStream().

XmlDumpWriter::sitename (  ) 

Definition at line 392 of file Export.php.

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

Referenced by siteInfo().

XmlDumpWriter::writeContributor ( id,
text 
)

Definition at line 580 of file Export.php.

References $out, 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 535 of file Export.php.

References $fname, $out, $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 479 of file Export.php.

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

XmlDumpWriter::writeTimestamp ( timestamp  ) 

Definition at line 575 of file Export.php.

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

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

XmlDumpWriter::writeUpload ( file  ) 

Definition at line 610 of file Export.php.

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

Referenced by writeUploads().

XmlDumpWriter::writeUploads ( row  ) 

Warning! This data is potentially inconsistent.

:(

Definition at line 595 of file Export.php.

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


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

Generated on Sat Apr 30 22:57:53 2011 for MediaWiki by  doxygen 1.5.9