Public Member Functions | |
__construct ($par) | |
showForm ($err) | |
doBlock (&$userId=null, &$expiry=null) | |
Backend block code. | |
doSubmit () | |
UI entry point for blocking Wraps around doBlock(). | |
showSuccess () | |
Static Public Member Functions | |
static | canBlockEmail ($user) |
Can we do an email block? | |
static | suppressUserName ($name, $userId, $dbw=null) |
static | unsuppressUserName ($name, $userId, $dbw=null) |
static | doMassUserBlock ($users, $reason= '', $tag= '', $talkTag= '') |
Block a list of selected users. | |
Public Attributes | |
$BlockAddress | |
$BlockExpiry | |
$BlockReason | |
const | HIDEUSER_CONTRIBLIMIT = 1000 |
Private Member Functions | |
showLogFragment ($out, $title) | |
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, $dbw) |
Definition at line 44 of file SpecialBlockip.php.
IPBlockForm::__construct | ( | $ | par | ) |
Definition at line 49 of file SpecialBlockip.php.
References $wgBlockAllowsUTEdit, $wgRequest, $wgUser, and wfMsg().
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 672 of file SpecialBlockip.php.
References $wgBlockAllowsUTEdit, and IP::isIPAddress().
static IPBlockForm::canBlockEmail | ( | $ | user | ) | [static] |
Can we do an email block?
User | $user The sysop wanting to make a block |
Definition at line 359 of file SpecialBlockip.php.
Referenced by ApiBlock::execute().
IPBlockForm::doBlock | ( | &$ | userId = null , |
|
&$ | expiry = null | |||
) |
Backend block code.
$userID and $expiry will be filled accordingly
Definition at line 369 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 789 of file SpecialBlockip.php.
References $name, IP::isIPAddress(), Block::newFromDB(), User::newFromName(), Block::parseExpiryInput(), wfTimestampNow(), and wfWaitForSlaves().
IPBlockForm::doSubmit | ( | ) |
UI entry point for blocking Wraps around doBlock().
Definition at line 602 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 761 of file SpecialBlockip.php.
References SpecialPage::getTitleFor(), and wfMsg().
IPBlockForm::getContribsLink | ( | $ | skin | ) | [private] |
Build a convenient link to a user or IP's contribs form.
$skin | Skin to use |
Definition at line 723 of file SpecialBlockip.php.
References SpecialPage::getTitleFor(), and wfMsgExt().
IPBlockForm::getConvenienceLinks | ( | ) | [private] |
Builds unblock and block list links.
Definition at line 697 of file SpecialBlockip.php.
References $title, $wgLang, Title::makeTitle(), 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 736 of file SpecialBlockip.php.
References SpecialPage::getTitleFor(), and wfMsg().
static IPBlockForm::setUsernameBitfields | ( | $ | name, | |
$ | userId, | |||
$ | op, | |||
$ | dbw | |||
) | [static, private] |
Definition at line 552 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 82 of file SpecialBlockip.php.
References $msg, $wgOut, $wgSysopUserBans, $wgUser, SpecialPage::getTitleFor(), Xml::label(), Block::newFromDB(), User::newFromName(), Xml::tags(), wfMsg(), wfMsgHtml(), wfMsgReal(), and wfRunHooks().
IPBlockForm::showLogFragment | ( | $ | out, | |
$ | title | |||
) | [private] |
Definition at line 623 of file SpecialBlockip.php.
References $out, $title, and LogEventsList::showLogExtract().
IPBlockForm::showSuccess | ( | ) |
static IPBlockForm::suppressUserName | ( | $ | name, | |
$ | userId, | |||
$ | dbw = null | |||
) | [static] |
static IPBlockForm::unsuppressUserName | ( | $ | name, | |
$ | userId, | |||
$ | dbw = null | |||
) | [static] |
IPBlockForm::$BlockAddress |
Definition at line 45 of file SpecialBlockip.php.
IPBlockForm::$BlockExpiry |
Definition at line 45 of file SpecialBlockip.php.
IPBlockForm::$BlockReason |
Definition at line 45 of file SpecialBlockip.php.
const IPBlockForm::HIDEUSER_CONTRIBLIMIT = 1000 |
Definition at line 47 of file SpecialBlockip.php.