4 use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
47 array $cookies = array(), array
$files = array(), array $server = array(),
$content = null) {
53 $this->server =
new ServerBag($server);
54 $this->headers =
new HeaderBag($this->server->getHeaders());
57 $this->languages = null;
58 $this->charsets = null;
59 $this->encodings = null;
60 $this->acceptableContentTypes = null;
61 $this->pathInfo = null;
62 $this->requestUri = null;
63 $this->baseUrl = null;
64 $this->basePath = null;
77 $path = trim($this->query->get(
'__elgg_uri'),
'/');
82 return explode(
'/',
$path);
95 return array_shift($segments);
105 $ip = parent::getClientIp();
107 if ($ip == $this->server->get(
'REMOTE_ADDR')) {
109 $ip_addresses = $this->server->get(
'HTTP_X_REAL_IP');
111 return array_pop(explode(
',', $ip_addresses));
125 if (get_magic_quotes_gpc()) {
getFirstUrlSegment()
Get first URL segment from the path info.
stripSlashesIfMagicQuotes($data)
Strip slashes if magic quotes is on.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition files
getUrlSegments()
Get URL segments from the path info.
$content
Set robots.txt action.
initialize(array $query=array(), array $request=array(), array $attributes=array(), array $cookies=array(), array $files=array(), array $server=array(), $content=null)