MediaWiki  master
MediaWiki\Block\BlockUserFactory Interface Reference
Inheritance diagram for MediaWiki\Block\BlockUserFactory:

Public Member Functions

 newBlockUser ( $target, Authority $performer, string $expiry, string $reason='', array $blockOptions=[], array $blockRestrictions=[], $tags=[])
 Create BlockUser. More...
 

Detailed Description

Since
1.36

Definition at line 30 of file BlockUserFactory.php.

Member Function Documentation

◆ newBlockUser()

MediaWiki\Block\BlockUserFactory::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

Implemented in MediaWiki\Block\UserBlockCommandFactory.

Referenced by SpecialBlock\processFormInternal().


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