Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
GroupGatekeeperException.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg
;
4
5
use
Throwable
;
6
10
class
GroupGatekeeperException
extends
HttpException
{
11
15
public
function
__construct
(
string
$message
=
""
,
int
$code
= 0,
Throwable
$previous = null) {
16
if
(!
$message
) {
17
$message
=
elgg_echo
(
'membershiprequired'
);
18
}
19
if
(!
$code
) {
20
$code
=
ELGG_HTTP_FORBIDDEN
;
21
}
22
parent::__construct(
$message
,
$code
, $previous);
23
}
24
}
Elgg\HttpException
Generic HTTP exception.
Definition:
HttpException.php:8
ELGG_HTTP_FORBIDDEN
const ELGG_HTTP_FORBIDDEN
Definition:
constants.php:82
$message
$message
Definition:
set_maintenance_mode.php:7
elgg_echo
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
$code
$code
Definition:
changepassword.php:9
Elgg
Configuration exception.
Elgg\GroupGatekeeperException
Thrown when one of the gatekeepers prevents access.
Definition:
GroupGatekeeperException.php:10
Elgg\GroupGatekeeperException\__construct
__construct(string $message="", int $code=0, Throwable $previous=null)
{}
Definition:
GroupGatekeeperException.php:15
Throwable
Generated on Mon Jan 18 2021 00:00:24 for Elgg by
1.8.11