MediaWiki
REL1_20
|
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 472 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 835 of file Export.php.
Definition at line 549 of file Export.php.
Closes a "<page>" section on the output stream.
Definition at line 621 of file Export.php.
Closes the output stream with the closing root element.
Call when finished dumping things.
Definition at line 579 of file Export.php.
Definition at line 534 of file Export.php.
Definition at line 542 of file Export.php.
Definition at line 559 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 591 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 493 of file Export.php.
Returns the export schema version.
Definition at line 478 of file Export.php.
Definition at line 511 of file Export.php.
Definition at line 526 of file Export.php.
XmlDumpWriter::writeContributor | ( | $ | id, |
$ | text, | ||
$ | indent = " " |
||
) |
$id | |
$text | string |
$indent | string Default to six spaces |
Definition at line 752 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 697 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 633 of file Export.php.
XmlDumpWriter::writeTimestamp | ( | $ | timestamp, |
$ | indent = " " |
||
) |
$timestamp | string |
$indent | string Default to six spaces |
Definition at line 741 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 770 of file Export.php.