MediaWiki master
MediaWiki\Block\BlockPermissionCheckerFactory Class Reference

Factory class for BlockPermissionChecker. More...

Public Member Functions

 __construct (ServiceOptions $options, BlockTargetFactory $blockTargetFactory)
 newBlockPermissionChecker ( $target, Authority $performer)
 newChecker (Authority $performer)

Public Attributes

const CONSTRUCTOR_OPTIONS = BlockPermissionChecker::CONSTRUCTOR_OPTIONS

Detailed Description

Factory class for BlockPermissionChecker.

Since
1.35

Definition at line 19 of file BlockPermissionCheckerFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Block\BlockPermissionCheckerFactory::__construct ( ServiceOptions $options,
BlockTargetFactory $blockTargetFactory )

Definition at line 28 of file BlockPermissionCheckerFactory.php.

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
Deprecated
since 1.44 use newChecker, which does not require $target

Definition at line 44 of file BlockPermissionCheckerFactory.php.

References newChecker().

◆ newChecker()

MediaWiki\Block\BlockPermissionCheckerFactory::newChecker ( Authority $performer)
Parameters
Authority$performerPerformer of the block
Returns
BlockPermissionChecker

Definition at line 59 of file BlockPermissionCheckerFactory.php.

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

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

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

Definition at line 23 of file BlockPermissionCheckerFactory.php.


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