MediaWiki REL1_39
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.
 

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$blockOptions
array$blockRestrictions
array | null$tagsTags that should be assigned to the log entry
Returns
BlockUser

Implemented in MediaWiki\Block\UserBlockCommandFactory.


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