*/ class Mage_Directory_Model_Country_Api extends Mage_Api_Model_Resource_Abstract { /** * Retrieve countries list * * @return array */ public function items() { $collection = Mage::getModel('directory/country')->getCollection(); $result = array(); foreach ($collection as $country) { /* @var $country Mage_Directory_Model_Country */ $country->getName(); // Loading name in default locale $result[] = $country->toArray(array('country_id', 'iso2_code', 'iso3_code', 'name')); } return $result; } } // Class Mage_Directory_Model_Country_Api End