Public Member Functions | |
items () |
Definition at line 34 of file Api.php.
items | ( | ) |
Retrieve countries list
Definition at line 41 of file Api.php.
00042 { 00043 $collection = Mage::getModel('directory/country')->getCollection(); 00044 00045 $result = array(); 00046 foreach ($collection as $country) { 00047 /* @var $country Mage_Directory_Model_Country */ 00048 $country->getName(); // Loading name in default locale 00049 $result[] = $country->toArray(array('country_id', 'iso2_code', 'iso3_code', 'name')); 00050 } 00051 00052 return $result; 00053 }