SpecialExport Class Reference

Inherits SpecialPage.

List of all members.

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


Detailed Description

Definition at line 24 of file SpecialExport.php.


Constructor & Destructor Documentation

SpecialExport::__construct (  ) 

Definition at line 29 of file SpecialExport.php.


Member Function Documentation

SpecialExport::doExport ( page,
history,
list_authors 
) [private]

Do the actual page exporting.

Parameters:
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  ) 

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.

Parameters:
$inputPages array, list of titles to look up
$pageSet array, associative array indexed by titles for output
Returns:
array associative array index by titles

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.

Access:
private

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]

Definition at line 261 of file SpecialExport.php.

References $dbr, $n, $name, $ns, $res, $row, $title, $wgContLang, and wfGetDB().

Referenced by execute().

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.

Parameters:
$inputPages array, list of titles to look up
$pageSet array, associative array indexed by titles for output
Returns:
array associative array index by titles

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().


Member Data Documentation

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.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:47 2009 for MediaWiki by  doxygen 1.5.9