Public Member Functions | |
IPUnblockForm ($ip, $id, $reason) | |
showForm ($err) | |
Generates the unblock form. | |
doSubmit () | |
showList ($msg) | |
searchForm () | |
makeOptionsLink ($title, $override, $options, $active=false) | |
Makes change an option link which carries all the other options. | |
formatRow ($block) | |
Callback function to output a block. | |
Static Public Member Functions | |
static | doUnblock (&$id, &$ip, &$reason, &$range=null, $blocker=null) |
Backend code for unblocking. | |
Public Attributes | |
$ip | |
$reason | |
$id | |
const | UNBLOCK_SUCCESS = 0 |
const | UNBLOCK_NO_SUCH_ID = 1 |
const | UNBLOCK_USER_NOT_BLOCKED = 2 |
const | UNBLOCK_BLOCKED_AS_RANGE = 3 |
const | UNBLOCK_UNKNOWNERR = 4 |
Definition at line 70 of file SpecialIpblocklist.php.
IPUnblockForm::doSubmit | ( | ) |
Definition at line 221 of file SpecialIpblocklist.php.
References $key, $success, $wgOut, $wgUser, doUnblock(), SpecialPage::getTitleFor(), showForm(), and wfMsgReal().
static IPUnblockForm::doUnblock | ( | &$ | id, | |
&$ | ip, | |||
&$ | reason, | |||
&$ | range = null , |
|||
$ | blocker = null | |||
) | [static] |
Backend code for unblocking.
doSubmit() wraps around this. $range is only used when UNBLOCK_BLOCKED_AS_RANGE is returned, in which case it contains the range $ip is part of.
Definition at line 165 of file SpecialIpblocklist.php.
References $id, $ip, $reason, Title::makeTitle(), Block::newFromDB(), Block::newFromID(), and IPBlockForm::unsuppressUserName().
Referenced by doSubmit(), and ApiUnblock::execute().
IPUnblockForm::formatRow | ( | $ | block | ) |
Callback function to output a block.
Definition at line 377 of file SpecialIpblocklist.php.
References $key, $keys, $msg, $s, $wgBlockAllowsUTEdit, $wgLang, $wgUser, Block::formatExpiry(), SpecialPage::getTitleFor(), Linker::TOOL_LINKS_NOBLOCK, wfMsg(), wfMsgHtml(), wfMsgReplaceArgs(), wfProfileIn(), and wfProfileOut().
IPUnblockForm::IPUnblockForm | ( | $ | ip, | |
$ | id, | |||
$ | reason | |||
) |
IPUnblockForm::makeOptionsLink | ( | $ | title, | |
$ | override, | |||
$ | options, | |||
$ | active = false | |||
) |
Makes change an option link which carries all the other options.
$title | see Title | |
$override | ||
$options |
Definition at line 365 of file SpecialIpblocklist.php.
References $options, $title, $wgUser, and SpecialPage::getTitleFor().
Referenced by searchForm().
IPUnblockForm::searchForm | ( | ) |
Definition at line 319 of file SpecialIpblocklist.php.
References $wgLang, $wgRequest, $wgScript, $wgTitle, Xml::closeElement(), Xml::element(), Xml::hidden(), Xml::inputLabel(), makeOptionsLink(), Xml::openElement(), Xml::submitButton(), Xml::tags(), wfMsg(), and wfMsgHtml().
Referenced by showList().
IPUnblockForm::showForm | ( | $ | err | ) |
Generates the unblock form.
$err | string: error message |
Definition at line 88 of file SpecialIpblocklist.php.
References $action, $wgOut, $wgSysopUserBans, $wgUser, Xml::closeElement(), Xml::element(), SpecialPage::getTitleFor(), Xml::hidden(), Xml::input(), Xml::label(), Block::newFromID(), Xml::openElement(), Xml::submitButton(), Xml::tags(), wfMsg(), and wfMsgHtml().
Referenced by doSubmit().
IPUnblockForm::showList | ( | $ | msg | ) |
Definition at line 236 of file SpecialIpblocklist.php.
References $conds, $dbr, $id, $msg, $user, $wgOut, $wgUser, IP::isIPAddress(), User::newFromName(), Block::normaliseRange(), Block::purgeExpired(), IP::sanitizeIP(), searchForm(), Xml::tags(), IP::toHex(), wfGetDB(), and wfMsg().
IPUnblockForm::$id |
Definition at line 71 of file SpecialIpblocklist.php.
Referenced by doUnblock(), IPUnblockForm(), and showList().
IPUnblockForm::$ip |
Definition at line 71 of file SpecialIpblocklist.php.
Referenced by doUnblock(), and IPUnblockForm().
IPUnblockForm::$reason |
Definition at line 71 of file SpecialIpblocklist.php.
Referenced by doUnblock(), and IPUnblockForm().
const IPUnblockForm::UNBLOCK_BLOCKED_AS_RANGE = 3 |
Definition at line 155 of file SpecialIpblocklist.php.
const IPUnblockForm::UNBLOCK_NO_SUCH_ID = 1 |
Definition at line 153 of file SpecialIpblocklist.php.
const IPUnblockForm::UNBLOCK_SUCCESS = 0 |
Definition at line 152 of file SpecialIpblocklist.php.
const IPUnblockForm::UNBLOCK_UNKNOWNERR = 4 |
Definition at line 156 of file SpecialIpblocklist.php.
const IPUnblockForm::UNBLOCK_USER_NOT_BLOCKED = 2 |
Definition at line 154 of file SpecialIpblocklist.php.