}
/**
+ * API module that facilitates the unblocking of users. Requires API write mode
+ * to be enabled.
+ *
* @addtogroup API
*/
class ApiUnblock extends ApiBase {
parent :: __construct($main, $action);
}
+ /**
+ * Unblocks the specified user or provides the reason the unblock failed.
+ */
public function execute() {
global $wgUser;
$this->getMain()->requestWriteMode();
protected function getParamDescription() {
return array (
- 'id' => 'ID of the block you want to unblock (obtained through list=blocks). Cannot be user together with user',
+ 'id' => 'ID of the block you want to unblock (obtained through list=blocks). Cannot be used together with user',
'user' => 'Username, IP address or IP range you want to unblock. Cannot be used together with id',
'token' => 'An unblock token previously obtained through the gettoken parameter',
'gettoken' => 'If set, an unblock token will be returned, and no other action will be taken',