MediaWiki  REL1_22
XmlDumpWriter Class Reference

List of all members.

Public Member Functions

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

Static Public Member Functions

static canonicalTitle (Title $title)
 Return prefixed text form of title, but using the content language's canonical namespace.

Detailed Description

Definition at line 477 of file Export.php.


Member Function Documentation

static XmlDumpWriter::canonicalTitle ( Title title) [static]

Return prefixed text form of title, but using the content language's canonical namespace.

This skips any special-casing such as gendered user namespaces -- which while useful, are not yet listed in the XML "<siteinfo>" data so are unsafe in export.

Parameters:
Title$title
Returns:
string
Since:
1.18

Definition at line 866 of file Export.php.

Returns:
string

Definition at line 554 of file Export.php.

Closes a "<page>" section on the output stream.

Access:
private
Returns:
string

Definition at line 627 of file Export.php.

Closes the output stream with the closing root element.

Call when finished dumping things.

Returns:
string

Definition at line 585 of file Export.php.

Returns:
string

Definition at line 539 of file Export.php.

Returns:
string

Definition at line 547 of file Export.php.

Returns:
string

Definition at line 564 of file Export.php.

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

Parameters:
$rowobject
Returns:
string
Access:
private

Definition at line 597 of file Export.php.

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

Returns the export schema version.

Deprecated:
in 1.20; use WikiExporter::schemaVersion() instead
Returns:
string

Definition at line 483 of file Export.php.

Returns:
string

Definition at line 516 of file Export.php.

Returns:
string

Definition at line 531 of file Export.php.

XmlDumpWriter::writeContributor ( id,
text,
indent = "      " 
)
Parameters:
$id
$textstring
string$indentDefault to six spaces
Returns:
string

Definition at line 780 of file Export.php.

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

Parameters:
$rowobject
Returns:
string
Access:
private

Definition at line 725 of file Export.php.

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

Parameters:
$rowobject
Returns:
string
Access:
private

Definition at line 639 of file Export.php.

XmlDumpWriter::writeTimestamp ( timestamp,
indent = "      " 
)
Parameters:
$timestampstring
string$indentDefault to six spaces
Returns:
string

Definition at line 769 of file Export.php.

XmlDumpWriter::writeUpload ( file,
dumpContents = false 
)
Parameters:
$fileFile
$dumpContentsbool
Returns:
string

Definition at line 818 of file Export.php.

XmlDumpWriter::writeUploads ( row,
dumpContents = false 
)

Warning! This data is potentially inconsistent.

:(

Parameters:
$row
$dumpContentsbool
Returns:
string

Definition at line 798 of file Export.php.


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