MediaWiki  master
MediaWiki\Block\UserBlockCommandFactory Class Reference
Inheritance diagram for MediaWiki\Block\UserBlockCommandFactory:
Collaboration diagram for MediaWiki\Block\UserBlockCommandFactory:

Public Member Functions

 __construct (ServiceOptions $options, HookContainer $hookContainer, BlockPermissionCheckerFactory $blockPermissionCheckerFactory, BlockUtils $blockUtils, DatabaseBlockStore $blockStore, BlockRestrictionStore $blockRestrictionStore, UserFactory $userFactory, UserEditTracker $userEditTracker, LoggerInterface $logger, TitleFactory $titleFactory, BlockActionInfo $blockActionInfo)
 
 newBlockUser ( $target, Authority $performer, string $expiry, string $reason='', array $blockOptions=[], array $blockRestrictions=[], $tags=[])
 Create BlockUser. More...
 
 newUnblockUser ( $target, Authority $performer, string $reason, array $tags=[])
 

Public Attributes

const CONSTRUCTOR_OPTIONS = BlockUser::CONSTRUCTOR_OPTIONS
 

Private Attributes

BlockActionInfo $blockActionInfo
 
BlockPermissionCheckerFactory $blockPermissionCheckerFactory
 
BlockRestrictionStore $blockRestrictionStore
 
DatabaseBlockStore $blockStore
 
BlockUtils $blockUtils
 
HookContainer $hookContainer
 
LoggerInterface $logger
 
ServiceOptions $options
 
TitleFactory $titleFactory
 
UserEditTracker $userEditTracker
 
UserFactory $userFactory
 

Detailed Description

Definition at line 33 of file UserBlockCommandFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Block\UserBlockCommandFactory::__construct ( ServiceOptions  $options,
HookContainer  $hookContainer,
BlockPermissionCheckerFactory  $blockPermissionCheckerFactory,
BlockUtils  $blockUtils,
DatabaseBlockStore  $blockStore,
BlockRestrictionStore  $blockRestrictionStore,
UserFactory  $userFactory,
UserEditTracker  $userEditTracker,
LoggerInterface  $logger,
TitleFactory  $titleFactory,
BlockActionInfo  $blockActionInfo 
)

Member Function Documentation

◆ newBlockUser()

MediaWiki\Block\UserBlockCommandFactory::newBlockUser (   $target,
Authority  $performer,
string  $expiry,
string  $reason = '',
array  $blockOptions = [],
array  $blockRestrictions = [],
  $tags = [] 
)

Create BlockUser.

Parameters
string | UserIdentity$targetTarget of the block
Authority$performerPerformer of the block
string$expiryExpiry of the block (timestamp or 'infinity')
string$reasonReason of the block
array$blockOptionsBlock options
array$blockRestrictionsBlock restrictions
array | null$tagsTags that should be assigned to the log entry
Returns
BlockUser

Implements MediaWiki\Block\BlockUserFactory.

Definition at line 128 of file UserBlockCommandFactory.php.

◆ newUnblockUser()

MediaWiki\Block\UserBlockCommandFactory::newUnblockUser (   $target,
Authority  $performer,
string  $reason,
array  $tags = [] 
)
Parameters
UserIdentity | string$target
Authority$performer
string$reason
string[]$tags
Returns
UnblockUser

Implements MediaWiki\Block\UnblockUserFactory.

Definition at line 171 of file UserBlockCommandFactory.php.

Member Data Documentation

◆ $blockActionInfo

BlockActionInfo MediaWiki\Block\UserBlockCommandFactory::$blockActionInfo
private

◆ $blockPermissionCheckerFactory

BlockPermissionCheckerFactory MediaWiki\Block\UserBlockCommandFactory::$blockPermissionCheckerFactory
private

◆ $blockRestrictionStore

BlockRestrictionStore MediaWiki\Block\UserBlockCommandFactory::$blockRestrictionStore
private

◆ $blockStore

DatabaseBlockStore MediaWiki\Block\UserBlockCommandFactory::$blockStore
private

◆ $blockUtils

BlockUtils MediaWiki\Block\UserBlockCommandFactory::$blockUtils
private

◆ $hookContainer

HookContainer MediaWiki\Block\UserBlockCommandFactory::$hookContainer
private

◆ $logger

LoggerInterface MediaWiki\Block\UserBlockCommandFactory::$logger
private

◆ $options

ServiceOptions MediaWiki\Block\UserBlockCommandFactory::$options
private

◆ $titleFactory

TitleFactory MediaWiki\Block\UserBlockCommandFactory::$titleFactory
private

◆ $userEditTracker

UserEditTracker MediaWiki\Block\UserBlockCommandFactory::$userEditTracker
private

◆ $userFactory

UserFactory MediaWiki\Block\UserBlockCommandFactory::$userFactory
private

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Block\UserBlockCommandFactory::CONSTRUCTOR_OPTIONS = BlockUser::CONSTRUCTOR_OPTIONS
Access: internal
Use only in ServiceWiring

Definition at line 72 of file UserBlockCommandFactory.php.


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