MediaWiki  REL1_22
SpecialWhatLinksHere Class Reference

Implements Special:Whatlinkshere. More...

Inheritance diagram for SpecialWhatLinksHere:
Collaboration diagram for SpecialWhatLinksHere:

List of all members.

Public Member Functions

 __construct ()
 execute ($par)
 Default execute method Checks user permissions, calls the function given in mFunction.
 getFilterPanel ()
 Create filter panel.
 getPrevNext ($prevId, $nextId)
 makeSelfLink ($text, $query)
 showIndirectLinks ($level, $target, $limit, $from=0, $back=0)
 whatlinkshereForm ()

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'.
 listEnd ()
 listItem ($row, $nt, $notClose=false)
 listStart ($level)
 wlhLink (Title $target, $text)

Protected Attributes

 $limits = array( 20, 50, 100, 250, 500 )
FormOptions $opts
 $selfTitle
Title $target

Detailed Description

Implements Special:Whatlinkshere.

Definition at line 29 of file SpecialWhatlinkshere.php.


Constructor & Destructor Documentation


Member Function Documentation

Default execute method Checks user permissions, calls the function given in mFunction.

This must be overridden by subclasses; it will be made abstract in a future version

Parameters:
$subPagestring|null

Reimplemented from SpecialPage.

Definition at line 47 of file SpecialWhatlinkshere.php.

Create filter panel.

Returns:
string HTML fieldset and filter panel with the show/hide links

Definition at line 450 of file SpecialWhatlinkshere.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.

Definition at line 475 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::getPrevNext ( prevId,
nextId 
)

Definition at line 363 of file SpecialWhatlinkshere.php.

Definition at line 336 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::listItem ( row,
nt,
notClose = false 
) [protected]

Definition at line 283 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::listStart ( level) [protected]

Definition at line 279 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::makeSelfLink ( text,
query 
)

Definition at line 354 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::showIndirectLinks ( level,
target,
limit,
from = 0,
back = 0 
)
Parameters:
int$levelRecursion level
Title$targetTarget title
int$limitNumber of entries to display
int$fromDisplay from this article ID (default: 0)
int$backDisplay from this article ID at backwards scrolling (default: 0)

Definition at line 101 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::wlhLink ( Title target,
text 
) [protected]

Definition at line 340 of file SpecialWhatlinkshere.php.


Member Data Documentation

SpecialWhatLinksHere::$limits = array( 20, 50, 100, 250, 500 ) [protected]

Definition at line 41 of file SpecialWhatlinkshere.php.

FormOptions SpecialWhatLinksHere::$opts [protected]

Definition at line 33 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::$selfTitle [protected]

Definition at line 35 of file SpecialWhatlinkshere.php.

Title SpecialWhatLinksHere::$target [protected]

Definition at line 39 of file SpecialWhatlinkshere.php.


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