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

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$fallback Driver The fallback driver.

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

Метод Описание
fallback ( Driver $handler ) Append a fallback driver to the end of the chain.
get ( string $ip ) : Position | boolean Handle the driver request.

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

Метод Описание
hydrate ( Position $position, Illuminate\Support\Fluent $location ) : Position Hydrates the position with the given location instance using the drivers array map.
process ( string $ip ) : Illuminate\Support\Fluent | boolean Process the specified driver.
url ( ) : string Returns the URL to use for querying the current driver.

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

fallback() публичный Метод

Append a fallback driver to the end of the chain.
public fallback ( Driver $handler )
$handler Driver

get() публичный Метод

Handle the driver request.
public get ( string $ip ) : Position | boolean
$ip string
Результат Stevebauman\Location\Position | boolean

hydrate() абстрактный защищенный Метод

Hydrates the position with the given location instance using the drivers array map.
abstract protected hydrate ( Position $position, Illuminate\Support\Fluent $location ) : Position
$position Stevebauman\Location\Position
$location Illuminate\Support\Fluent
Результат Stevebauman\Location\Position

process() абстрактный защищенный Метод

Process the specified driver.
abstract protected process ( string $ip ) : Illuminate\Support\Fluent | boolean
$ip string
Результат Illuminate\Support\Fluent | boolean

url() абстрактный защищенный Метод

Returns the URL to use for querying the current driver.
abstract protected url ( ) : string
Результат string

Описание свойств

$fallback защищенное свойство

The fallback driver.
protected Driver,Stevebauman\Location\Drivers $fallback
Результат Driver