MediaWiki
REL1_19
|
A special page for unblocking users. More...
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 |
A special page for unblocking users.
Definition at line 27 of file SpecialUnblock.php.
Definition at line 33 of file SpecialUnblock.php.
SpecialUnblock::execute | ( | $ | par | ) |
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
$par | String 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().
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().
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().
static SpecialUnblock::processUnblock | ( | array $ | data, |
IContextSource $ | context | ||
) | [static] |
Process the form.
$data | Array |
$context | IContextSource |
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().
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().