class UserCountryModule extends Module (View source)

Class UserCountryModule.

Properties

protected RequestRepository $request from  Module

Methods

__construct(RequestRepository $request)

Module constructor.

from  Module
getOptions(string $format)

No description

from  Module
mixed
getCountry($arguments = [], string $format = null)

No description

mixed
getContinent($arguments = [], string $format = null)

No description

mixed
getRegion($arguments = [], string $format = null)

No description

mixed
getCity($arguments = [], string $format = null)

No description

mixed
getCountryCodeMapping(string $format = null)

No description

mixed
getLocationFromIP(string $ip, $arguments = [], string $format = null)

No description

mixed
getNumberOfDistinctCountries($arguments = [], string $format = null)

No description

Details

__construct(RequestRepository $request)

Module constructor.

Parameters

RequestRepository $request

protected RequestOptions getOptions(string $format)

No description

Parameters

string $format

response format

Return Value

RequestOptions

mixed getCountry($arguments = [], string $format = null)

No description

Parameters

$arguments
string $format

override format (defaults to one specified in config file)

Return Value

mixed

mixed getContinent($arguments = [], string $format = null)

No description

Parameters

$arguments
string $format

override format (defaults to one specified in config file)

Return Value

mixed

mixed getRegion($arguments = [], string $format = null)

No description

Parameters

$arguments
string $format

override format (defaults to one specified in config file)

Return Value

mixed

mixed getCity($arguments = [], string $format = null)

No description

Parameters

$arguments
string $format

override format (defaults to one specified in config file)

Return Value

mixed

mixed getCountryCodeMapping(string $format = null)

No description

Parameters

string $format

override format (defaults to one specified in config file)

Return Value

mixed

mixed getLocationFromIP(string $ip, $arguments = [], string $format = null)

No description

Parameters

string $ip

The IP to search for a location from

$arguments
string $format

override format (defaults to one specified in config file)

Return Value

mixed

mixed getNumberOfDistinctCountries($arguments = [], string $format = null)

No description

Parameters

$arguments
string $format

override format (defaults to one specified in config file)

Return Value

mixed