MediaWiki REL1_34
InputBoxHooks Class Reference

InputBox hooks. More...

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.
 
static onSpecialPageBeforeExecute ( $special, $subPage)
 Prepend prefix to wpNewTitle if necessary.
 
static register (Parser &$parser)
 Initialization.
 
static render ( $input, $args, Parser $parser)
 Render the input box.
 

Detailed Description

InputBox hooks.

Definition at line 12 of file InputBoxHooks.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
OutputPage$output
Article$article
Title$title
User$user
WebRequest$request
MediaWiki$wiki
Returns
bool

Definition at line 79 of file InputBoxHooks.php.

References $title, $wgScript, and wfAppendQuery().

◆ onSpecialPageBeforeExecute()

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

Prepend prefix to wpNewTitle if necessary.

Parameters
SpecialPage$special
string$subPage
Returns
true

Definition at line 33 of file InputBoxHooks.php.

References $title.

◆ register()

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

Initialization.

Parameters
Parser&$parser
Returns
true

Definition at line 19 of file InputBoxHooks.php.

◆ render()

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

Render the input box.

Parameters
string$input
array$args
Parser$parser
Returns
string

Definition at line 56 of file InputBoxHooks.php.

References Parser\replaceVariables().


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