34 return $this->validation;
43 return $this->getParam(
'_route');
54 return $this->http_request->getParams(
$filter);
92 $guid = (int) $this->http_request->getParam(
$key);
108 $prop = $this->http_request->getParam(
$key);
113 if (
$key ===
'username') {
134 return $this->http_request->getCurrentURL();
142 return implode(
'/', $this->http_request->getUrlSegments());
150 return $this->http_request->isXmlHttpRequest();
158 return $this->http_request->getMethod();
167 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.
elgg_get_user_by_username(string $username, bool $try_email=false)
Get a user by username.
Represents a set of validated parameters.
getUserParam(string $key= 'user_guid')
Gets the "user" key from the params if it holds an Elgg user.
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.
getMethod()
Get HTTP method of the request.
getEntityParam(string $key= 'guid')
Gets the "entity" key from the params if it holds an Elgg entity.
get_entity(int $guid)
Loads and returns an entity object from a guid.
$filter
Layout content filter.
elgg()
Get the DI container.
__construct(protected PublicContainer $dic, protected HttpRequest $http_request)
Constructor.
get_user(int $guid)
Elgg users Functions to manage multiple or single users in an Elgg install.
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.
$guid
Reset an ElggUpgrade.