MediaWiki
REL1_22
|
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. |
Definition at line 477 of file Export.php.
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.
Title | $title |
Definition at line 866 of file Export.php.
Definition at line 554 of file Export.php.
Closes a "<page>" section on the output stream.
Definition at line 627 of file Export.php.
Closes the output stream with the closing root element.
Call when finished dumping things.
Definition at line 585 of file Export.php.
Definition at line 539 of file Export.php.
Definition at line 547 of file Export.php.
Definition at line 564 of file Export.php.
XmlDumpWriter::openPage | ( | $ | row | ) |
Opens a "<page>" section on the output stream, with data from the given database row.
$row | object |
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.
Definition at line 498 of file Export.php.
Returns the export schema version.
Definition at line 483 of file Export.php.
Definition at line 516 of file Export.php.
Definition at line 531 of file Export.php.
XmlDumpWriter::writeContributor | ( | $ | id, |
$ | text, | ||
$ | indent = " " |
||
) |
$id | ||
$text | string | |
string | $indent | Default to six spaces |
Definition at line 780 of file Export.php.
XmlDumpWriter::writeLogItem | ( | $ | row | ) |
Dumps a "<logitem>" section on the output stream, with data filled in from the given database row.
$row | object |
Definition at line 725 of file Export.php.
XmlDumpWriter::writeRevision | ( | $ | row | ) |
Dumps a "<revision>" section on the output stream, with data filled in from the given database row.
$row | object |
Definition at line 639 of file Export.php.
XmlDumpWriter::writeTimestamp | ( | $ | timestamp, |
$ | indent = " " |
||
) |
$timestamp | string | |
string | $indent | Default to six spaces |
Definition at line 769 of file Export.php.
XmlDumpWriter::writeUpload | ( | $ | file, |
$ | dumpContents = false |
||
) |
XmlDumpWriter::writeUploads | ( | $ | row, |
$ | dumpContents = false |
||
) |
Warning! This data is potentially inconsistent.
:(
$row | |
$dumpContents | bool |
Definition at line 798 of file Export.php.