IPBlockForm Class Reference
[SpecialPage]

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

List of all members.

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)


Detailed Description

Form object for the Special:Blockip page.

Definition at line 45 of file SpecialBlockip.php.


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 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

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

Definition at line 321 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 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.

Parameters:
$skin Skin to use
Returns:
string

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.

Parameters:
$skin Skin to use
Returns:
string

Definition at line 633 of file SpecialBlockip.php.

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

IPBlockForm::getConvenienceLinks (  )  [private]

Builds unblock and block list links.

Returns:
string

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.

Parameters:
$skin Skin to use
Returns:
string

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]

IPBlockForm::showForm ( err  ) 

IPBlockForm::showLogFragment ( out,
title 
)

IPBlockForm::showSuccess (  ) 

Definition at line 561 of file SpecialBlockip.php.

References $text, wfMsg(), and wfMsgExt().

static IPBlockForm::suppressUserName ( name,
userId 
) [static]

Definition at line 490 of file SpecialBlockip.php.

References $name.

static IPBlockForm::unsuppressUserName ( name,
userId 
) [static]

Definition at line 495 of file SpecialBlockip.php.

References $name.

Referenced by IPUnblockForm::doUnblock().


Member Data Documentation

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.

Definition at line 49 of file SpecialBlockip.php.


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

Generated on Sat Sep 5 02:08:39 2009 for MediaWiki by  doxygen 1.5.9