MediaWiki  REL1_19
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')
 execute ($par)
 Entry point : initialise variables and call subfunctions.
 namespaceForm ($namespace=NS_MAIN, $from= '', $to= '')
 HTML for the top form.
 showChunk ($namespace=NS_MAIN, $from=false, $to=false)
 showline ($inpoint, $outpoint, $namespace=NS_MAIN)
 Show a line of "ABC to DEF" ranges of articles.
 showToplevel ($namespace=NS_MAIN, $from= '', $to= '')

Protected Member Functions

 getNamespaceKeyAndText ($ns, $text)

Protected Attributes

 $maxLineCount = 100
 Maximum number of pages to show on single index subpage.
 $maxPageLength = 70
 Maximum number of chars to show for an entry.
 $maxPerPage = 345
 Maximum number of pages to show on single subpage.
 $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')

Definition at line 51 of file SpecialAllpages.php.


Member Function Documentation

Entry point : initialise variables and call subfunctions.

Parameters:
$parString: becomes "FOO" when called like Special:Allpages/FOO (default NULL)

Reimplemented from SpecialPage.

Reimplemented in SpecialPrefixindex.

Definition at line 60 of file SpecialAllpages.php.

References $out, $wgContLang, SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\msg(), SpecialPage\outputHeader(), SpecialPage\setHeaders(), showChunk(), and showToplevel().

Here is the call graph for this function:

SpecialAllpages::getNamespaceKeyAndText ( ns,
text 
) [protected]
Parameters:
$nsInteger: the namespace of the article
$textString: the name of the article
Returns:
array( int namespace, string dbkey, string pagename ) or NULL on error

Definition at line 474 of file SpecialAllpages.php.

References $t, and Title\makeTitleSafe().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

HTML for the top form.

Parameters:
$namespaceInteger: a namespace constant (default NS_MAIN).
$fromString: dbKey we are starting listing at.
$toString: dbKey we are ending listing at.

Definition at line 99 of file SpecialAllpages.php.

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

Referenced by showChunk(), and showToplevel().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialAllpages::showChunk ( namespace = NS_MAIN,
from = false,
to = false 
)
Parameters:
$namespaceInteger (Default NS_MAIN)
$fromString: list all pages from this name (default FALSE)
$toString: list all pages to this name (default FALSE)

Definition at line 298 of file SpecialAllpages.php.

References $dbr, $n, $options, $out, $output, $res, $self, $t, $wgContLang, Xml\closeElement(), Html\element(), SpecialPage\getLanguage(), getNamespaceKeyAndText(), SpecialPage\getOutput(), SpecialPage\getTitle(), SpecialPage\including(), Linker\link(), Linker\linkKnown(), Title\makeTitle(), SpecialPage\msg(), namespaceForm(), Title\newFromRow(), Xml\openElement(), Html\rawElement(), and wfGetDB().

Referenced by execute(), and showToplevel().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Parameters:
$inpointString: lower limit of pagenames
$outpointString: upper limit of pagenames
$namespaceInteger (Default NS_MAIN)

Definition at line 274 of file SpecialAllpages.php.

References $out, $wgContLang, SpecialPage\getTitle(), and SpecialPage\msg().

Referenced by showToplevel().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialAllpages::showToplevel ( namespace = NS_MAIN,
from = '',
to = '' 
)
Parameters:
$namespaceInteger (default NS_MAIN)
$fromString: list all pages from this name
$toString: list all pages to this name

Definition at line 149 of file SpecialAllpages.php.

References $count, $dbr, $lines, $options, $out, $output, $res, $wgMemc, Xml\closeElement(), false, SpecialPage\getOutput(), SpecialPage\getTitle(), SpecialPage\including(), Linker\link(), Title\makeTitleSafe(), SpecialPage\msg(), namespaceForm(), Xml\openElement(), showChunk(), showline(), wfGetDB(), and wfMemcKey().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

SpecialAllpages::$maxLineCount = 100 [protected]

Maximum number of pages to show on single index subpage.

Definition at line 39 of file SpecialAllpages.php.

SpecialAllpages::$maxPageLength = 70 [protected]

Maximum number of chars to show for an entry.

Definition at line 44 of file SpecialAllpages.php.

SpecialAllpages::$maxPerPage = 345 [protected]

Maximum number of pages to show on single subpage.

Definition at line 34 of file SpecialAllpages.php.

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

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

Definition at line 49 of file SpecialAllpages.php.


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