PHP Class Stevebauman\Location\Drivers\MaxMind

Inheritance: extends Driver
Afficher le fichier Open project: stevebauman/location

Méthodes publiques

Méthode Description
url ( )

Méthodes protégées

Méthode Description
getDatabasePath ( ) : string Returns the MaxMind database file path.
getLicenseKey ( ) : string Returns the configured MaxMind web license key.
getOptions ( ) : array Returns the configured MaxMind web option array.
getUserId ( ) : string Returns the configured MaxMind web user ID.
hydrate ( Position $position, Illuminate\Support\Fluent $location )
isWebServiceEnabled ( ) : mixed Returns true / false if the MaxMind web service is enabled.
newClient ( string $userId, string $licenseKey, array $options = [] ) : GeoIp2\WebService\Client Returns a new MaxMind web service client.
newReader ( string $path ) : GeoIp2\Database\Reader Returns a new MaxMind reader client with the specified database file path.
process ( $ip )

Method Details

getDatabasePath() protected méthode

Returns the MaxMind database file path.
protected getDatabasePath ( ) : string
Résultat string

getLicenseKey() protected méthode

Returns the configured MaxMind web license key.
protected getLicenseKey ( ) : string
Résultat string

getOptions() protected méthode

Returns the configured MaxMind web option array.
protected getOptions ( ) : array
Résultat array

getUserId() protected méthode

Returns the configured MaxMind web user ID.
protected getUserId ( ) : string
Résultat string

hydrate() protected méthode

protected hydrate ( Position $position, Illuminate\Support\Fluent $location )
$position Stevebauman\Location\Position
$location Illuminate\Support\Fluent

isWebServiceEnabled() protected méthode

Returns true / false if the MaxMind web service is enabled.
protected isWebServiceEnabled ( ) : mixed
Résultat mixed

newClient() protected méthode

Returns a new MaxMind web service client.
protected newClient ( string $userId, string $licenseKey, array $options = [] ) : GeoIp2\WebService\Client
$userId string
$licenseKey string
$options array
Résultat GeoIp2\WebService\Client

newReader() protected méthode

Returns a new MaxMind reader client with the specified database file path.
protected newReader ( string $path ) : GeoIp2\Database\Reader
$path string
Résultat GeoIp2\Database\Reader

process() protected méthode

protected process ( $ip )

url() public méthode

public url ( )