MediaWiki  REL1_19
SpecialUnblock Class Reference

A special page for unblocking users. More...

Inheritance diagram for SpecialUnblock:
Collaboration diagram for SpecialUnblock:

List of all members.

Public Member Functions

 __construct ()
 execute ($par)
 Default execute method Checks user permissions, calls the function given in mFunction.

Static Public Member Functions

static processUIUnblock (array $data, HTMLForm $form)
 Submit callback for an HTMLForm object.
static processUnblock (array $data, IContextSource $context)
 Process the form.

Protected Member Functions

 getFields ()

Protected Attributes

 $block
 $target
 $type

Detailed Description

A special page for unblocking users.

Definition at line 27 of file SpecialUnblock.php.


Constructor & Destructor Documentation

Definition at line 33 of file SpecialUnblock.php.


Member Function Documentation

Default execute method Checks user permissions, calls the function given in mFunction.

This must be overridden by subclasses; it will be made abstract in a future version

Parameters:
$parString subpage string, if one was specified

Reimplemented from SpecialPage.

Definition at line 37 of file SpecialUnblock.php.

References $out, SpecialPage\checkPermissions(), SpecialPage\checkReadOnly(), SpecialPage\getContext(), getFields(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialBlock\getTargetAndType(), SpecialPage\msg(), Block\newFromTarget(), SpecialPage\outputHeader(), SpecialPage\setHeaders(), Block\TYPE_AUTO, Block\TYPE_ID, Block\TYPE_IP, Block\TYPE_RANGE, Block\TYPE_USER, wfMsg(), and wfMsgExt().

Here is the call graph for this function:

SpecialUnblock::getFields ( ) [protected]

Definition at line 74 of file SpecialUnblock.php.

References $target, $type, Linker\link(), Block\TYPE_AUTO, Block\TYPE_IP, Block\TYPE_RANGE, and Block\TYPE_USER.

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

static SpecialUnblock::processUIUnblock ( array $  data,
HTMLForm form 
) [static]

Submit callback for an HTMLForm object.

Definition at line 140 of file SpecialUnblock.php.

References ContextSource\getContext(), and processUnblock().

Here is the call graph for this function:

static SpecialUnblock::processUnblock ( array $  data,
IContextSource context 
) [static]

Process the form.

Parameters:
$dataArray
$contextIContextSource
Returns:
Array( Array(message key, parameters) ) on failure, True on success

Definition at line 151 of file SpecialUnblock.php.

References $block, $page, $target, $type, SpecialBlock\checkUnblockSelf(), SpecialBlock\getTargetAndType(), IContextSource\getUser(), User\idFromName(), Title\makeTitle(), Block\newFromTarget(), Block\TYPE_AUTO, Block\TYPE_IP, Block\TYPE_RANGE, and RevisionDeleteUser\unsuppressUserName().

Referenced by ApiUnblock\execute(), and processUIUnblock().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

SpecialUnblock::$block [protected]

Definition at line 31 of file SpecialUnblock.php.

Referenced by processUnblock().

SpecialUnblock::$target [protected]

Definition at line 29 of file SpecialUnblock.php.

Referenced by getFields(), and processUnblock().

SpecialUnblock::$type [protected]

Definition at line 30 of file SpecialUnblock.php.

Referenced by getFields(), and processUnblock().


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