MediaWiki master
BlockUserFactory.php
Go to the documentation of this file.
1<?php
2
8namespace MediaWiki\Block;
9
12
30 public function newBlockUser(
31 $target,
32 Authority $performer,
33 string $expiry,
34 string $reason = '',
35 array $blockOptions = [],
36 array $blockRestrictions = [],
37 $tags = []
38 ): BlockUser;
39
54 public function newUpdateBlock(
55 DatabaseBlock $block,
56 Authority $performer,
57 string $expiry,
58 string $reason = '',
59 array $blockOptions = [],
60 array $blockRestrictions = [],
61 $tags = []
62 ): BlockUser;
63}
Handles the backend logic of blocking users.
Definition BlockUser.php:41
A DatabaseBlock (unlike a SystemBlock) is stored in the database, may give rise to autoblocks and may...
newUpdateBlock(DatabaseBlock $block, Authority $performer, string $expiry, string $reason='', array $blockOptions=[], array $blockRestrictions=[], $tags=[])
Create a BlockUser which updates a specified block.
newBlockUser( $target, Authority $performer, string $expiry, string $reason='', array $blockOptions=[], array $blockRestrictions=[], $tags=[])
Create BlockUser.
This interface represents the authority associated with the current execution context,...
Definition Authority.php:23
Interface for objects representing user identity.