MediaWiki  REL1_22
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)
 showline ($inpoint, $outpoint, $namespace=NS_MAIN, $hideRedirects=false)
 Show a line of "ABC to DEF" ranges of articles.
 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 $maxLineCount = 100
 Maximum number of pages to show on single index subpage.
int $maxPageLength = 70
 Maximum number of chars to show for an entry.
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 60 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 69 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 566 of file SpecialAllpages.php.

SpecialAllpages::getNamespaceKeyAndText ( ns,
text 
) [protected]
Parameters:
$nsInteger: the 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 543 of file SpecialAllpages.php.

Referenced by SpecialPrefixindex\showPrefixChunk().

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

HTML for the top form.

Parameters:
$namespaceInteger: a 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 110 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 345 of file SpecialAllpages.php.

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

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

Parameters:
string$inpointlower limit of pagenames
string$outpointupper limit of pagenames
$namespaceInteger (Default NS_MAIN)
bool$hideRedirectsdon't show redirects. Default: false
Returns:
string

Definition at line 304 of file SpecialAllpages.php.

SpecialAllpages::showToplevel ( namespace = NS_MAIN,
from = '',
to = '',
hideredirects = false 
)
Parameters:
$namespaceInteger (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 168 of file SpecialAllpages.php.


Member Data Documentation

int SpecialAllpages::$maxLineCount = 100 [protected]

Maximum number of pages to show on single index subpage.

$maxLineCount

Definition at line 41 of file SpecialAllpages.php.

int SpecialAllpages::$maxPageLength = 70 [protected]

Maximum number of chars to show for an entry.

$maxPageLength

Definition at line 47 of file SpecialAllpages.php.

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 53 of file SpecialAllpages.php.


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