PHP Класс Piwik\Plugins\UserCountry\API

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

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

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