Elgg
Version 6.2
engine
classes
Elgg
Exceptions
Http
Gatekeeper
LoggedOutGatekeeperException.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Exceptions\Http\Gatekeeper
;
4
5
use
Elgg\Exceptions\Http\GatekeeperException
;
6
12
class
LoggedOutGatekeeperException
extends
GatekeeperException
{
13
17
public
function
__construct
(
string
$message
=
''
,
int
$code
= 0, ?\Throwable $previous =
null
) {
18
if
(!
$message
) {
19
$message
=
elgg_echo
(
'loggedoutrequired'
);
20
}
21
22
if
(!
$code
) {
23
$code
=
ELGG_HTTP_FORBIDDEN
;
24
}
25
26
parent::__construct(
$message
,
$code
, $previous);
27
}
28
}
$message
$message
Definition:
set_maintenance_mode.php:7
$code
$code
Definition:
changepassword.php:12
Elgg\Exceptions\Http\GatekeeperException
Thrown when one of the gatekeepers prevents access.
Definition:
GatekeeperException.php:10
Elgg\Exceptions\Http\Gatekeeper\LoggedOutGatekeeperException
Thrown when logged in but this isn't allowed.
Definition:
LoggedOutGatekeeperException.php:12
Elgg\Exceptions\Http\Gatekeeper\LoggedOutGatekeeperException\__construct
__construct(string $message='', int $code=0, ?\Throwable $previous=null)
{{{}}}
Definition:
LoggedOutGatekeeperException.php:17
ELGG_HTTP_FORBIDDEN
const ELGG_HTTP_FORBIDDEN
Definition:
constants.php:67
elgg_echo
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition:
languages.php:17
Elgg\Exceptions\Http\Gatekeeper
Definition:
AdminGatekeeperException.php:3
Generated on Mon Aug 25 2025 00:00:21 for Elgg by
1.9.1