public function SetDestinationCountry($countryId) { $countryInfo = GetCountryInfoById($countryId); if (isset($countryInfo['countryname'])) { $this->_destination_country['country_name'] = $countryInfo['countryname']; $this->_destination_country['country_iso'] = $countryInfo['countryiso2']; } }
/** * Return a country's 3 digit ISO code based on its id */ function GetCountryISO3ById($countryId) { $countryInfo = GetCountryInfoById($countryId); if (isset($countryInfo['countryiso3'])) { return $countryInfo['countryiso3']; } else { return ''; } }