Property | Type | Description | |
---|---|---|---|
$arrCache | array | Cache | |
$objInstance | Object instance (Singleton) | ||
$strSapi | string | The SAPI name |
Method | Description | |
---|---|---|
__clone ( ) | Prevent cloning of the object (Singleton) | |
__get ( string $strKey ) : string | Return an environment variable | |
__set ( string $strKey, mixed $varValue ) | Set an environment variable | |
get ( string $strKey ) : mixed | Return an environment variable | |
getInstance ( ) : |
Return the object instance (Singleton) | |
reset ( ) | Reset the internal cache | |
set ( string $strKey, mixed $varValue ) | Set an environment variable |
Method | Description | |
---|---|---|
__construct ( ) | Prevent direct instantiation (Singleton) | |
agent ( ) : object | Return the operating system and the browser name and version | |
base ( ) : string |
Return the URL and path that can be used in a |
|
documentRoot ( ) : string | Return the document root (e.g. /home/www/user/) | |
encodeRequestString ( string $strRequest ) : string | Encode a request string preserving certain reserved characters | |
host ( ) : string | Return the host name | |
httpAcceptEncoding ( ) : array | Return accepted encoding types as array | |
httpAcceptLanguage ( ) : array | Return the first eight accepted languages as array | |
httpHost ( ) : string | Return the HTTP Host | |
httpUserAgent ( ) : string | Return the user agent as string | |
httpXForwardedHost ( ) : string | Return the HTTP X-Forwarded-Host | |
indexFreeRequest ( ) : string | Return the request string without the index.php fragment | |
ip ( ) : string | Return the real REMOTE_ADDR even if a proxy server is used | |
isAjaxRequest ( ) : boolean | Return true on Ajax requests | |
path ( ) : string | Return the relative path to the base directory (e.g. /path) | |
phpSelf ( ) : string | Alias for scriptName() | |
queryString ( ) : string | Return the query string (e.g. id=2) | |
relativeRequest ( ) : string | Return the request string without the script name (e.g. en/news.html) | |
request ( ) : string | Return the relativ path to the script and include the request (e.g. index.php?id=2) | |
requestUri ( ) : string | Return the request URI [path]?[query] (e.g. /contao/index.php?id=2) | |
script ( ) : string | Return the relativ path to the script (e.g. index.php) | |
scriptFilename ( ) : string | Return the absolute path to the script (e.g. /home/www/html/website/index.php) | |
scriptName ( ) : string | Return the relative path to the script (e.g. /website/index.php) | |
server ( ) : string | Return the SERVER_ADDR | |
ssl ( ) : boolean | Return true if the current page was requested via an SSL connection | |
uri ( ) : string | Return the current URL with path or query string | |
url ( ) : string | Return the current URL without path or query string |
protected static documentRoot ( ) : string | ||
return | string | The document root |
protected static encodeRequestString ( string $strRequest ) : string | ||
$strRequest | string | The request string |
return | string | The encoded request string |
public static getInstance ( ) : |
||
return | The object instance |
protected static httpAcceptEncoding ( ) : array | ||
return | array | The encoding types array |
protected static httpAcceptLanguage ( ) : array | ||
return | array | The languages array |
protected static httpUserAgent ( ) : string | ||
return | string | The user agent string |
protected static httpXForwardedHost ( ) : string | ||
return | string | The name of the X-Forwarded-Host |
protected static indexFreeRequest ( ) : string | ||
return | string | The request string without the index.php fragment |
protected static isAjaxRequest ( ) : boolean | ||
return | boolean | True if it is an Ajax request |
protected static queryString ( ) : string | ||
return | string | The query string |
protected static relativeRequest ( ) : string | ||
return | string | The base URL |
protected static requestUri ( ) : string | ||
return | string | The request URI |
protected static scriptFilename ( ) : string | ||
return | string | The absolute path to the script |
protected static scriptName ( ) : string | ||
return | string | The relative path to the script |
protected static Environment,contao $objInstance | ||
return |
protected static string $strSapi | ||
return | string |