Components \ commerce \ affiliates administrators commissions payments \ configuration paymentmethods \ shippingmethods \ methods delivery discounts \ products brands categories \ recurringsales storedcards \ sales items \ receipts allocations \ customers \ contacts passwords referrertypes \ relationships types \ groups contacts \ marketing \ emailmarketing \ sends contacts unsubscribers \ events attendees locations \ reminders \ automation eventremindertrigger \ settings administrators components configurationitems cpanel customfields \ developer scheduledtasks threads domains \ website \ analytics sessions comments \ designs generator media pages \ posts categories Framework \ architecture publicassets \ assets css javascript \ caching filebased \ components textualids \ data util \ database mainconnection date \ dom currentcontext renderer \ html converters highlighter javascript \ http redirection request session useragent \ i18n companytypes countries languages \ network cidr dns geoip random \ reflection api \ system filenames filesystem toasts
.
.
.
quick access
\ methods

\Framework\HTTP\Request::

Class Methods

The following static methods are available on this class:
string getCountryCodeFromIP()
Description
Returns the visitors country from their IP address

This call is expensive as it queries the maxmind geoip database
Parameters
none
Return
Country code (3 chars)
string getCurrentURI()
Description
Returns the URI of the page the user is currently visiting
Parameters
none
Return
URL
void getCurrentURIPath()
Description
Returns the current URI without a query string
Parameters
none
Return
void
string getCurrentURIQueryString()
Description
Returns the current query string
Parameters
none
Return
Query string
string getHost()
Description
Returns the current host / domain
Parameters
none
Return
Host name
string getIP()
Description
Returns the remote ip of the current user
Parameters
none
Return
IP address
bool getIsSSL()
Description
Is the current request running over SSL
Parameters
none
Return
True if ssl, else false