Information about the client request

Class Methods

The following methods can be invoked on instances of this class.

handle()

handleApacheModRewrite()

Sets up the request by looking at Apache's mod_rewrite parameters and merges $_GET

getScheme()

Returns the current scheme of the current URL
Returns 'http' for HTTP connections or 'https' for HTTPS connections

getSchemePrefix()

Returns the current scheme of the current URL
Returns 'http://' for HTTP connections or 'https://' for HTTPS connections

getHost()

Returns the current host / domain

getServerFQDN()

Determines and returns the current servers fully qualified domain name

getCurrentURL()

Reurns the full URL of the current request

setCurrentURI(string strURL)

Sets the current URI of the page the user is currently visiting

getCurrentURI()

Returns the URI of the page the user is currently visiting

getCurrentURIFile()

Returns the file part of the url the user is currently visiting

getCurrentURIQueryString()

Returns the current query string

setPreviousURI(mixed strURL)

Sets the previous URL that the user visited
Note: This is automatically handled by the framework and should not be invoked by the user.

getPreviousURI()

Returns the URL that the user visited prior to this page

setReferrer()

getReferrer()

Returns the url of the page that referred the visitor to your site

getIP()

Returns the remote ip of the current user

getCountryCodeFromIP()

Returns the visitors country from their IP address
This call is expensive as it queries the maxmind geoip database

getIsFirstVisit()

Returns whether or not this page is the first hit onto the site

getIsAjax()

Is the request via an AJAX method call

getIsAJAXNavigation()

Is the request via an AJAX request

getIsPostBack()

Is the request via POST

getIsSSL()

Is the current request running over SSL

getIsWeb()

Returns whether or not the request is a web request over http

getPort()

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class