Mage_Customer_Model_Group Class Reference

Inheritance diagram for Mage_Customer_Model_Group:

Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 setCode ($value)
 getCode ()
 getTaxClassId ($groupId=null)
 usesAsDefault ()

Public Attributes

const XML_PATH_DEFAULT_ID = 'customer/create_account/default_group'
const NOT_LOGGED_IN_ID = 0
const CUST_GROUP_ALL = 32000

Protected Member Functions

 _construct ()

Protected Attributes

 $_eventPrefix = 'customer_group'
 $_eventObject = 'object'

Static Protected Attributes

static $_taxClassIds = array()


Detailed Description

Customer group model

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 32 of file Group.php.


Member Function Documentation

_construct (  )  [protected]

Enter description here...

Reimplemented from Varien_Object.

Definition at line 56 of file Group.php.

00057     {
00058         $this->_init('customer/group');
00059     }

getCode (  ) 

Alias for getCustomerGroupCode

Returns:
string

Definition at line 76 of file Group.php.

00077     {
00078         return $this->getCustomerGroupCode();
00079     }

getTaxClassId ( groupId = null  ) 

Definition at line 81 of file Group.php.

00082     {
00083         if (!is_null($groupId)) {
00084             if (empty(self::$_taxClassIds[$groupId])) {
00085                 $this->load($groupId);
00086                 self::$_taxClassIds[$groupId] = $this->getData('tax_class_id');
00087             }
00088             $this->setData('tax_class_id', self::$_taxClassIds[$groupId]);
00089         }
00090         return $this->getData('tax_class_id');
00091     }

setCode ( value  ) 

Alias for setCustomerGroupCode

Parameters:
string $value

Definition at line 66 of file Group.php.

00067     {
00068         return $this->setCustomerGroupCode($value);
00069     }

usesAsDefault (  ) 

Definition at line 94 of file Group.php.

00095     {
00096         $data = Mage::getConfig()->getStoresConfigByPath(self::XML_PATH_DEFAULT_ID);
00097         if (in_array($this->getId(), $data)) {
00098             return true;
00099         }
00100         return false;
00101     }


Member Data Documentation

$_eventObject = 'object' [protected]

Reimplemented from Mage_Core_Model_Abstract.

Definition at line 52 of file Group.php.

$_eventPrefix = 'customer_group' [protected]

Reimplemented from Mage_Core_Model_Abstract.

Definition at line 43 of file Group.php.

$_taxClassIds = array() [static, protected]

Definition at line 54 of file Group.php.

const CUST_GROUP_ALL = 32000

Definition at line 36 of file Group.php.

const NOT_LOGGED_IN_ID = 0

Definition at line 35 of file Group.php.

const XML_PATH_DEFAULT_ID = 'customer/create_account/default_group'

Definition at line 34 of file Group.php.


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