MediaWiki REL1_37
MediaWiki\Block\UnblockUser Class Reference

Backend class for unblocking users. More...

Collaboration diagram for MediaWiki\Block\UnblockUser:

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.
 

Private Member Functions

 log ()
 Log the unblock to Special:Log/block.
 

Private Attributes

DatabaseBlock null $block
 
BlockPermissionChecker $blockPermissionChecker
 
DatabaseBlockStore $blockStore
 
BlockUtils $blockUtils
 
HookRunner $hookRunner
 
Authority $performer
 
string $reason
 
array $tags = []
 
UserIdentity string $target
 
int $targetType
 
UserFactory $userFactory
 

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\UnblockUser\$blockStore, MediaWiki\Block\UnblockUser\$blockUtils, MediaWiki\Block\UnblockUser\$performer, MediaWiki\Block\UnblockUser\$reason, MediaWiki\Block\UnblockUser\$tags, MediaWiki\Block\UnblockUser\$target, MediaWiki\Block\UnblockUser\$userFactory, MediaWiki\Block\BlockPermissionCheckerFactory\newBlockPermissionChecker(), MediaWiki\Block\DatabaseBlock\newFromTarget(), and MediaWiki\Block\Block\TYPE_AUTO.

Member Function Documentation

◆ log()

MediaWiki\Block\UnblockUser::log ( )
private

Log the unblock to Special:Log/block.

Definition at line 209 of file UnblockUser.php.

References NS_USER.

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

Member Data Documentation

◆ $block

DatabaseBlock null MediaWiki\Block\UnblockUser::$block
private

Definition at line 63 of file UnblockUser.php.

◆ $blockPermissionChecker

BlockPermissionChecker MediaWiki\Block\UnblockUser::$blockPermissionChecker
private

Definition at line 42 of file UnblockUser.php.

◆ $blockStore

DatabaseBlockStore MediaWiki\Block\UnblockUser::$blockStore
private

Definition at line 45 of file UnblockUser.php.

Referenced by MediaWiki\Block\UnblockUser\__construct().

◆ $blockUtils

BlockUtils MediaWiki\Block\UnblockUser::$blockUtils
private

Definition at line 48 of file UnblockUser.php.

Referenced by MediaWiki\Block\UnblockUser\__construct().

◆ $hookRunner

HookRunner MediaWiki\Block\UnblockUser::$hookRunner
private

Definition at line 54 of file UnblockUser.php.

◆ $performer

Authority MediaWiki\Block\UnblockUser::$performer
private

Definition at line 66 of file UnblockUser.php.

Referenced by MediaWiki\Block\UnblockUser\__construct().

◆ $reason

string MediaWiki\Block\UnblockUser::$reason
private

Definition at line 69 of file UnblockUser.php.

Referenced by MediaWiki\Block\UnblockUser\__construct().

◆ $tags

array MediaWiki\Block\UnblockUser::$tags = []
private

Definition at line 72 of file UnblockUser.php.

Referenced by MediaWiki\Block\UnblockUser\__construct().

◆ $target

UserIdentity string MediaWiki\Block\UnblockUser::$target
private

Definition at line 57 of file UnblockUser.php.

Referenced by MediaWiki\Block\UnblockUser\__construct().

◆ $targetType

int MediaWiki\Block\UnblockUser::$targetType
private

Definition at line 60 of file UnblockUser.php.

◆ $userFactory

UserFactory MediaWiki\Block\UnblockUser::$userFactory
private

Definition at line 51 of file UnblockUser.php.

Referenced by MediaWiki\Block\UnblockUser\__construct().


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