MediaWiki
fundraising/REL1_35
BlockPermissionCheckerFactory.php
Go to the documentation of this file.
1
<?php
2
22
namespace
MediaWiki\Block
;
23
24
use
MediaWiki\Permissions\PermissionManager
;
25
use
User
;
26
32
class
BlockPermissionCheckerFactory
{
33
37
private
$permissionManager
;
38
42
public
function
__construct
(
PermissionManager
$permissionManager
) {
43
$this->permissionManager =
$permissionManager
;
44
}
45
52
public
function
newBlockPermissionChecker
(
53
$target,
54
User
$performer
55
) {
56
return
new
BlockPermissionChecker
(
57
$this->permissionManager,
58
$target,
59
$performer
60
);
61
}
62
}
MediaWiki\Block\BlockPermissionCheckerFactory
Factory class for BlockPermissionChecker.
Definition
BlockPermissionCheckerFactory.php:32
MediaWiki\Block\BlockPermissionCheckerFactory\newBlockPermissionChecker
newBlockPermissionChecker( $target, User $performer)
Definition
BlockPermissionCheckerFactory.php:52
MediaWiki\Block\BlockPermissionCheckerFactory\$permissionManager
PermissionManager $permissionManager
Definition
BlockPermissionCheckerFactory.php:37
MediaWiki\Block\BlockPermissionCheckerFactory\__construct
__construct(PermissionManager $permissionManager)
Definition
BlockPermissionCheckerFactory.php:42
MediaWiki\Block\BlockPermissionChecker
Block permissions.
Definition
BlockPermissionChecker.php:38
MediaWiki\Permissions\PermissionManager
A service class for checking permissions To obtain an instance, use MediaWikiServices::getInstance()-...
Definition
PermissionManager.php:49
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:60
MediaWiki\Block
Definition
AbstractBlock.php:21
includes
block
BlockPermissionCheckerFactory.php
Generated on Mon Nov 25 2024 16:14:25 for MediaWiki by
1.10.0