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.

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