MediaWiki
REL1_24
|
A special page that allows users to export pages in a XML file. More...
Public Member Functions | |
__construct () | |
execute ($par) | |
Default execute method Checks user permissions. | |
Public Attributes | |
$doExport | |
$pageLinkDepth | |
$templates | |
Protected Member Functions | |
getGroupName () | |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. | |
Private Member Functions | |
doExport ($page, $history, $list_authors, $exportall) | |
Do the actual page exporting. | |
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. | |
getPageLinks ($inputPages, $pageSet, $depth) | |
Expand a list of pages to include pages linked to from that page. | |
getPagesFromCategory ($title) | |
getPagesFromNamespace ($nsindex) | |
getTemplates ($inputPages, $pageSet) | |
Expand a list of pages to include templates used in those pages. | |
userCanOverrideExportDepth () | |
validateLinkDepth ($depth) | |
Validate link depth setting, if available. | |
Private Attributes | |
$curonly | |
$images |
A special page that allows users to export pages in a XML file.
Definition at line 31 of file SpecialExport.php.
Definition at line 35 of file SpecialExport.php.
SpecialExport::doExport | ( | $ | page, |
$ | history, | ||
$ | list_authors, | ||
$ | exportall | ||
) | [private] |
Do the actual page exporting.
string | $page | User input on what page(s) to export |
int | $history | One of the WikiExporter history export constants |
bool | $list_authors | Whether to add distinct author list (when not returning full history) |
bool | $exportall | Whether to export everything |
Definition at line 309 of file SpecialExport.php.
References $lb, $title, array(), as, WikiExporter\BUFFER, WikiExporter\CURRENT, WikiExporter\FULL, getPageLinks(), getTemplates(), Title\newFromText(), WikiExporter\STREAM, wfGetDB(), wfGetLBFactory(), wfRestoreWarnings(), and wfSuppressWarnings().
Referenced by execute().
SpecialExport::execute | ( | $ | subPage | ) |
Default execute method Checks user permissions.
This must be overridden by subclasses; it will be made abstract in a future version
string | null | $subPage |
Reimplemented from SpecialPage.
Definition at line 39 of file SpecialExport.php.
References $dir, $form, $limit, $out, $t, array(), Xml\checkLabel(), Xml\closeElement(), WikiExporter\CURRENT, doExport(), Xml\element(), false, WikiExporter\FULL, SpecialPage\getConfig(), SpecialPage\getOutput(), getPagesFromCategory(), getPagesFromNamespace(), SpecialPage\getPageTitle(), SpecialPage\getRequest(), Xml\inputLabel(), Title\makeTitleSafe(), SpecialPage\msg(), Html\namespaceSelector(), Xml\openElement(), SpecialPage\outputHeader(), SpecialPage\setHeaders(), Xml\submitButton(), text, Linker\tooltipAndAccesskeyAttribs(), true, userCanOverrideExportDepth(), validateLinkDepth(), wfResetOutputBuffers(), wfTimestamp(), and wfTimestampNow().
SpecialExport::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 590 of file SpecialExport.php.
SpecialExport::getImages | ( | $ | inputPages, |
$ | pageSet | ||
) | [private] |
Expand a list of pages to include images used in those pages.
array | $inputPages | List of titles to look up |
array | $pageSet | Associative array indexed by titles for output |
Definition at line 538 of file SpecialExport.php.
References array(), and getLinks().
SpecialExport::getLinks | ( | $ | inputPages, |
$ | pageSet, | ||
$ | table, | ||
$ | fields, | ||
$ | join | ||
) | [private] |
Expand a list of pages to include items used in those pages.
array | $inputPages | Array of page titles |
array | $pageSet | |
string | $table | |
array | $fields | Array of field names |
array | $join |
Definition at line 557 of file SpecialExport.php.
References $dbr, $result, $title, array(), as, 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.
array | $inputPages | |
array | $pageSet | |
int | $depth |
Definition at line 515 of file SpecialExport.php.
References array(), and getLinks().
Referenced by doExport().
SpecialExport::getPagesFromCategory | ( | $ | title | ) | [private] |
SpecialExport::getPagesFromNamespace | ( | $ | nsindex | ) | [private] |
SpecialExport::getTemplates | ( | $ | inputPages, |
$ | pageSet | ||
) | [private] |
Expand a list of pages to include templates used in those pages.
array | $inputPages | List of titles to look up |
array | $pageSet | Associative array indexed by titles for output |
Definition at line 474 of file SpecialExport.php.
References array(), and getLinks().
Referenced by doExport().
SpecialExport::userCanOverrideExportDepth | ( | ) | [private] |
Definition at line 296 of file SpecialExport.php.
References SpecialPage\getUser().
Referenced by execute(), and validateLinkDepth().
SpecialExport::validateLinkDepth | ( | $ | depth | ) | [private] |
Validate link depth setting, if available.
int | $depth |
Definition at line 487 of file SpecialExport.php.
References SpecialPage\getConfig(), and userCanOverrideExportDepth().
Referenced by execute().
SpecialExport::$curonly [private] |
Definition at line 32 of file SpecialExport.php.
SpecialExport::$doExport |
Definition at line 32 of file SpecialExport.php.
SpecialExport::$images [private] |
Definition at line 33 of file SpecialExport.php.
SpecialExport::$pageLinkDepth |
Definition at line 32 of file SpecialExport.php.
SpecialExport::$templates |
Definition at line 32 of file SpecialExport.php.