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\Network\GeoIP::

Some functions require a licensed version of the MaxMind GeoIP database. If you need to use these functions, please purchase the database and then call setGeoIPDB

Class Methods

The following static methods are available on this class:
string getCity($strIP)
Description
Returns a city for an ip address

Requires licensed version of GeoIP database
Parameters
$strIP
string
Return
City
string getCountryCode($strIP)
Description
Returns a country code for an ip address (3 chars)
Parameters
$strIP
string
Return
Country code (3 chars)
string getRegion($strIP)
Description
Returns the region for an ip address

Requires licensed version of GeoIP database
Parameters
$strIP
string
Return
Region