LinkTitles extension for MediaWiki
Automatically add links to existing pages.
 All Classes Files Functions Variables Modules Pages
LinkTitles Class Reference

Central class of the extension. More...

Static Public Member Functions

static setup ()
 Setup function, hooks the extension's functions to MediaWiki events.
 
static onPageContentSave (&$wikiPage, &$user, &$content, &$summary, $isMinor, $isWatch, $section, &$flags, &$status)
 Event handler that is hooked to the PageContentSave event.
 
static onInternalParseBeforeLinks (Parser &$parser, &$text)
 Event handler that is hooked to the InternalParseBeforeLinks event. More...
 
static processPage ($title, RequestContext $context)
 Automatically processes a single page, given a $title Title object. More...
 
static onGetDoubleUnderscoreIDs (array &$doubleUnderscoreIDs)
 Adds the two magic words defined by this extension to the list of 'double-underscore' terms that are automatically removed before a page is displayed. More...
 

Detailed Description

Central class of the extension.

Sets up parser hooks. This class contains only static functions; do not instantiate.

Definition at line 31 of file LinkTitles.body.php.

Member Function Documentation

static LinkTitles::onGetDoubleUnderscoreIDs ( array &  $doubleUnderscoreIDs)
static

Adds the two magic words defined by this extension to the list of 'double-underscore' terms that are automatically removed before a page is displayed.

Parameters
$doubleUnderscoreIDsArray of magic word IDs.
Returns
true

Definition at line 286 of file LinkTitles.body.php.

static LinkTitles::onInternalParseBeforeLinks ( Parser &  $parser,
$text 
)
static

Event handler that is hooked to the InternalParseBeforeLinks event.

Parameters
Parser$parserParser that raised the event.
$textPreprocessed text of the page.

Definition at line 79 of file LinkTitles.body.php.

static LinkTitles::processPage (   $title,
RequestContext  $context 
)
static

Automatically processes a single page, given a $title Title object.

This function is called by the SpecialLinkTitles class and the LinkTitlesJob class.

Parameters
string$titlePage title.
RequestContext$contextCurrent context. If in doubt, call MediaWiki's RequestContext::getMain() to obtain such an object.
Returns
undefined

Definition at line 264 of file LinkTitles.body.php.


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