Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Exceptions
Http
Gatekeeper
AjaxGatekeeperException.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
AjaxGatekeeperException
extends
GatekeeperException
{
13
17
public
function
__construct
(
string
$message
=
''
,
int
$code
= 0, \Throwable $previous = null) {
18
if
(!
$message
) {
19
$message
=
elgg_echo
(
'ajax:not_is_xhr'
);
20
}
21
22
if
(!
$code
) {
23
$code
=
ELGG_HTTP_BAD_REQUEST
;
24
}
25
26
parent::__construct(
$message
,
$code
, $previous);
27
}
28
}
Elgg\Exceptions\Http\Gatekeeper\AjaxGatekeeperException\__construct
__construct(string $message= '', int $code=0,\Throwable $previous=null)
{}
Definition:
AjaxGatekeeperException.php:17
$message
$message
Definition:
set_maintenance_mode.php:7
elgg_echo
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition:
languages.php:17
$code
$code
Definition:
changepassword.php:12
Elgg\Exceptions\Http\Gatekeeper
Definition:
AdminGatekeeperException.php:3
ELGG_HTTP_BAD_REQUEST
const ELGG_HTTP_BAD_REQUEST
Definition:
constants.php:64
Elgg\Exceptions\Http\GatekeeperException
Thrown when one of the gatekeepers prevents access.
Definition:
GatekeeperException.php:12
Elgg\Exceptions\Http\Gatekeeper\AjaxGatekeeperException
Thrown when the request is not a valid ajax request.
Definition:
AjaxGatekeeperException.php:12
GatekeeperException
Generated on Sat Dec 14 2024 00:00:24 for Elgg by
1.8.11