Class Mage_Customer_Model_Entity_Customer

Description

Customer entity resource model

Located in /Customer/Model/Entity/Customer.php (line 34)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Eav_Model_Entity_Abstract
      |
      --Mage_Customer_Model_Entity_Customer
Method Summary
Mage_Customer_Model_Entity_Customer __construct ()
this changePassword (Mage_Customer_Model_Customer $customer, string $newPassword)
bool checkCustomerId (int $customerId)
int getWebsiteId (int $customerId)
Mage_Customer_Model_Entity_Customer loadByEmail (Mage_Customer_Model_Customer $customer, string $email, [bool $testOnly = false])
Zend_Db_Select _getLoadRowSelect (Varien_Object $object, mixed $rowId)
Variables
Methods
Constructor __construct (line 40)

Initiate resources

  • access: public
Mage_Customer_Model_Entity_Customer __construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::__construct()
changePassword (line 220)

Change customer password

  • access: public
this changePassword (Mage_Customer_Model_Customer $customer, string $newPassword)
checkCustomerId (line 250)

Check customer by id

  • access: public
bool checkCustomerId (int $customerId)
  • int $customerId
findEmailDuplicates (line 232)

Check whether there are email duplicates of customers in global scope

  • access: public
bool findEmailDuplicates ()
getWebsiteId (line 268)

Get customer website id

  • access: public
int getWebsiteId (int $customerId)
  • int $customerId
loadByEmail (line 191)

Load customer by email

  • throws: Mage_Core_Exception
  • access: public
Mage_Customer_Model_Entity_Customer loadByEmail (Mage_Customer_Model_Customer $customer, string $email, [bool $testOnly = false])
setNewIncrementId (line 282)

Custom setter of increment ID if its needed

  • access: public
Mage_Customer_Model_Entity_Customer setNewIncrementId ( $object)
  • Varien_Object $object

Redefinition of:
Mage_Eav_Model_Entity_Abstract::setNewIncrementId()
Enter description here...
_afterSave (line 117)

Save customer addresses and set default addresses in attributes backend

  • access: protected
Mage_Eav_Model_Entity_Abstract _afterSave ( $customer)
  • Varien_Object $customer

Redefinition of:
Mage_Eav_Model_Entity_Abstract::_afterSave()
After Save Entity process
_beforeSave (line 72)

Check customer scope, email and confirmation key before saving

  • throws: Mage_Core_Exception
  • access: protected
Mage_Customer_Model_Entity_Customer _beforeSave ( $customer)
  • Varien_Object $customer

Redefinition of:
Mage_Eav_Model_Entity_Abstract::_beforeSave()
Before delete Entity process
_getDefaultAttributes (line 52)

Retrieve customer entity default attributes

  • access: protected
array _getDefaultAttributes ()

Redefinition of:
Mage_Eav_Model_Entity_Abstract::_getDefaultAttributes()
Retrieve default entity attributes
_getLoadRowSelect (line 173)

Retrieve select object for loading base entity row

  • access: protected
Zend_Db_Select _getLoadRowSelect (Varien_Object $object, mixed $rowId)
  • Varien_Object $object
  • mixed $rowId

Redefinition of:
Mage_Eav_Model_Entity_Abstract::_getLoadRowSelect()
Retrieve select object for loading base entity row
_saveAddresses (line 129)

Save/delete customer address

  • access: protected

Inherited Methods

Inherited From Mage_Eav_Model_Entity_Abstract

Mage_Eav_Model_Entity_Abstract::addAttribute()
Mage_Eav_Model_Entity_Abstract::attributesCompare()
Mage_Eav_Model_Entity_Abstract::checkAttributeUniqueValue()
Mage_Eav_Model_Entity_Abstract::delete()
Mage_Eav_Model_Entity_Abstract::getAttribute()
Mage_Eav_Model_Entity_Abstract::getAttributesByCode()
Mage_Eav_Model_Entity_Abstract::getAttributesById()
Mage_Eav_Model_Entity_Abstract::getAttributesByTable()
Mage_Eav_Model_Entity_Abstract::getDefaultAttributes()
Mage_Eav_Model_Entity_Abstract::getDefaultAttributeSourceModel()
Mage_Eav_Model_Entity_Abstract::getEntityIdField()
Mage_Eav_Model_Entity_Abstract::getEntityTable()
Mage_Eav_Model_Entity_Abstract::getEntityType()
Mage_Eav_Model_Entity_Abstract::getIdFieldName()
Mage_Eav_Model_Entity_Abstract::getReadConnection()
Mage_Eav_Model_Entity_Abstract::getSortedAttributes()
Mage_Eav_Model_Entity_Abstract::getTable()
Mage_Eav_Model_Entity_Abstract::getType()
Mage_Eav_Model_Entity_Abstract::getTypeId()
Mage_Eav_Model_Entity_Abstract::getValueEntityIdField()
Mage_Eav_Model_Entity_Abstract::getValueTablePrefix()
Mage_Eav_Model_Entity_Abstract::getWriteConnection()
Mage_Eav_Model_Entity_Abstract::isAttributeStatic()
Mage_Eav_Model_Entity_Abstract::isPartialLoad()
Mage_Eav_Model_Entity_Abstract::isPartialSave()
Mage_Eav_Model_Entity_Abstract::load()
Mage_Eav_Model_Entity_Abstract::loadAllAttributes()
Mage_Eav_Model_Entity_Abstract::save()
Mage_Eav_Model_Entity_Abstract::saveAttribute()
Mage_Eav_Model_Entity_Abstract::setConnection()
Mage_Eav_Model_Entity_Abstract::setNewIncrementId()
Mage_Eav_Model_Entity_Abstract::setType()
Mage_Eav_Model_Entity_Abstract::unsetAttributes()
Mage_Eav_Model_Entity_Abstract::validate()
Mage_Eav_Model_Entity_Abstract::walkAttributes()
Mage_Eav_Model_Entity_Abstract::_afterDelete()
Mage_Eav_Model_Entity_Abstract::_afterLoad()
Mage_Eav_Model_Entity_Abstract::_afterSave()
Mage_Eav_Model_Entity_Abstract::_afterSetConfig()
Mage_Eav_Model_Entity_Abstract::_beforeDelete()
Mage_Eav_Model_Entity_Abstract::_beforeSave()
Mage_Eav_Model_Entity_Abstract::_canUpdateAttribute()
Mage_Eav_Model_Entity_Abstract::_collectSaveData()
Mage_Eav_Model_Entity_Abstract::_construct()
Mage_Eav_Model_Entity_Abstract::_deleteAttributes()
Mage_Eav_Model_Entity_Abstract::_getDefaultAttribute()
Mage_Eav_Model_Entity_Abstract::_getDefaultAttributeModel()
Mage_Eav_Model_Entity_Abstract::_getDefaultAttributes()
Mage_Eav_Model_Entity_Abstract::_getLoadAttributesSelect()
Mage_Eav_Model_Entity_Abstract::_getLoadRowSelect()
Mage_Eav_Model_Entity_Abstract::_getOrigObject()
Mage_Eav_Model_Entity_Abstract::_getReadAdapter()
Mage_Eav_Model_Entity_Abstract::_getStaticFieldProperties()
Mage_Eav_Model_Entity_Abstract::_getWriteAdapter()
Mage_Eav_Model_Entity_Abstract::_insertAttribute()
Mage_Eav_Model_Entity_Abstract::_isApplicableAttribute()
Mage_Eav_Model_Entity_Abstract::_isAttributeValueEmpty()
Mage_Eav_Model_Entity_Abstract::_isCallableAttributeInstance()
Mage_Eav_Model_Entity_Abstract::_prepareLoadSelect()
Mage_Eav_Model_Entity_Abstract::_prepareStaticValue()
Mage_Eav_Model_Entity_Abstract::_prepareValueForSave()
Mage_Eav_Model_Entity_Abstract::_processAttributeValues()
Mage_Eav_Model_Entity_Abstract::_processSaveData()
Mage_Eav_Model_Entity_Abstract::_saveAttribute()
Mage_Eav_Model_Entity_Abstract::_setAttribteValue()
Mage_Eav_Model_Entity_Abstract::_updateAttribute()

Inherited From Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::__construct()
Mage_Core_Model_Resource_Abstract::addCommitCallback()
Mage_Core_Model_Resource_Abstract::beginTransaction()
Mage_Core_Model_Resource_Abstract::commit()
Mage_Core_Model_Resource_Abstract::formatDate()
Mage_Core_Model_Resource_Abstract::mktime()
Mage_Core_Model_Resource_Abstract::rollBack()
Mage_Core_Model_Resource_Abstract::_construct()
Mage_Core_Model_Resource_Abstract::_getReadAdapter()
Mage_Core_Model_Resource_Abstract::_getWriteAdapter()
Mage_Core_Model_Resource_Abstract::_serializeField()
Mage_Core_Model_Resource_Abstract::_unserializeField()

Documentation generated on Fri, 11 Feb 2011 17:00:13 +0200 by phpDocumentor 1.4.3