IPUnblockForm Class Reference
[SpecialPage]

implements Special:ipblocklist GUI More...

List of all members.

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


Detailed Description

implements Special:ipblocklist GUI

Definition at line 70 of file SpecialIpblocklist.php.


Member Function Documentation

IPUnblockForm::doSubmit (  ) 

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.

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

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  ) 

IPUnblockForm::IPUnblockForm ( ip,
id,
reason 
)

Definition at line 73 of file SpecialIpblocklist.php.

References $id, $ip, $reason, and $wgRequest.

IPUnblockForm::makeOptionsLink ( title,
override,
options,
active = false 
)

Makes change an option link which carries all the other options.

Parameters:
$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 (  ) 

IPUnblockForm::showForm ( err  ) 

Generates the unblock form.

Parameters:
$err string: error message
Returns:
$out string: HTML form

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  ) 


Member Data Documentation

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().

Definition at line 155 of file SpecialIpblocklist.php.

Definition at line 153 of file SpecialIpblocklist.php.

Definition at line 152 of file SpecialIpblocklist.php.

Definition at line 156 of file SpecialIpblocklist.php.

Definition at line 154 of file SpecialIpblocklist.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