MediaWiki REL1_40
MediaWiki\Block\UnblockUser Class Reference

Backend class for unblocking users. More...

Public Member Functions

 __construct (BlockPermissionCheckerFactory $blockPermissionCheckerFactory, DatabaseBlockStore $blockStore, BlockUtils $blockUtils, UserFactory $userFactory, HookContainer $hookContainer, $target, Authority $performer, string $reason, array $tags=[])
 
 unblock ()
 Unblock user.
 
 unblockUnsafe ()
 Unblock user without any sort of permission checks.
 

Detailed Description

Backend class for unblocking users.

Since
1.36

Definition at line 40 of file UnblockUser.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Block\UnblockUser::__construct ( BlockPermissionCheckerFactory $blockPermissionCheckerFactory,
DatabaseBlockStore $blockStore,
BlockUtils $blockUtils,
UserFactory $userFactory,
HookContainer $hookContainer,
$target,
Authority $performer,
string $reason,
array $tags = [] )
Parameters
BlockPermissionCheckerFactory$blockPermissionCheckerFactory
DatabaseBlockStore$blockStore
BlockUtils$blockUtils
UserFactory$userFactory
HookContainer$hookContainer
UserIdentity | string$target
Authority$performer
string$reason
string[]$tags

Definition at line 85 of file UnblockUser.php.

References MediaWiki\Block\BlockPermissionCheckerFactory\newBlockPermissionChecker(), MediaWiki\Block\DatabaseBlock\newFromTarget(), and MediaWiki\Block\Block\TYPE_AUTO.

Member Function Documentation

◆ unblock()

MediaWiki\Block\UnblockUser::unblock ( )

Unblock user.

Returns
Status

Definition at line 127 of file UnblockUser.php.

References StatusValue\fatal().

◆ unblockUnsafe()

MediaWiki\Block\UnblockUser::unblockUnsafe ( )

Unblock user without any sort of permission checks.

Access: internal
This is public to be called in a maintenance script.
Returns
Status

Definition at line 163 of file UnblockUser.php.

References StatusValue\fatal().


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