PHP 클래스 Piwik\Plugins\UserCountry\LocationProvider\DefaultProvider

상속: extends Piwik\Plugins\UserCountry\LocationProvider
파일 보기 프로젝트 열기: piwik/piwik

공개 메소드들

메소드 설명
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.

메소드 상세

getInfo() 공개 메소드

array( 'id' => 'default', 'title' => '...', 'description' => '...' );
public getInfo ( ) : array
리턴 array

getLocation() 공개 메소드

Guesses a visitor's location using a visitor's browser language.
public getLocation ( array $info ) : array
$info array Contains 'ip' & 'lang' keys.
리턴 array Contains the guessed country code mapped to LocationProvider::COUNTRY_CODE_KEY.

getSupportedLocationInfo() 공개 메소드

This provider supports the following types of location info: - continent code - continent name - country code - country name
public getSupportedLocationInfo ( ) : array
리턴 array

isAvailable() 공개 메소드

This implementation is always available.
public isAvailable ( ) : boolean
리턴 boolean always true

isWorking() 공개 메소드

This implementation is always working correctly.
public isWorking ( ) : boolean
리턴 boolean always true