SpecialWhatLinksHere Class Reference
[SpecialPage]

implements Special:Whatlinkshere More...

Inherits SpecialPage.

List of all members.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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


Detailed Description

implements Special:Whatlinkshere

Definition at line 13 of file SpecialWhatlinkshere.php.


Constructor & Destructor Documentation

SpecialWhatLinksHere::__construct (  ) 

Definition at line 23 of file SpecialWhatlinkshere.php.

References $wgUser.


Member Function Documentation

SpecialWhatLinksHere::execute ( par  ) 

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

This may be overridden by subclasses.

Reimplemented from SpecialPage.

Definition at line 29 of file SpecialWhatlinkshere.php.

References $opts, $wgOut, $wgRequest, SpecialPage::getTitleFor(), FormOptions::INTNULL, Title::newFromURL(), SpecialPage::setHeaders(), showIndirectLinks(), wfMsg(), and whatlinkshereForm().

SpecialWhatLinksHere::getFilterPanel (  ) 

Create filter panel.

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

Definition at line 404 of file SpecialWhatlinkshere.php.

References $changed, $msg, $wgLang, Xml::fieldset(), makeSelfLink(), wfMsg(), and wfMsgHtml().

Referenced by showIndirectLinks().

SpecialWhatLinksHere::getPrevNext ( prevId,
nextId 
)

Definition at line 325 of file SpecialWhatlinkshere.php.

References $changed, $wgLang, makeSelfLink(), wfMsgExt(), and wfMsgHtml().

Referenced by showIndirectLinks().

SpecialWhatLinksHere::listEnd (  )  [protected]

Definition at line 299 of file SpecialWhatlinkshere.php.

References Xml::closeElement().

Referenced by showIndirectLinks().

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

SpecialWhatLinksHere::listStart (  )  [protected]

Definition at line 247 of file SpecialWhatlinkshere.php.

References Xml::openElement().

Referenced by showIndirectLinks().

SpecialWhatLinksHere::makeSelfLink ( text,
query 
)

Definition at line 316 of file SpecialWhatlinkshere.php.

Referenced by getFilterPanel(), and getPrevNext().

SpecialWhatLinksHere::showIndirectLinks ( level,
target,
limit,
from = 0,
back = 0 
)

Parameters:
$level int Recursion level
$target Title Target title
$limit int Number of entries to display
$from Title Display from this article ID
$back Title Display from this article ID at backwards scrolling
Access:
private

Definition at line 80 of file SpecialWhatlinkshere.php.

References $dbr, $options, $rows, $target, $wgMaxRedirectLinksRetrieved, $wgOut, Xml::closeElement(), getFilterPanel(), getPrevNext(), listEnd(), listItem(), listStart(), Title::makeTitle(), wfGetDB(), and whatlinkshereForm().

Referenced by execute().

SpecialWhatLinksHere::whatlinkshereForm (  ) 

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

Definition at line 303 of file SpecialWhatlinkshere.php.

References $title, Title::getPrefixedText(), and SpecialPage::getTitleFor().

Referenced by listItem().


Member Data Documentation

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

Definition at line 21 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::$opts [protected]

Definition at line 16 of file SpecialWhatlinkshere.php.

Referenced by execute().

SpecialWhatLinksHere::$selfTitle [protected]

Definition at line 16 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::$skin [protected]

Definition at line 19 of file SpecialWhatlinkshere.php.

SpecialWhatLinksHere::$target [protected]

Definition at line 16 of file SpecialWhatlinkshere.php.

Referenced by showIndirectLinks(), and whatlinkshereForm().


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

Generated on Sat Apr 30 22:57:50 2011 for MediaWiki by  doxygen 1.5.9