4 use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
24 $path = htmlspecialchars(
$path, ENT_QUOTES,
'UTF-8');
30 return explode(
'/',
$path);
41 $query = $this->query->all();
43 return $this->duplicate($query);
56 return array_shift($segments);
66 $ip = parent::getClientIp();
68 if ($ip == $this->server->get(
'REMOTE_ADDR')) {
70 $ip_addresses = $this->server->get(
'HTTP_X_REAL_IP');
72 $ip_addresses = explode(
',', $ip_addresses);
73 return array_pop($ip_addresses);
84 return (strtolower($this->headers->get(
'X-Requested-With')) ===
'xmlhttprequest' 85 || $this->query->get(
'X-Requested-With') ===
'XMLHttpRequest' 86 || $this->request->get(
'X-Requested-With') ===
'XMLHttpRequest');
getFirstUrlSegment()
Get first Elgg URL segment.
getUrlSegments($raw=false)
Get the Elgg URL segments.
setUrlSegments(array $segments)
Get a cloned request with new Elgg URL segments.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use