Public Member Functions | |
__construct () | |
execute ($par) | |
Default execute method Checks user permissions, calls the function given in mFunction. | |
Private Member Functions | |
userCanOverrideExportDepth () | |
doExport ($page, $history, $list_authors) | |
Do the actual page exporting. | |
getPagesFromCategory ($title) | |
getPagesFromNamespace ($nsindex) | |
getTemplates ($inputPages, $pageSet) | |
Expand a list of pages to include templates used in those pages. | |
validateLinkDepth ($depth) | |
Validate link depth setting, if available. | |
getPageLinks ($inputPages, $pageSet, $depth) | |
Expand a list of pages to include pages linked to from that page. | |
getImages ($inputPages, $pageSet) | |
Expand a list of pages to include images used in those pages. | |
getLinks ($inputPages, $pageSet, $table, $fields, $join) | |
Expand a list of pages to include items used in those pages. | |
filterPage ($page) | |
Callback function to remove empty strings from the pages array. | |
Private Attributes | |
$curonly | |
$doExport | |
$pageLinkDepth | |
$templates | |
$images |
Definition at line 24 of file SpecialExport.php.
SpecialExport::__construct | ( | ) |
Definition at line 29 of file SpecialExport.php.
SpecialExport::doExport | ( | $ | page, | |
$ | history, | |||
$ | list_authors | |||
) | [private] |
Do the actual page exporting.
string | $page User input on what page(s) to export | |
mixed | $history one of the WikiExporter history export constants |
Definition at line 190 of file SpecialExport.php.
References $db, $lb, $page, $title, $wgExportMaxHistory, WikiExporter::BUFFER, WikiExporter::CURRENT, getPageLinks(), getTemplates(), Title::newFromText(), output(), WikiExporter::STREAM, wfGetDB(), wfGetLBFactory(), wfRestoreWarnings(), and wfSuppressWarnings().
Referenced by execute().
SpecialExport::execute | ( | $ | par | ) |
Default execute method Checks user permissions, calls the function given in mFunction.
This may be overridden by subclasses.
Reimplemented from SpecialPage.
Definition at line 33 of file SpecialExport.php.
References $filename, $offset, $page, $t, $wgExportAllowHistory, $wgExportAllowListContributors, $wgExportFromNamespaces, $wgExportMaxHistory, $wgExportMaxLinkDepth, $wgOut, $wgRequest, $wgSitename, Xml::checkLabel(), Xml::closeElement(), WikiExporter::CURRENT, doExport(), Xml::element(), WikiExporter::FULL, getPagesFromCategory(), getPagesFromNamespace(), SpecialPage::getTitle(), Xml::inputLabel(), Title::makeTitleSafe(), Xml::namespaceSelector(), Xml::openElement(), SpecialPage::outputHeader(), SpecialPage::setHeaders(), Xml::submitButton(), userCanOverrideExportDepth(), validateLinkDepth(), wfMsg(), wfMsgExt(), wfResetOutputBuffers(), wfTimestamp(), and wfTimestampNow().
SpecialExport::filterPage | ( | $ | page | ) | [private] |
Callback function to remove empty strings from the pages array.
Definition at line 399 of file SpecialExport.php.
References $page.
SpecialExport::getImages | ( | $ | inputPages, | |
$ | pageSet | |||
) | [private] |
Expand a list of pages to include images used in those pages.
$inputPages | array, list of titles to look up | |
$pageSet | array, associative array indexed by titles for output |
Definition at line 360 of file SpecialExport.php.
References getLinks().
SpecialExport::getLinks | ( | $ | inputPages, | |
$ | pageSet, | |||
$ | table, | |||
$ | fields, | |||
$ | join | |||
) | [private] |
Expand a list of pages to include items used in those pages.
Definition at line 371 of file SpecialExport.php.
References $dbr, $fields, $page, $result, $row, $title, Title::makeTitle(), Title::newFromText(), and wfGetDB().
Referenced by getImages(), getPageLinks(), and getTemplates().
SpecialExport::getPageLinks | ( | $ | inputPages, | |
$ | pageSet, | |||
$ | depth | |||
) | [private] |
Expand a list of pages to include pages linked to from that page.
Definition at line 344 of file SpecialExport.php.
References getLinks().
Referenced by doExport().
SpecialExport::getPagesFromCategory | ( | $ | title | ) | [private] |
SpecialExport::getPagesFromNamespace | ( | $ | nsindex | ) | [private] |
Definition at line 287 of file SpecialExport.php.
References $dbr, $n, $ns, $res, $row, $wgContLang, and wfGetDB().
Referenced by execute().
SpecialExport::getTemplates | ( | $ | inputPages, | |
$ | pageSet | |||
) | [private] |
Expand a list of pages to include templates used in those pages.
$inputPages | array, list of titles to look up | |
$pageSet | array, associative array indexed by titles for output |
Definition at line 315 of file SpecialExport.php.
References getLinks().
Referenced by doExport().
SpecialExport::userCanOverrideExportDepth | ( | ) | [private] |
Definition at line 179 of file SpecialExport.php.
References $wgUser.
Referenced by execute(), and validateLinkDepth().
SpecialExport::validateLinkDepth | ( | $ | depth | ) | [private] |
Validate link depth setting, if available.
Definition at line 325 of file SpecialExport.php.
References $wgExportMaxLinkDepth, and userCanOverrideExportDepth().
Referenced by execute().
SpecialExport::$curonly [private] |
Definition at line 26 of file SpecialExport.php.
SpecialExport::$doExport [private] |
Definition at line 26 of file SpecialExport.php.
SpecialExport::$images [private] |
Definition at line 27 of file SpecialExport.php.
SpecialExport::$pageLinkDepth [private] |
Definition at line 26 of file SpecialExport.php.
SpecialExport::$templates [private] |
Definition at line 26 of file SpecialExport.php.