Class Mage_Customer_Model_Customer
Customer model
- Varien_Object
-
Mage_Core_Model_Abstract
-
Mage_Customer_Model_Customer
Package: Mage\Customer
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Customer/Model/Customer.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Customer/Model/Customer.php
public
|
|
public
|
|
public
true
|
|
public
|
|
protected
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
#
getAddressItemById( integer $addressId )
Getting customer address object from collection by identifier |
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
boolean
|
|
public
|
#
sendNewAccountEmail( string $type = 'registered', string $backUrl = '', string $storeId = '0' )
Send email with new account related information |
public
boolean
|
|
public
string
|
|
public
|
|
protected
|
#
_sendEmailTemplate( string $template, string $sender, array $templateParams = array(), integer|null $storeId = null )
Send corresponding email template |
public
|
|
public
integer
|
|
public
integer
|
|
public
boolean
|
|
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
protected
|
|
public
integer|null
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
#
canSkipConfirmation( )
Check whether confirmation may be skipped when registering using certain email address |
public
|
|
public
|
|
public
integer
|
|
protected
integer
|
#
_getWebsiteStoreId( integer|string|null $defaultStoreId = null )
Get either first store ID from a set website or the provided as default |
public
|
#
changeResetPasswordLinkToken( string $newResetPasswordLinkToken )
Change reset password link token |
public
boolean
|
string |
XML_PATH_REGISTER_EMAIL_TEMPLATE
|
'customer/create_account/email_template' |
#
Configuration pathes for email templates and identities |
string |
XML_PATH_REGISTER_EMAIL_IDENTITY
|
'customer/create_account/email_identity' |
|
string |
XML_PATH_REMIND_EMAIL_TEMPLATE
|
'customer/password/remind_email_template' |
|
string |
XML_PATH_FORGOT_EMAIL_TEMPLATE
|
'customer/password/forgot_email_template' |
|
string |
XML_PATH_FORGOT_EMAIL_IDENTITY
|
'customer/password/forgot_email_identity' |
|
string |
XML_PATH_DEFAULT_EMAIL_DOMAIN
|
'customer/create_account/email_domain' |
|
string |
XML_PATH_IS_CONFIRM
|
'customer/create_account/confirm' |
|
string |
XML_PATH_CONFIRM_EMAIL_TEMPLATE
|
'customer/create_account/email_confirmation_template' |
|
string |
XML_PATH_CONFIRMED_EMAIL_TEMPLATE
|
'customer/create_account/email_confirmed_template' |
|
string |
XML_PATH_GENERATE_HUMAN_FRIENDLY_ID
|
'customer/create_account/generate_human_friendly_id' |
|
integer |
EXCEPTION_EMAIL_NOT_CONFIRMED
|
1 |
#
Codes of exceptions related to customer model |
integer |
EXCEPTION_INVALID_EMAIL_OR_PASSWORD
|
2 |
|
integer |
EXCEPTION_EMAIL_EXISTS
|
3 |
|
integer |
EXCEPTION_INVALID_RESET_PASSWORD_LINK_TOKEN
|
4 |
|
string |
SUBSCRIBED_YES
|
'yes' |
|
string |
SUBSCRIBED_NO
|
'no' |
protected
string
|
$_eventPrefix | 'customer' |
#
Model event prefix |
protected
string
|
$_eventObject | 'customer' |
#
Name of the event object |
protected
array
|
$_errors | array() |
#
List of errors |
protected
array
|
$_attributes |
|
#
Assoc array of customer attributes |
protected
|
$_addressesCollection |
|
#
Customer addresses collection |
protected
boolean
|
$_isDeleteable | true |
#
Is model deleteable |
protected
boolean
|
$_isReadonly | false |
#
Is model readonly |
private static
boolean
|
$_isConfirmationRequired |
|
#
Confirmation requirement flag |
$_cacheTag,
$_dataSaveAllowed,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|