BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
PermissionsError Class Reference
Inheritance diagram for PermissionsError:
Collaboration diagram for PermissionsError:

Public Member Functions

 __construct ($permission, $errors=[])
 
 report ()
 
- Public Member Functions inherited from ErrorPageError
 __construct ($title, $msg, $params=[])
 
 getMessageObject ()
 
 report ()
 
- Public Member Functions inherited from MWException
 useOutputPage ()
 
 isLoggable ()
 
 useMessageCache ()
 
 msg ($key, $fallback)
 
 getHTML ()
 
 getText ()
 
 getPageTitle ()
 
 reportHTML ()
 
 report ()
 
- Public Member Functions inherited from Exception
 __construct ($message="", $code=0, Throwable $previous=null)
 
 getMessage ()
 
 getCode ()
 
 getFile ()
 
 getLine ()
 
 getTrace ()
 
 getPrevious ()
 
 getTraceAsString ()
 
 __toString ()
 

Public Attributes

 $permission
 
 $errors
 
- Public Attributes inherited from ErrorPageError
 $title
 
 $msg
 
 $params
 

Additional Inherited Members

- Static Public Member Functions inherited from MWException
static isCommandLine ()
 
- Protected Attributes inherited from Exception
 $message
 
 $code
 
 $file
 
 $line
 

Detailed Description

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

Since
1.18

Constructor & Destructor Documentation

PermissionsError::__construct (   $permission,
  $errors = [] 
)
Parameters
string | null$permissionA permission name or null if unknown
array$errorsError message keys or [key, param...] arrays; must not be empty if $permission is null
Exceptions
\InvalidArgumentException

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