MediaWiki  1.30.0
InputBoxHooks Class Reference

Static Public Member Functions

static onMediaWikiPerformAction ( $output, $article, $title, $user, $request, $wiki)
 <inputbox type="create..."> sends requests with action=edit, and possibly a &prefix=Foo. More...
 
static onSpecialPageBeforeExecute ( $special, $subPage)
 
static register (Parser &$parser)
 
static render ( $input, $args, Parser $parser)
 

Detailed Description

Definition at line 10 of file InputBox.hooks.php.

Member Function Documentation

◆ onMediaWikiPerformAction()

static InputBoxHooks::onMediaWikiPerformAction (   $output,
  $article,
  $title,
  $user,
  $request,
  $wiki 
)
static

<inputbox type="create..."> sends requests with action=edit, and possibly a &prefix=Foo.

So we pick that up here, munge prefix and title together, and redirect back out to the real page

Parameters
$outputOutputPage
$articleArticle
$titleTitle
$userUser
$requestWebRequest
$wikiMediaWiki
Returns
bool

Definition at line 61 of file InputBox.hooks.php.

References $output, $params, $request, $title, $wgScript, global, and wfAppendQuery().

◆ onSpecialPageBeforeExecute()

static InputBoxHooks::onSpecialPageBeforeExecute (   $special,
  $subPage 
)
static

Definition at line 21 of file InputBox.hooks.php.

References $request, $special, and $title.

◆ register()

static InputBoxHooks::register ( Parser &  $parser)
static

Definition at line 12 of file InputBox.hooks.php.

References $parser.

◆ render()

static InputBoxHooks::render (   $input,
  $args,
Parser  $parser 
)
static

Definition at line 38 of file InputBox.hooks.php.

References $input, and $parser.


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