PHP 클래스 Stevebauman\Location\Drivers\Driver

파일 보기 프로젝트 열기: stevebauman/location 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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