MediaWiki REL1_33
CiteThisPageHooks Class Reference

Static Public Member Functions

static onBaseTemplateToolbox (BaseTemplate $baseTemplate, array &$toolbox)
 
static onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink (&$skintemplate, &$nav_urls, &$oldid, &$revid)
 

Static Private Member Functions

static shouldAddLink (Title $title)
 Checks, if the "cite this page" link should be added.
 

Detailed Description

Definition at line 3 of file CiteThisPageHooks.php.

Member Function Documentation

◆ onBaseTemplateToolbox()

static CiteThisPageHooks::onBaseTemplateToolbox ( BaseTemplate $baseTemplate,
array & $toolbox )
static
Parameters
BaseTemplate$baseTemplate
array&$toolbox
Returns
bool

Definition at line 55 of file CiteThisPageHooks.php.

References and().

◆ onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink()

static CiteThisPageHooks::onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink ( & $skintemplate,
& $nav_urls,
& $oldid,
& $revid )
static
Parameters
SkinTemplate&$skintemplate
array&$nav_urls
int&$oldid
int&$revid
Returns
bool

Definition at line 12 of file CiteThisPageHooks.php.

◆ shouldAddLink()

static CiteThisPageHooks::shouldAddLink ( Title $title)
staticprivate

Checks, if the "cite this page" link should be added.

By default the link is added to all pages in the main namespace, and additionally to pages, which are in one of the namespaces named in $wgCiteThisPageAddiotionalNamespaces.

Parameters
Title$title
Returns
bool

Definition at line 40 of file CiteThisPageHooks.php.

References and().


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