MediaWiki master
|
Show an error when a user tries to do something they do not have the necessary permissions for. More...
Inherits ErrorPageError.
Public Member Functions | |
__construct (?string $permission, $status=[]) | |
report ( $action=self::SEND_OUTPUT) | |
![]() | |
__construct ( $title, $msg, $params=[]) | |
Note: these arguments are keys into wfMessage(), not text! | |
getMessageObject () | |
Return a Message object for this exception. | |
![]() | |
hasOverriddenHandler () | |
isLoggable () | |
Whether to log this exception in the exception debug log. | |
msg ( $key, $fallback,... $params) | |
Get a message from i18n. | |
report () | |
Output a report about the exception and takes care of formatting. | |
useMessageCache () | |
Can the extension use the Message class/wfMessage to get i18n-ed messages? | |
Additional Inherited Members | |
![]() | |
static | isCommandLine () |
Check whether we are in command line mode or not to report the exception in the correct format. | |
![]() | |
string MessageSpecifier | $msg |
array | $params |
string MessageSpecifier | $title |
const | SEND_OUTPUT = 0 |
const | STAGE_OUTPUT = 1 |
Show an error when a user tries to do something they do not have the necessary permissions for.
Definition at line 34 of file PermissionsError.php.
PermissionsError::__construct | ( | ?string | $permission, |
$status = [] ) |
string | null | $permission | A permission name or null if unknown |
PermissionStatus | array | $status | PermissionStatus containing an array of errors, or an error array like in PermissionManager::getPermissionErrors(); must not be empty if $permission is null |
Definition at line 49 of file PermissionsError.php.
References StatusValue\fatal(), StatusValue\getMessages(), and StatusValue\isGood().
PermissionsError::report | ( | $action = self::SEND_OUTPUT | ) |
int | $action |
FatalError | |
MWException |
Reimplemented from ErrorPageError.
Definition at line 104 of file PermissionsError.php.
References $wgOut.