|
MediaWiki master
|
Inherits MediaWiki\Block\BlockUserFactory, and MediaWiki\Block\UnblockUserFactory.

Public Member Functions | |
| __construct (ServiceOptions $options, HookContainer $hookContainer, BlockPermissionCheckerFactory $blockPermissionCheckerFactory, BlockTargetFactory $blockTargetFactory, DatabaseBlockStore $blockStore, BlockRestrictionStore $blockRestrictionStore, UserFactory $userFactory, UserEditTracker $userEditTracker, LoggerInterface $logger, TitleFactory $titleFactory, BlockActionInfo $blockActionInfo) | |
| newBlockUser ( $target, Authority $performer, string $expiry, string $reason='', array $blockOptions=[], array $blockRestrictions=[], $tags=[]) | |
| Create BlockUser. | |
| newRemoveBlock (DatabaseBlock $block, Authority $performer, string $reason, array $tags=[]) | |
| Creates UnblockUser to remove a specific block. | |
| newUnblockUser ( $target, Authority $performer, string $reason, array $tags=[]) | |
| Creates UnblockUser. | |
| newUpdateBlock (DatabaseBlock $block, Authority $performer, string $expiry, string $reason='', array $blockOptions=[], array $blockRestrictions=[], $tags=[]) | |
| Create a BlockUser which updates a specified block. | |
Public Attributes | |
| const | CONSTRUCTOR_OPTIONS = BlockUser::CONSTRUCTOR_OPTIONS |
Definition at line 19 of file UserBlockCommandFactory.php.
| MediaWiki\Block\UserBlockCommandFactory::__construct | ( | ServiceOptions | $options, |
| HookContainer | $hookContainer, | ||
| BlockPermissionCheckerFactory | $blockPermissionCheckerFactory, | ||
| BlockTargetFactory | $blockTargetFactory, | ||
| DatabaseBlockStore | $blockStore, | ||
| BlockRestrictionStore | $blockRestrictionStore, | ||
| UserFactory | $userFactory, | ||
| UserEditTracker | $userEditTracker, | ||
| LoggerInterface | $logger, | ||
| TitleFactory | $titleFactory, | ||
| BlockActionInfo | $blockActionInfo ) |
Definition at line 37 of file UserBlockCommandFactory.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions().
| MediaWiki\Block\UserBlockCommandFactory::newBlockUser | ( | $target, | |
| Authority | $performer, | ||
| string | $expiry, | ||
| string | $reason = '', | ||
| array | $blockOptions = [], | ||
| array | $blockRestrictions = [], | ||
| $tags = [] ) |
Create BlockUser.
| BlockTarget | string | UserIdentity | $target | Target of the block |
| Authority | $performer | Performer of the block |
| string | $expiry | Expiry of the block (timestamp or 'infinity') |
| string | $reason | Reason of the block |
| array | $blockOptions | |
| array | $blockRestrictions | |
| array | null | $tags | Tags that should be assigned to the log entry |
Implements MediaWiki\Block\BlockUserFactory.
Definition at line 78 of file UserBlockCommandFactory.php.
| MediaWiki\Block\UserBlockCommandFactory::newRemoveBlock | ( | DatabaseBlock | $block, |
| Authority | $performer, | ||
| string | $reason, | ||
| array | $tags = [] ) |
Creates UnblockUser to remove a specific block.
| DatabaseBlock | $block | |
| Authority | $performer | |
| string | $reason | |
| array | $tags |
Implements MediaWiki\Block\UnblockUserFactory.
Definition at line 198 of file UserBlockCommandFactory.php.
| MediaWiki\Block\UserBlockCommandFactory::newUnblockUser | ( | $target, | |
| Authority | $performer, | ||
| string | $reason, | ||
| array | $tags = [] ) |
Creates UnblockUser.
| BlockTarget | UserIdentity | string | $target | |
| Authority | $performer | |
| string | $reason | |
| string[] | $tags |
Implements MediaWiki\Block\UnblockUserFactory.
Definition at line 168 of file UserBlockCommandFactory.php.
| MediaWiki\Block\UserBlockCommandFactory::newUpdateBlock | ( | DatabaseBlock | $block, |
| Authority | $performer, | ||
| string | $expiry, | ||
| string | $reason = '', | ||
| array | $blockOptions = [], | ||
| array | $blockRestrictions = [], | ||
| $tags = [] ) |
Create a BlockUser which updates a specified block.
| DatabaseBlock | $block | |
| Authority | $performer | Performer of the block |
| string | $expiry | New expiry of the block (timestamp or 'infinity') |
| string | $reason | Reason of the block |
| array | $blockOptions | |
| array | $blockRestrictions | |
| array | null | $tags | Tags that should be assigned to the log entry |
Implements MediaWiki\Block\BlockUserFactory.
Definition at line 124 of file UserBlockCommandFactory.php.
| const MediaWiki\Block\UserBlockCommandFactory::CONSTRUCTOR_OPTIONS = BlockUser::CONSTRUCTOR_OPTIONS |
Definition at line 35 of file UserBlockCommandFactory.php.