MediaWiki REL1_39
|
Public Member Functions | |
__construct (ServiceOptions $options, HookContainer $hookContainer, BlockPermissionCheckerFactory $blockPermissionCheckerFactory, BlockUtils $blockUtils, 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. | |
newUnblockUser ( $target, Authority $performer, string $reason, array $tags=[]) | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS = BlockUser::CONSTRUCTOR_OPTIONS |
Definition at line 33 of file UserBlockCommandFactory.php.
MediaWiki\Block\UserBlockCommandFactory::__construct | ( | ServiceOptions | $options, |
HookContainer | $hookContainer, | ||
BlockPermissionCheckerFactory | $blockPermissionCheckerFactory, | ||
BlockUtils | $blockUtils, | ||
DatabaseBlockStore | $blockStore, | ||
BlockRestrictionStore | $blockRestrictionStore, | ||
UserFactory | $userFactory, | ||
UserEditTracker | $userEditTracker, | ||
LoggerInterface | $logger, | ||
TitleFactory | $titleFactory, | ||
BlockActionInfo | $blockActionInfo ) |
ServiceOptions | $options | |
HookContainer | $hookContainer | |
BlockPermissionCheckerFactory | $blockPermissionCheckerFactory | |
BlockUtils | $blockUtils | |
DatabaseBlockStore | $blockStore | |
BlockRestrictionStore | $blockRestrictionStore | |
UserFactory | $userFactory | |
UserEditTracker | $userEditTracker | |
LoggerInterface | $logger | |
TitleFactory | $titleFactory | |
BlockActionInfo | $blockActionInfo |
Definition at line 87 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.
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 128 of file UserBlockCommandFactory.php.
MediaWiki\Block\UserBlockCommandFactory::newUnblockUser | ( | $target, | |
Authority | $performer, | ||
string | $reason, | ||
array | $tags = [] ) |
UserIdentity | string | $target | |
Authority | $performer | |
string | $reason | |
string[] | $tags |
Implements MediaWiki\Block\UnblockUserFactory.
Definition at line 171 of file UserBlockCommandFactory.php.
const MediaWiki\Block\UserBlockCommandFactory::CONSTRUCTOR_OPTIONS = BlockUser::CONSTRUCTOR_OPTIONS |
Definition at line 72 of file UserBlockCommandFactory.php.