MediaWiki  REL1_22
PermissionsError Class Reference

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

Inheritance diagram for PermissionsError:
Collaboration diagram for PermissionsError:

List of all members.

Public Member Functions

 __construct ($permission, $errors=array())
 report ()
 Output a report about the exception and takes care of formatting.

Public Attributes

 $errors
 $permission

Detailed Description

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

Since:
1.18

Definition at line 379 of file Exception.php.


Constructor & Destructor Documentation

PermissionsError::__construct ( permission,
errors = array() 
)

Definition at line 382 of file Exception.php.

References $errors, $permission, $wgLang, array(), errors, User\getGroupsWithPermission(), and global.


Member Function Documentation

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 403 of file Exception.php.

References $wgOut, errors, and global.


Member Data Documentation

PermissionsError::$errors

Definition at line 380 of file Exception.php.

Referenced by __construct().

PermissionsError::$permission

Definition at line 380 of file Exception.php.

Referenced by __construct().


The documentation for this class was generated from the following file: