MediaWiki  REL1_19
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

 listEnd ()
 listItem ($row, $nt, $notClose=false)
 listStart ($level)
 wlhLink (Title $target, $text)

Protected Attributes

 $limits = array( 20, 50, 100, 250, 500 )
 $opts
 $selfTitle
 $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:
$parString subpage string, if one was specified

Reimplemented from SpecialPage.

Definition at line 49 of file SpecialWhatlinkshere.php.

References $opts, $out, $wgQueryPageDefaultLimit, SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\getSkin(), SpecialPage\getTitle(), FormOptions\INTNULL, SpecialPage\msg(), Title\newFromURL(), SpecialPage\outputHeader(), SpecialPage\setHeaders(), showIndirectLinks(), and whatlinkshereForm().

Here is the call graph for this function:

Create filter panel.

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

Definition at line 435 of file SpecialWhatlinkshere.php.

References $changed, Xml\fieldset(), SpecialPage\getLanguage(), makeSelfLink(), wfMsg(), and wfMsgHtml().

Referenced by showIndirectLinks().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialWhatLinksHere::getPrevNext ( prevId,
nextId 
)

Definition at line 357 of file SpecialWhatlinkshere.php.

References $changed, $limit, SpecialPage\getLanguage(), makeSelfLink(), wfMessage(), and wfMsgHtml().

Referenced by showIndirectLinks().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 331 of file SpecialWhatlinkshere.php.

References Xml\closeElement().

Referenced by showIndirectLinks().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 281 of file SpecialWhatlinkshere.php.

References SpecialPage\getLanguage(), Linker\linkKnown(), Xml\openElement(), Xml\tags(), wfMsgExt(), wlhLink(), and Xml\wrapClass().

Referenced by showIndirectLinks().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialWhatLinksHere::listStart ( level) [protected]

Definition at line 277 of file SpecialWhatlinkshere.php.

References Xml\openElement().

Referenced by showIndirectLinks().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialWhatLinksHere::makeSelfLink ( text,
query 
)

Definition at line 348 of file SpecialWhatlinkshere.php.

References Linker\linkKnown().

Referenced by getFilterPanel(), and getPrevNext().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialWhatLinksHere::showIndirectLinks ( level,
target,
limit,
from = 0,
back = 0 
)
Parameters:
$levelint Recursion level
$targetTitle Target title
$limitint Number of entries to display
$fromTitle Display from this article ID
$backTitle Display from this article ID at backwards scrolling

Definition at line 103 of file SpecialWhatlinkshere.php.

References $dbr, $limit, $options, $out, $rows, $target, $wgMaxRedirectLinksRetrieved, Xml\closeElement(), getFilterPanel(), SpecialPage\getOutput(), getPrevNext(), listEnd(), listItem(), listStart(), Title\makeTitle(), wfGetDB(), and whatlinkshereForm().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 387 of file SpecialWhatlinkshere.php.

References $f, $target, $wgScript, Xml\closeElement(), Xml\fieldset(), SpecialPage\getTitle(), Html\hidden(), Xml\inputLabel(), Xml\label(), Xml\namespaceSelector(), Xml\openElement(), Xml\submitButton(), and wfMsg().

Referenced by execute(), and showIndirectLinks().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 335 of file SpecialWhatlinkshere.php.

References $title, Title\getPrefixedText(), SpecialPage\getTitle(), and Linker\linkKnown().

Referenced by listItem().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 43 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::$opts [protected]

Definition at line 34 of file SpecialWhatlinkshere.php.

Referenced by execute().

SpecialWhatLinksHere::$selfTitle [protected]

Definition at line 36 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::$target [protected]

Definition at line 41 of file SpecialWhatlinkshere.php.

Referenced by showIndirectLinks(), and whatlinkshereForm().


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