|
MediaWiki
REL1_23
|
Show an error when a user tries to do something they do not have the necessary permissions for. More...


Public Member Functions | |
| __construct ($permission, $errors=array()) | |
| report () | |
| Output a report about the exception and takes care of formatting. | |
Public Attributes | |
| $errors | |
| $permission | |
Show an error when a user tries to do something they do not have the necessary permissions for.
Definition at line 28 of file PermissionsError.php.
| PermissionsError::__construct | ( | $ | permission, |
| $ | errors = array() |
||
| ) |
Definition at line 31 of file PermissionsError.php.
References $errors, $permission, $wgLang, array(), errors, User\getGroupsWithPermission(), and global.
Output a report about the exception and takes care of formatting.
It will be either HTML or plain text based on isCommandLine().
Reimplemented from ErrorPageError.
Definition at line 52 of file PermissionsError.php.
| PermissionsError::$errors |
Definition at line 29 of file PermissionsError.php.
Referenced by __construct().
| PermissionsError::$permission |
Definition at line 29 of file PermissionsError.php.
Referenced by __construct().