JMediawikiUsers::blockUser
Method to block a user.
Signature
public function blockUser(string
$user,
[string
$expiry = null,
[string
$reason = null,
[boolean
$anononly = null,
[boolean
$nocreate = null,
[boolean
$autoblock = null,
[boolean
$noemail = null,
[boolean
$hidename = null,
[boolean
$allowusertalk = null,
[boolean
$reblock = null,
[boolean
$watchuser = null]]]]]]]]]] )
Parameters
-
$user
- Username, IP address or IP range you want to block.
-
$expiry
- Relative expiry time, Default: never.
-
$reason
- Reason for block (optional).
-
$anononly
- Block anonymous users only.
-
$nocreate
- Prevent account creation.
-
$autoblock
- Automatically block the last used IP address, and any subsequent IP addresses they try to login from.
-
$noemail
- Prevent user from sending e-mail through the wiki.
-
$hidename
- Hide the username from the block log.
-
$allowusertalk
- Allow the user to edit their own talk page.
-
$reblock
- If the user is already blocked, overwrite the existing block.
-
$watchuser
- Watch the user/IP's user and talk pages.
Returns