MediaWiki  master
MediaWiki\Block\BlockPermissionCheckerFactory Class Reference

Factory class for BlockPermissionChecker. More...

Collaboration diagram for MediaWiki\Block\BlockPermissionCheckerFactory:

Public Member Functions

 __construct (ServiceOptions $options, PermissionManager $permissionManager)
 
 newBlockPermissionChecker ( $target, User $performer)
 

Public Attributes

const CONSTRUCTOR_OPTIONS = BlockPermissionChecker::CONSTRUCTOR_OPTIONS
 

Private Attributes

ServiceOptions $options
 
PermissionManager $permissionManager
 

Detailed Description

Factory class for BlockPermissionChecker.

Since
1.35

Definition at line 34 of file BlockPermissionCheckerFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Block\BlockPermissionCheckerFactory::__construct ( ServiceOptions  $options,
PermissionManager  $permissionManager 
)

Member Function Documentation

◆ newBlockPermissionChecker()

MediaWiki\Block\BlockPermissionCheckerFactory::newBlockPermissionChecker (   $target,
User  $performer 
)
Parameters
UserIdentity | string | null$targetTarget of the validated block; may be null if unknown
User$performerPerformer of the validated block
Returns
BlockPermissionChecker

Definition at line 66 of file BlockPermissionCheckerFactory.php.

Referenced by MediaWiki\Block\UnblockUser\__construct(), and MediaWiki\Block\BlockUser\__construct().

Member Data Documentation

◆ $options

ServiceOptions MediaWiki\Block\BlockPermissionCheckerFactory::$options
private

◆ $permissionManager

PermissionManager MediaWiki\Block\BlockPermissionCheckerFactory::$permissionManager
private

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Block\BlockPermissionCheckerFactory::CONSTRUCTOR_OPTIONS = BlockPermissionChecker::CONSTRUCTOR_OPTIONS

Definition at line 45 of file BlockPermissionCheckerFactory.php.


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