MediaWiki master
BlockUserFactory.php
Go to the documentation of this file.
1<?php
2
22namespace MediaWiki\Block;
23
26
44 public function newBlockUser(
45 $target,
46 Authority $performer,
47 string $expiry,
48 string $reason = '',
49 array $blockOptions = [],
50 array $blockRestrictions = [],
51 $tags = []
52 ): BlockUser;
53
68 public function newUpdateBlock(
69 DatabaseBlock $block,
70 Authority $performer,
71 string $expiry,
72 string $reason = '',
73 array $blockOptions = [],
74 array $blockRestrictions = [],
75 $tags = []
76 ): BlockUser;
77}
Handles the backend logic of blocking users.
Definition BlockUser.php:54
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:37
Interface for objects representing user identity.