Method |
Description |
|
getInfo ( ) : array |
Returns information about this location provider. Contains an id, title & description: |
|
getLocation ( array $info ) : array |
Uses the GeoIP PECL module to get a visitor's location based on their IP address. |
|
getSupportedLocationInfo ( ) : array |
Returns an array describing the types of location information this provider will
return. |
|
isAvailable ( ) : boolean |
Returns true if the PECL module is installed and loaded, false if otherwise. |
|
isCityDatabaseAvailable ( ) : boolean |
Returns true if the PECL module can detect a city database. |
|
isCountryDatabaseAvailable ( ) : boolean |
Returns true if the PECL module can detect a country database. |
|
isISPDatabaseAvailable ( ) : boolean |
Returns true if the PECL module can detect an ISP database. |
|
isLocationDatabaseAvailable ( ) : boolean |
Returns true if the PECL module can detect a location database (either a country,
region or city will do). |
|
isOrgDatabaseAvailable ( ) : boolean |
Returns true if the PECL module can detect an organization database. |
|
isRegionDatabaseAvailable ( ) : boolean |
Returns true if the PECL module can detect a region database. |
|
isWorking ( ) : boolean |
Returns true if the PECL module that is installed can be successfully used
to get the location of an IP address. |
|