Mage_Customer_Model_Group_Api Class Reference

Inheritance diagram for Mage_Customer_Model_Group_Api:

Mage_Api_Model_Resource_Abstract Mage_Customer_Model_Group_Api_V2

List of all members.

Public Member Functions

 items ()


Detailed Description

Definition at line 34 of file Api.php.


Member Function Documentation

items (  ) 

Retrieve groups

Returns:
array

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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:04 2009 for Magento by  doxygen 1.5.8