PHP Класс Stevebauman\Location\Drivers\MaxMind

Наследование: extends Driver
Показать файл Открыть проект

Открытые методы

Метод Описание
url ( )

Защищенные методы

Метод Описание
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 )

Описание методов

getDatabasePath() защищенный метод

Returns the MaxMind database file path.
protected getDatabasePath ( ) : string
Результат string

getLicenseKey() защищенный метод

Returns the configured MaxMind web license key.
protected getLicenseKey ( ) : string
Результат string

getOptions() защищенный метод

Returns the configured MaxMind web option array.
protected getOptions ( ) : array
Результат array

getUserId() защищенный метод

Returns the configured MaxMind web user ID.
protected getUserId ( ) : string
Результат string

hydrate() защищенный метод

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

isWebServiceEnabled() защищенный метод

Returns true / false if the MaxMind web service is enabled.
protected isWebServiceEnabled ( ) : mixed
Результат mixed

newClient() защищенный метод

Returns a new MaxMind web service client.
protected newClient ( string $userId, string $licenseKey, array $options = [] ) : GeoIp2\WebService\Client
$userId string
$licenseKey string
$options array
Результат GeoIp2\WebService\Client

newReader() защищенный метод

Returns a new MaxMind reader client with the specified database file path.
protected newReader ( string $path ) : GeoIp2\Database\Reader
$path string
Результат GeoIp2\Database\Reader

process() защищенный метод

protected process ( $ip )

url() публичный метод

public url ( )