17 private $http_request;
36 $this->http_request = $http_request;
46 return $this->validation;
55 return $this->getParam(
'_route');
66 return $this->http_request->getParams(
$filter);
104 $guid = $this->http_request->getParam(
$key);
123 $prop = $this->http_request->getParam(
$key);
124 if (
$key ===
'username') {
154 return $this->http_request->getCurrentURL();
162 return implode(
'/', $this->http_request->getUrlSegments());
170 return $this->http_request->isXmlHttpRequest();
178 return $this->http_request->getMethod();
187 return $this->http_request;
getHttpRequest()
Get the HttpRequest for this request.
getURL()
Get URL of the request.
validation()
Access validation results bag.
setParam($key, $value=null)
Set request parameter.
__construct(PublicContainer $dic, HttpRequest $http_request)
Constructor.
getEntityParam($key= 'guid')
Gets the "entity" key from the params if it holds an Elgg entity.
Represents a set of validated parameters.
getParams($filter=true)
Get the parameters from the request query and route matches.
getParam($key, $default=null, $filter=true)
Get an element of the params array.
isXhr()
Is the route access with XmlHttpRequest.
get_user_by_username($username)
Get user by username.
getMethod()
Get HTTP method of the request.
elgg()
Get the DI container.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
getRoute()
Get the name of the route.
getPath()
Get relative path of the request.
getUserParam($key= 'user_guid')
Gets the "user" key from the params if it holds an Elgg user.
$guid
Reset an ElggUpgrade.
get_entity($guid)
Loads and returns an entity object from a guid.