메소드 | 설명 | |
---|---|---|
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. |
리턴 | array | Contains the guessed country code mapped to LocationProvider::COUNTRY_CODE_KEY. |
public getSupportedLocationInfo ( ) : array | ||
리턴 | array |
public isAvailable ( ) : boolean | ||
리턴 | boolean | always true |