IPBlockForm Class Reference
[SpecialPage]

Form object for the Special:Blockip page. More...

List of all members.

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)


Detailed Description

Form object for the Special:Blockip page.

Definition at line 44 of file SpecialBlockip.php.


Constructor & Destructor Documentation

IPBlockForm::__construct ( par  ) 

Definition at line 49 of file SpecialBlockip.php.

References $wgBlockAllowsUTEdit, $wgRequest, $wgUser, and wfMsg().


Member Function Documentation

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.

Returns:
array

Definition at line 672 of file SpecialBlockip.php.

References $wgBlockAllowsUTEdit, and IP::isIPAddress().

static IPBlockForm::canBlockEmail ( user  )  [static]

Can we do an email block?

Parameters:
User $user The sysop wanting to make a block
Returns:
boolean

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

Returns:
array(message key, arguments) on failure, empty array on success

Definition at line 369 of file SpecialBlockip.php.

static IPBlockForm::doMassUserBlock ( users,
reason = '',
tag = '',
talkTag = '' 
) [static]

Block a list of selected users.

Parameters:
array $users
string $reason
string $tag replaces user pages
string $talkTag replaces user talk pages
Returns:
array, list of html-safe usernames

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.

Parameters:
$skin Skin to use
Returns:
string

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.

Parameters:
$skin Skin to use
Returns:
string

Definition at line 723 of file SpecialBlockip.php.

References SpecialPage::getTitleFor(), and wfMsgExt().

IPBlockForm::getConvenienceLinks (  )  [private]

Builds unblock and block list links.

Returns:
string

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.

Parameters:
$skin Skin to use
Returns:
string

Definition at line 736 of file SpecialBlockip.php.

References SpecialPage::getTitleFor(), and wfMsg().

static IPBlockForm::setUsernameBitfields ( name,
userId,
op,
dbw 
) [static, private]

IPBlockForm::showForm ( err  ) 

IPBlockForm::showLogFragment ( out,
title 
) [private]

Definition at line 623 of file SpecialBlockip.php.

References $out, $title, and LogEventsList::showLogExtract().

IPBlockForm::showSuccess (  ) 

Definition at line 614 of file SpecialBlockip.php.

References wfMsg(), and wfMsgExt().

static IPBlockForm::suppressUserName ( name,
userId,
dbw = null 
) [static]

Definition at line 542 of file SpecialBlockip.php.

References $dbw, and $name.

static IPBlockForm::unsuppressUserName ( name,
userId,
dbw = null 
) [static]

Definition at line 547 of file SpecialBlockip.php.

References $dbw, and $name.

Referenced by IPUnblockForm::doUnblock().


Member Data Documentation

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.

Definition at line 47 of file SpecialBlockip.php.


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

Generated on Sat Apr 30 22:57:40 2011 for MediaWiki by  doxygen 1.5.9