| 
    Bristol SU Support Package
    
   | 
 


Public Member Functions | |
| __construct ($message="", $code=0, Throwable $previous=null, $activity=null) | |
| getActivity () | |
Static Public Member Functions | |
| static | createWithActivity (Activity $activity, string $message='', int $code=0) | 
Private Attributes | |
| $activity | |
Exception to indicate an activity could not be accessed with the current credentials
Definition at line 12 of file ActivityRequiresAdmin.php.
| BristolSU\Support\Authorization\Exception\ActivityRequiresAdmin::__construct | ( | $message = "",  | 
        |
$code = 0,  | 
        |||
| Throwable | $previous = null,  | 
        ||
$activity = null  | 
        |||
| ) | 
Initialise the exception
| string | $message | Message for the exception | 
| int | $code | Status code | 
| Throwable | null | $previous | Previous exception | 
| Activity | $activity | Activity that was accessed | 
Definition at line 29 of file ActivityRequiresAdmin.php.
References BristolSU\Support\Authorization\Exception\ActivityRequiresAdmin\$activity.
      
  | 
  static | 
Create the exception with a given activity
| Activity | $activity | Activity that was accessed | 
| string | $message | Message for the exception | 
| int | $code | Status code | 
Definition at line 44 of file ActivityRequiresAdmin.php.
References BristolSU\Support\Authorization\Exception\ActivityRequiresAdmin\$activity.
Referenced by BristolSU\Support\Authorization\Middleware\CheckAdminActivityFor\handle().
| BristolSU\Support\Authorization\Exception\ActivityRequiresAdmin::getActivity | ( | ) | 
Get the activity
Definition at line 54 of file ActivityRequiresAdmin.php.
References BristolSU\Support\Authorization\Exception\ActivityRequiresAdmin\$activity.
      
  | 
  private | 
Definition at line 19 of file ActivityRequiresAdmin.php.
Referenced by BristolSU\Support\Authorization\Exception\ActivityRequiresAdmin\__construct(), BristolSU\Support\Authorization\Exception\ActivityRequiresAdmin\createWithActivity(), and BristolSU\Support\Authorization\Exception\ActivityRequiresAdmin\getActivity().
 1.8.13