Method | Description | |
---|---|---|
getInfo ( ) : array | Returns information about this location provider. Contains an id, title & description: | |
getLocation ( array $info ) : array | Uses a GeoIP database 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 | string | Checks if an HTTP server module has been installed. It checks by looking for the GEOIP_ADDR server variable. | |
isSameOrAnonymizedIp ( string $ip, string $currentIp ) : boolean | Checks if two IP addresses are the same or if the first is the anonymized version of the other. | |
isWorking ( ) : boolean | Returns true if the GEOIP_ADDR server variable is defined. |
public getLocation ( array $info ) : array | ||
$info | array | Must have an 'ip' field. |
return | array |
public getSupportedLocationInfo ( ) : array | ||
return | array |
public isAvailable ( ) : boolean | string | ||
return | boolean | string |