MediaWiki  master
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. More...
 
 unblockUnsafe ()
 Unblock user without any sort of permission checks. More...
 

Private Member Functions

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

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 = [] 
)

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, TitleValue\tryNew(), and MediaWiki\Block\Block\TYPE_AUTO.

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

◆ unblock()

MediaWiki\Block\UnblockUser::unblock ( )

◆ 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 MediaWiki\Block\UnblockUser\log(), StatusValue\newGood(), MediaWiki\Block\Block\TYPE_IP, MediaWiki\Block\Block\TYPE_RANGE, and RevisionDeleteUser\unsuppressUserName().

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

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: