public static function getContinent($country)
    {
        /** @var RegionDataProvider $dataProvider */
        $dataProvider = StaticContainer::get('Piwik\Intl\Data\Provider\RegionDataProvider');

        $countryList = $dataProvider->getCountryList();

        if ($country == 'ti') {
            $country = 'cn';
        }

        return isset($countryList[$country]) ? $countryList[$country] : 'unk';
    }
public static function getContinent($country)
    {
        /** @var RegionDataProvider $dataProvider */
        $dataProvider = StaticContainer::get('Piwik\Intl\Data\Provider\RegionDataProvider');

        $countryList = $dataProvider->getCountryList();

        if ($country == 'ti') {
            $country = 'cn';
        }

        return isset($countryList[$country]) ? $countryList[$country] : 'unk';
    }
public static function getContinent ( $ country ) { /** @var RegionDataProvider $dataProvider */ $ dataProvider = StaticContainer :: get ( 'Piwik\Intl\Data\Provider\RegionDataProvider' ) ; $ countryList = $ dataProvider -> getCountryList ( ) ; if ( $ country == 'ti' ) { $ country = 'cn' ; } return isset ( $ countryList [ $ country ] ) ? $ countryList [ $ country ] : 'unk' ; }
Returns the continent of a given country

@param string $country 2 letters iso code

@return string  Continent (3 letters code : afr, asi, eur, amn, ams, oce)
Returns the continent of a given country