MediaWiki  REL1_24
SpecialAllPages Class Reference

Implements Special:Allpages. More...

Inheritance diagram for SpecialAllPages:
Collaboration diagram for SpecialAllPages:

List of all members.

Public Member Functions

 __construct ($name= 'Allpages')
 Constructor.
 execute ($par)
 Entry point : initialise variables and call subfunctions.
 namespaceForm ($namespace=NS_MAIN, $from= '', $to= '', $hideredirects=false)
 HTML for the top form.
 showChunk ($namespace=NS_MAIN, $from=false, $to=false, $hideredirects=false)
 showToplevel ($namespace=NS_MAIN, $from= '', $to= '', $hideredirects=false)

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'.
 getNamespaceKeyAndText ($ns, $text)

Protected Attributes

int $maxPerPage = 345
 Maximum number of pages to show on single subpage.
string $nsfromMsg = 'allpagesfrom'
 Determines, which message describes the input field 'nsfrom'.

Detailed Description

Implements Special:Allpages.

Definition at line 29 of file SpecialAllPages.php.


Constructor & Destructor Documentation

SpecialAllPages::__construct ( name = 'Allpages')

Constructor.

Parameters:
string$nameName of the special page, as seen in links and URLs (default: 'Allpages')

Definition at line 48 of file SpecialAllPages.php.


Member Function Documentation

Entry point : initialise variables and call subfunctions.

Parameters:
string$parBecomes "FOO" when called like Special:Allpages/FOO (default null)

Reimplemented from SpecialPage.

Reimplemented in SpecialPrefixindex.

Definition at line 57 of file SpecialAllPages.php.

Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Returns:
string
Since:
1.21

Reimplemented from SpecialPage.

Reimplemented in SpecialPrefixindex.

Definition at line 378 of file SpecialAllPages.php.

SpecialAllPages::getNamespaceKeyAndText ( ns,
text 
) [protected]
Parameters:
int$nsThe namespace of the article
string$textThe name of the article
Returns:
array( int namespace, string dbkey, string pagename ) or null on error

Definition at line 355 of file SpecialAllPages.php.

Referenced by SpecialPrefixindex\showPrefixChunk().

SpecialAllPages::namespaceForm ( namespace = NS_MAIN,
from = '',
to = '',
hideredirects = false 
)

HTML for the top form.

Parameters:
int$namespaceA namespace constant (default NS_MAIN).
string$fromDbKey we are starting listing at.
string$toDbKey we are ending listing at.
bool$hideredirectsDont show redirects (default false)
Returns:
string

Definition at line 98 of file SpecialAllPages.php.

SpecialAllPages::showChunk ( namespace = NS_MAIN,
from = false,
to = false,
hideredirects = false 
)
Parameters:
int$namespaceNamespace (Default NS_MAIN)
string$fromList all pages from this name (default false)
string$toList all pages to this name (default false)
bool$hideredirectsDont show redirects (default false)

Definition at line 170 of file SpecialAllPages.php.

SpecialAllPages::showToplevel ( namespace = NS_MAIN,
from = '',
to = '',
hideredirects = false 
)
Parameters:
int$namespace(default NS_MAIN)
string$fromList all pages from this name
string$toList all pages to this name
bool$hideredirectsDont show redirects (default false)

Definition at line 155 of file SpecialAllPages.php.


Member Data Documentation

int SpecialAllPages::$maxPerPage = 345 [protected]

Maximum number of pages to show on single subpage.

$maxPerPage

Definition at line 35 of file SpecialAllPages.php.

string SpecialAllPages::$nsfromMsg = 'allpagesfrom' [protected]

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

$nsfromMsg

Definition at line 41 of file SpecialAllPages.php.


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