MediaWiki REL1_37
MediaWiki\Block\BlockPermissionCheckerFactory Class Reference

Factory class for BlockPermissionChecker. More...

Collaboration diagram for MediaWiki\Block\BlockPermissionCheckerFactory:

Public Member Functions

 __construct (ServiceOptions $options, BlockUtils $blockUtils)
 
 newBlockPermissionChecker ( $target, Authority $performer)
 

Public Attributes

const CONSTRUCTOR_OPTIONS = BlockPermissionChecker::CONSTRUCTOR_OPTIONS
 

Private Attributes

BlockUtils $blockUtils
 
ServiceOptions $options
 

Detailed Description

Factory class for BlockPermissionChecker.

Since
1.35

Definition at line 33 of file BlockPermissionCheckerFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Block\BlockPermissionCheckerFactory::__construct ( ServiceOptions  $options,
BlockUtils  $blockUtils 
)

Member Function Documentation

◆ newBlockPermissionChecker()

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

Definition at line 65 of file BlockPermissionCheckerFactory.php.

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

Member Data Documentation

◆ $blockUtils

BlockUtils MediaWiki\Block\BlockPermissionCheckerFactory::$blockUtils
private

◆ $options

ServiceOptions MediaWiki\Block\BlockPermissionCheckerFactory::$options
private

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Block\BlockPermissionCheckerFactory::CONSTRUCTOR_OPTIONS = BlockPermissionChecker::CONSTRUCTOR_OPTIONS
Access: internal
only to be used by ServiceWiring

Definition at line 41 of file BlockPermissionCheckerFactory.php.


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