Elgg
Version 6.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Exceptions
HttpException.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Exceptions
;
4
10
class
HttpException
extends
Exception
{
11
15
protected
$params
= [];
16
20
protected
$url
;
21
29
public
function
setParams
(array
$params
= []) {
30
$this->params =
$params
;
31
}
32
37
public
function
getParams
() {
38
return
$this->params
;
39
}
40
46
public
function
getParam
(
$name
) {
47
return
elgg_extract
(
$name
, $this->params);
48
}
49
57
public
function
setRedirectUrl
(
$url
) {
58
$this->url =
$url
;
59
}
60
65
public
function
getRedirectUrl
() {
66
return
$this->url
;
67
}
68
}
Elgg\Exceptions\HttpException\setParams
setParams(array $params=[])
Set params to provide context about the exception.
Definition:
HttpException.php:29
Elgg\Exceptions\HttpException\getParam
getParam($name)
Get a parameter value.
Definition:
HttpException.php:46
$name
if(!$user||!$user->canDelete()) $name
Definition:
delete.php:22
Elgg\Exceptions\HttpException\$params
$params
Definition:
HttpException.php:15
Elgg\Exceptions\HttpException\setRedirectUrl
setRedirectUrl($url)
Set preferred redirect URL If set, a redirect response will be issued.
Definition:
HttpException.php:57
Elgg\Exceptions\HttpException\$url
$url
Definition:
HttpException.php:20
elgg_extract
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:254
Elgg\Exceptions\Exception
Base exception of exceptions in the Elgg system.
Definition:
Exception.php:11
Elgg\Exceptions\HttpException
Generic HTTP exception.
Definition:
HttpException.php:10
Elgg\Exceptions
Definition:
AuthenticationException.php:3
Elgg\Exceptions\HttpException\getParams
getParams()
Retrieve exception parameters.
Definition:
HttpException.php:37
Elgg\Exceptions\HttpException\getRedirectUrl
getRedirectUrl()
Get preferred redirect URL.
Definition:
HttpException.php:65
Generated on Fri Oct 4 2024 00:00:26 for Elgg by
1.8.11