Public Member Functions | |
items () |
Definition at line 34 of file Api.php.
items | ( | ) |
Retrieve groups
Definition at line 41 of file Api.php.
00042 { 00043 $collection = Mage::getModel('customer/group')->getCollection(); 00044 00045 $result = array(); 00046 foreach ($collection as $group) { 00047 /* @var $group Mage_Customer_Model_Group */ 00048 $result[] = $group->toArray(array('customer_group_id', 'customer_group_code')); 00049 } 00050 00051 return $result; 00052 }