Public Member Functions | |
| IPBlockForm ($par) | |
| showForm ($err) | |
| doBlock (&$userId=null, &$expiry=null) | |
| Backend block code. | |
| doSubmit () | |
| UI entry point for blocking Wraps around doBlock(). | |
| showSuccess () | |
| showLogFragment ($out, $title) | |
Static Public Member Functions | |
| static | suppressUserName ($name, $userId) |
| static | unsuppressUserName ($name, $userId) |
| static | doMassUserBlock ($users, $reason= '', $tag= '', $talkTag= '') |
| Block a list of selected users. | |
Public Attributes | |
| $BlockAddress | |
| $BlockExpiry | |
| $BlockReason | |
| const | HIDEUSER_CONTRIBLIMIT = 1000 |
Private Member Functions | |
| blockLogFlags () | |
| Return a comma-delimited list of "flags" to be passed to the log reader for this block, to provide more information in the logs. | |
| getConvenienceLinks () | |
| Builds unblock and block list links. | |
| getContribsLink ($skin) | |
| Build a convenient link to a user or IP's contribs form. | |
| getUnblockLink ($skin) | |
| Build a convenient link to unblock the given username or IP address, if available; otherwise link to a blank unblock form. | |
| getBlockListLink ($skin) | |
| Build a convenience link to the block list. | |
Static Private Member Functions | |
| static | setUsernameBitfields ($name, $userId, $op) |
Definition at line 45 of file SpecialBlockip.php.
| IPBlockForm::blockLogFlags | ( | ) | [private] |
Return a comma-delimited list of "flags" to be passed to the log reader for this block, to provide more information in the logs.
Definition at line 591 of file SpecialBlockip.php.
References $flags, $wgBlockAllowsUTEdit, and IP::isIPAddress().
| IPBlockForm::doBlock | ( | &$ | userId = null, |
|
| &$ | expiry = null | |||
| ) |
Backend block code.
$userID and $expiry will be filled accordingly
Definition at line 321 of file SpecialBlockip.php.
| static IPBlockForm::doMassUserBlock | ( | $ | users, | |
| $ | reason = '', |
|||
| $ | tag = '', |
|||
| $ | talkTag = '' | |||
| ) | [static] |
Block a list of selected users.
| array | $users | |
| string | $reason | |
| string | $tag replaces user pages | |
| string | $talkTag replaces user talk pages |
Definition at line 682 of file SpecialBlockip.php.
References $counter, $name, $reason, $u, IP::isIPAddress(), Block::newFromDB(), User::newFromName(), Block::parseExpiryInput(), wfTimestampNow(), and wfWaitForSlaves().
| IPBlockForm::doSubmit | ( | ) |
UI entry point for blocking Wraps around doBlock().
Definition at line 548 of file SpecialBlockip.php.
References SpecialPage::getTitleFor().
| IPBlockForm::getBlockListLink | ( | $ | skin | ) | [private] |
Build a convenience link to the block list.
| $skin | Skin to use |
Definition at line 663 of file SpecialBlockip.php.
References SpecialPage::getTitleFor(), and wfMsgHtml().
| IPBlockForm::getContribsLink | ( | $ | skin | ) | [private] |
Build a convenient link to a user or IP's contribs form.
| $skin | Skin to use |
Definition at line 633 of file SpecialBlockip.php.
References SpecialPage::getTitleFor(), and wfMsgExt().
| IPBlockForm::getConvenienceLinks | ( | ) | [private] |
Builds unblock and block list links.
Definition at line 615 of file SpecialBlockip.php.
References $wgLang, and wfMsgHtml().
| IPBlockForm::getUnblockLink | ( | $ | skin | ) | [private] |
Build a convenient link to unblock the given username or IP address, if available; otherwise link to a blank unblock form.
| $skin | Skin to use |
Definition at line 646 of file SpecialBlockip.php.
References SpecialPage::getTitleFor(), and wfMsgHtml().
| IPBlockForm::IPBlockForm | ( | $ | par | ) |
Definition at line 51 of file SpecialBlockip.php.
References $wgBlockAllowsUTEdit, $wgRequest, $wgUser, and wfMsg().
| static IPBlockForm::setUsernameBitfields | ( | $ | name, | |
| $ | userId, | |||
| $ | op | |||
| ) | [static, private] |
Definition at line 500 of file SpecialBlockip.php.
References $dbw, $name, LogPage::DELETED_ACTION, Revision::DELETED_RESTRICTED, Revision::DELETED_USER, Title::makeTitleSafe(), and wfGetDB().
| IPBlockForm::showForm | ( | $ | err | ) |
Definition at line 75 of file SpecialBlockip.php.
References $key, $msg, $user, $wgOut, $wgSysopUserBans, $wgUser, SpecialPage::getTitleFor(), is(), Xml::label(), Block::newFromDB(), User::newFromName(), table, Xml::tags(), wfMsg(), wfMsgHtml(), and wfMsgReal().
| IPBlockForm::showLogFragment | ( | $ | out, | |
| $ | title | |||
| ) |
Definition at line 570 of file SpecialBlockip.php.
References $count, $out, $title, Xml::element(), SpecialPage::getTitleFor(), LogPage::logName(), LogEventsList::showLogExtract(), and wfMsgHtml().
| IPBlockForm::showSuccess | ( | ) |
| static IPBlockForm::suppressUserName | ( | $ | name, | |
| $ | userId | |||
| ) | [static] |
| static IPBlockForm::unsuppressUserName | ( | $ | name, | |
| $ | userId | |||
| ) | [static] |
Definition at line 495 of file SpecialBlockip.php.
References $name.
Referenced by IPUnblockForm::doUnblock().
| IPBlockForm::$BlockAddress |
Definition at line 46 of file SpecialBlockip.php.
| IPBlockForm::$BlockExpiry |
Definition at line 46 of file SpecialBlockip.php.
| IPBlockForm::$BlockReason |
Definition at line 46 of file SpecialBlockip.php.
| const IPBlockForm::HIDEUSER_CONTRIBLIMIT = 1000 |
Definition at line 49 of file SpecialBlockip.php.
1.5.9