SpecialAllpages Class Reference
[SpecialPage]

Implements Special:Allpages. More...

Inherits IncludableSpecialPage.

Inherited by SpecialPrefixindex.

List of all members.

Public Member Functions

 __construct ($name= 'Allpages')
 execute ($par)
 Entry point : initialise variables and call subfunctions.
 namespaceForm ($namespace=NS_MAIN, $from= '', $to= '')
 HTML for the top form.
 showToplevel ($namespace=NS_MAIN, $from= '', $to= '')
 showline ($inpoint, $outpoint, $namespace=NS_MAIN)
 Show a line of "ABC to DEF" ranges of articles.
 showChunk ($namespace=NS_MAIN, $from=false, $to=false)

Static Public Member Functions

 getNamespaceKeyAndText ($ns, $text)

Protected Attributes

 $maxPerPage = 345
 Maximum number of pages to show on single subpage.
 $maxLineCount = 200
 Maximum number of pages to show on single index subpage.
 $maxPageLength = 70
 Maximum number of chars to show for an entry.
 $nsfromMsg = 'allpagesfrom'
 Determines, which message describes the input field 'nsfrom'.


Detailed Description

Implements Special:Allpages.

Definition at line 7 of file SpecialAllpages.php.


Constructor & Destructor Documentation

SpecialAllpages::__construct ( name = 'Allpages'  ) 

Definition at line 29 of file SpecialAllpages.php.

References $name.


Member Function Documentation

SpecialAllpages::execute ( par  ) 

Entry point : initialise variables and call subfunctions.

Parameters:
$par String: becomes "FOO" when called like Special:Allpages/FOO (default NULL)
$specialPage See the SpecialPage object.

Reimplemented from SpecialPage.

Reimplemented in SpecialPrefixindex.

Definition at line 38 of file SpecialAllpages.php.

References $wgContLang, $wgOut, $wgRequest, SpecialPage::outputHeader(), SpecialPage::setHeaders(), showChunk(), showToplevel(), and wfMsg().

SpecialAllpages::getNamespaceKeyAndText ( ns,
text 
) [static]

Parameters:
int $ns the namespace of the article
string $text the name of the article
Returns:
array( int namespace, string dbkey, string pagename ) or NULL on error (sort of)
Access:
private

Definition at line 425 of file SpecialAllpages.php.

References $ns, $t, $text, and Title::makeTitleSafe().

Referenced by showChunk(), and SpecialPrefixindex::showPrefixChunk().

SpecialAllpages::namespaceForm ( namespace = NS_MAIN,
from = '',
to = '' 
)

HTML for the top form.

Parameters:
integer $namespace A namespace constant (default NS_MAIN).
string $from dbKey we are starting listing at.
string $to dbKey we are ending listing at.

Definition at line 71 of file SpecialAllpages.php.

References $out, $t, $wgScript, Xml::closeElement(), Xml::element(), SpecialPage::getTitle(), Xml::hidden(), Xml::input(), Xml::label(), Xml::namespaceSelector(), Xml::openElement(), Xml::submitButton(), and wfMsg().

Referenced by showChunk(), and showToplevel().

SpecialAllpages::showChunk ( namespace = NS_MAIN,
from = false,
to = false 
)

Parameters:
integer $namespace (Default NS_MAIN)
string $from list all pages from this name (default FALSE)
string $to list all pages to this name (default FALSE)

Definition at line 259 of file SpecialAllpages.php.

References $conds, $dbr, $n, $options, $out, $res, $s, $self, $t, $wgContLang, $wgLang, $wgOut, $wgUser, getNamespaceKeyAndText(), SpecialPage::getTitle(), SpecialPage::including(), Title::makeTitle(), namespaceForm(), wfGetDB(), wfMsgExt(), wfMsgHtml(), and wfMsgWikiHtml().

Referenced by execute(), and showToplevel().

SpecialAllpages::showline ( inpoint,
outpoint,
namespace = NS_MAIN 
)

Show a line of "ABC to DEF" ranges of articles.

Parameters:
string $inpoint Lower limit of pagenames
string $outpout Upper limit of pagenames
integer $namespace (Default NS_MAIN)

Definition at line 234 of file SpecialAllpages.php.

References $out, $wgContLang, SpecialPage::getTitle(), and wfMsgHtml().

Referenced by showToplevel().

SpecialAllpages::showToplevel ( namespace = NS_MAIN,
from = '',
to = '' 
)


Member Data Documentation

SpecialAllpages::$maxLineCount = 200 [protected]

Maximum number of pages to show on single index subpage.

Definition at line 17 of file SpecialAllpages.php.

SpecialAllpages::$maxPageLength = 70 [protected]

Maximum number of chars to show for an entry.

Definition at line 22 of file SpecialAllpages.php.

SpecialAllpages::$maxPerPage = 345 [protected]

Maximum number of pages to show on single subpage.

Definition at line 12 of file SpecialAllpages.php.

SpecialAllpages::$nsfromMsg = 'allpagesfrom' [protected]

Determines, which message describes the input field 'nsfrom'.

Definition at line 27 of file SpecialAllpages.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