|
MediaWiki master
|
Defines the actions that can be blocked by a partial block. More...
Public Member Functions | |
| __construct (HookContainer $hookContainer) | |
| getActionFromId (int $actionId) | |
| getAllBlockActions () | |
| getIdFromAction (string $action) | |
Public Attributes | |
| const | ACTION_CREATE = 3 |
| const | ACTION_MOVE = 2 |
| const | ACTION_UPLOAD = 1 |
Defines the actions that can be blocked by a partial block.
They are always blocked by a sitewide block.
NB: The terms "right" and "action" are often used to describe the same string, depending on the context. E.g. a querystring might contain 'action=edit', but the PermissionManager will refer to the 'edit' right.
Here, we use "action", since a user may be in a group that has a certain right, while also being blocked from performing that action.
Definition at line 26 of file BlockActionInfo.php.
| MediaWiki\Block\BlockActionInfo::__construct | ( | HookContainer | $hookContainer | ) |
Definition at line 57 of file BlockActionInfo.php.
| MediaWiki\Block\BlockActionInfo::getActionFromId | ( | int | $actionId | ) |
| MediaWiki\Block\BlockActionInfo::getAllBlockActions | ( | ) |
Definition at line 70 of file BlockActionInfo.php.
| MediaWiki\Block\BlockActionInfo::getIdFromAction | ( | string | $action | ) |
| string | $action |
Definition at line 94 of file BlockActionInfo.php.
| const MediaWiki\Block\BlockActionInfo::ACTION_CREATE = 3 |
Definition at line 36 of file BlockActionInfo.php.
| const MediaWiki\Block\BlockActionInfo::ACTION_MOVE = 2 |
Definition at line 33 of file BlockActionInfo.php.
| const MediaWiki\Block\BlockActionInfo::ACTION_UPLOAD = 1 |
Definition at line 30 of file BlockActionInfo.php.