Elgg  Version 4.3
AdminGatekeeperException.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
13 
17  public function __construct(string $message = "", int $code = 0, \Throwable $previous = null) {
18  if (!$message) {
19  $message = elgg_echo('adminrequired');
20  }
21 
22  if (!$code) {
24  }
25 
26  parent::__construct($message, $code, $previous);
27  }
28 }
const ELGG_HTTP_FORBIDDEN
Definition: constants.php:82
Thrown when the logged in user is not an admin.
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
__construct(string $message="", int $code=0,\Throwable $previous=null)
{}
Thrown when one of the gatekeepers prevents access.