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

Provides event handlers and entry points for the extension. More...

Static Public Member Functions

static onPageContentSave (&$wikiPage, &$user, &$content, &$summary, $isMinor, $isWatch, $section, &$flags, &$status)
 Event handler for the PageContentSave hook. More...
 
static onInternalParseBeforeLinks (\Parser &$parser, &$text)
 
static processPage (\Title $title,\RequestContext $context)
 Adds links to a single page. More...
 
static onGetDoubleUnderscoreIDs (array &$doubleUnderscoreIDs)
 
static onParserFirstCallInit (\Parser $parser)
 Handles the ParserFirstCallInit hook and adds the <autolink>/</noautolink> tags.
 
static doNoautolinksTag ($input, array $args,\Parser $parser,\PPFrame $frame)
 
static doAutolinksTag ($input, array $args,\Parser $parser,\PPFrame $frame)
 

Public Attributes

const URL = 'https://github.com/bovender/LinkTitles'
 

Detailed Description

Provides event handlers and entry points for the extension.

Definition at line 29 of file Extension.php.

Member Function Documentation

static LinkTitles\Extension::onPageContentSave ( $wikiPage,
$user,
$content,
$summary,
  $isMinor,
  $isWatch,
  $section,
$flags,
$status 
)
static

Event handler for the PageContentSave hook.

This handler is used if the parseOnEdit configuration option is set.

Definition at line 37 of file Extension.php.

static LinkTitles\Extension::processPage ( \Title  $title,
\RequestContext  $context 
)
static

Adds links to a single page.

Entry point for the SpecialLinkTitles class and the LinkTitlesJob class.

Parameters
\Title$titleTitle object.
\RequestContext$contextCurrent request context. If in doubt, call MediaWiki's RequestContext::getMain() to obtain such an object.
Returns
bool True if the page exists, false if the page does not exist

Definition at line 77 of file Extension.php.


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