RegionDataProvider
This documentation is for an outdated Matomo version.
Click here if you want to read this article for the latest version.
Click here if you want to read this article for the latest version.
Piwik\Intl\Data\Provider\
RegionDataProvider
Provides region related data (continents, countries, etc.).
Methods
The class defines the following methods:
getContinentList()— Returns the list of continent codes.getCountryList()— Returns the list of valid country codes.
getContinentList()
Returns the list of continent codes.
Signature
- Returns:
string[]— Array of 3 letter continent codes
getCountryList()
Returns the list of valid country codes.
Signature
It accepts the following parameter(s):
$includeInternalCodes(bool) —
Returns:
string[]— Array of 2 letter country ISO codes => 3 letter continent code