MediaWiki
REL1_24
|
Public Member Functions | |
caseSetting () | |
closePage () | |
Closes a "<page>" section on the output stream. | |
closeStream () | |
Closes the output stream with the closing root element. | |
dbname () | |
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 474 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 885 of file Export.php.
Definition at line 570 of file Export.php.
References array(), Xml\element(), and Title\newMainPage().
Closes a "<page>" section on the output stream.
Definition at line 644 of file Export.php.
Closes the output stream with the closing root element.
Call when finished dumping things.
Definition at line 601 of file Export.php.
Definition at line 547 of file Export.php.
Definition at line 555 of file Export.php.
Definition at line 563 of file Export.php.
Definition at line 580 of file Export.php.
XmlDumpWriter::openPage | ( | $ | row | ) |
Opens a "<page>" section on the output stream, with data from the given database row.
object | $row |
Definition at line 612 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 495 of file Export.php.
Returns the export schema version.
Definition at line 480 of file Export.php.
Definition at line 523 of file Export.php.
Definition at line 539 of file Export.php.
XmlDumpWriter::writeContributor | ( | $ | id, |
$ | text, | ||
$ | indent = " " |
||
) |
int | $id | |
string | $text | |
string | $indent | Default to six spaces |
Definition at line 799 of file Export.php.
References $out, Xml\element(), Xml\elementClean(), and IP\isValid().
XmlDumpWriter::writeLogItem | ( | $ | row | ) |
Dumps a "<logitem>" section on the output stream, with data filled in from the given database row.
object | $row |
Definition at line 744 of file Export.php.
XmlDumpWriter::writeRevision | ( | $ | row | ) |
Dumps a "<revision>" section on the output stream, with data filled in from the given database row.
object | $row |
Definition at line 656 of file Export.php.
XmlDumpWriter::writeTimestamp | ( | $ | timestamp, |
$ | indent = " " |
||
) |
string | $timestamp | |
string | $indent | Default to six spaces |
Definition at line 788 of file Export.php.
XmlDumpWriter::writeUpload | ( | $ | file, |
$ | dumpContents = false |
||
) |
File | $file | |
bool | $dumpContents |
Definition at line 837 of file Export.php.
Referenced by writeUploads().
XmlDumpWriter::writeUploads | ( | $ | row, |
$ | dumpContents = false |
||
) |
Warning! This data is potentially inconsistent.
:(
object | $row | |
bool | $dumpContents |
Definition at line 817 of file Export.php.
References $out, as, wfLocalFile(), and writeUpload().