Method | Description | |
---|---|---|
getInfo ( ) : array | Returns information about this location provider. Contains an id, title & description: | |
getLocation ( array $info ) : array | Guesses a visitor's location using a visitor's browser language. | |
getSupportedLocationInfo ( ) : array | Returns an array describing the types of location information this provider will return. | |
isAvailable ( ) : boolean | Returns whether this location provider is available. | |
isWorking ( ) : boolean | Returns whether this location provider is working correctly. |
public getLocation ( array $info ) : array | ||
$info | array | Contains 'ip' & 'lang' keys. |
return | array | Contains the guessed country code mapped to LocationProvider::COUNTRY_CODE_KEY. |
public getSupportedLocationInfo ( ) : array | ||
return | array |
public isAvailable ( ) : boolean | ||
return | boolean | always true |