PHP 클래스 Piwik\Plugins\UserCountry\API

상속: extends Piwik\Plugin\API
파일 보기 프로젝트 열기: piwik/piwik

공개 메소드들

메소드 설명
getCity ( integer | string $idSite, string $period, string $date, string | boolean $segment = false ) : DataTable Returns visit information for every city with at least one visit.
getContinent ( $idSite, $period, $date, $segment = false )
getCountry ( $idSite, $period, $date, $segment = false )
getLocationFromIP ( string $ip, boolean | string $provider = false ) : array | false Uses a location provider to find/guess the location of an IP address.
getNumberOfDistinctCountries ( $idSite, $period, $date, $segment = false )
getRegion ( integer | string $idSite, string $period, string $date, string | boolean $segment = false ) : DataTable Returns visit information for every region with at least one visit.
setLocationProvider ( string $providerId ) Set the location provider

보호된 메소드들

메소드 설명
getDataTable ( $name, $idSite, $period, $date, $segment )

메소드 상세

getCity() 공개 메소드

Returns visit information for every city with at least one visit.
public getCity ( integer | string $idSite, string $period, string $date, string | boolean $segment = false ) : DataTable
$idSite integer | string
$period string
$date string
$segment string | boolean
리턴 Piwik\DataTable

getContinent() 공개 메소드

public getContinent ( $idSite, $period, $date, $segment = false )

getCountry() 공개 메소드

public getCountry ( $idSite, $period, $date, $segment = false )

getDataTable() 보호된 메소드

protected getDataTable ( $name, $idSite, $period, $date, $segment )

getLocationFromIP() 공개 메소드

See LocationProvider::getLocation to see the details of the result of this function.
public getLocationFromIP ( string $ip, boolean | string $provider = false ) : array | false
$ip string The IP address.
$provider boolean | string The ID of the provider to use or false to use the currently configured one.
리턴 array | false

getNumberOfDistinctCountries() 공개 메소드

public getNumberOfDistinctCountries ( $idSite, $period, $date, $segment = false )

getRegion() 공개 메소드

Returns visit information for every region with at least one visit.
public getRegion ( integer | string $idSite, string $period, string $date, string | boolean $segment = false ) : DataTable
$idSite integer | string
$period string
$date string
$segment string | boolean
리턴 Piwik\DataTable

setLocationProvider() 공개 메소드

Set the location provider
public setLocationProvider ( string $providerId )
$providerId string The ID of the provider to use eg 'default', 'geoip_php', ...