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 40 of file BlockActionInfo.php.
MediaWiki\Block\BlockActionInfo::__construct | ( | HookContainer | $hookContainer | ) |
Definition at line 71 of file BlockActionInfo.php.
MediaWiki\Block\BlockActionInfo::getActionFromId | ( | int | $actionId | ) |
MediaWiki\Block\BlockActionInfo::getAllBlockActions | ( | ) |
Definition at line 84 of file BlockActionInfo.php.
MediaWiki\Block\BlockActionInfo::getIdFromAction | ( | string | $action | ) |
string | $action |
Definition at line 108 of file BlockActionInfo.php.
const MediaWiki\Block\BlockActionInfo::ACTION_CREATE = 3 |
Definition at line 50 of file BlockActionInfo.php.
const MediaWiki\Block\BlockActionInfo::ACTION_MOVE = 2 |
Definition at line 47 of file BlockActionInfo.php.
const MediaWiki\Block\BlockActionInfo::ACTION_UPLOAD = 1 |
Definition at line 44 of file BlockActionInfo.php.