
Public Member Functions | |
| isLoggedIn () | |
| getCustomer () | |
| getGroups () | |
| getCurrentCustomer () | |
| getCustomerName () | |
| customerHasAddresses () | |
| getLoginUrl () | |
| getLoginPostUrl () | |
| getLogoutUrl () | |
| getDashboardUrl () | |
| getAccountUrl () | |
| getRegisterUrl () | |
| getRegisterPostUrl () | |
| getEditUrl () | |
| getEditPostUrl () | |
| getForgotPasswordUrl () | |
| isConfirmationRequired () | |
| getEmailConfirmationUrl ($email=null) | |
| isRegistrationAllowed () | |
Protected Attributes | |
| $_groups | |
Definition at line 35 of file Data.php.
| customerHasAddresses | ( | ) |
Check customer has address
Definition at line 107 of file Data.php.
00108 { 00109 return count($this->getCustomer()->getAddresses()) > 0; 00110 }
| getAccountUrl | ( | ) |
| getCurrentCustomer | ( | ) |
Retrieve current (loggined) customer object
Definition at line 87 of file Data.php.
00088 { 00089 return $this->getCustomer(); 00090 }
| getCustomer | ( | ) |
Retrieve logged in customer
Definition at line 59 of file Data.php.
00060 { 00061 if (empty($this->_customer)) { 00062 $this->_customer = Mage::getSingleton('customer/session')->getCustomer(); 00063 } 00064 return $this->_customer; 00065 }
| getCustomerName | ( | ) |
Retrieve current customer name
Definition at line 97 of file Data.php.
00098 { 00099 return $this->getCustomer()->getName(); 00100 }
| getDashboardUrl | ( | ) |
| getEditPostUrl | ( | ) |
| getEditUrl | ( | ) |
| getEmailConfirmationUrl | ( | $ | email = null |
) |
| getForgotPasswordUrl | ( | ) |
| getGroups | ( | ) |
Retrieve customer groups collection
Definition at line 72 of file Data.php.
00073 { 00074 if (empty($this->_groups)) { 00075 $this->_groups = Mage::getModel('customer/group')->getResourceCollection() 00076 ->setRealGroupsFilter() 00077 ->load(); 00078 } 00079 return $this->_groups; 00080 }
| getLoginPostUrl | ( | ) |
| getLoginUrl | ( | ) |
| getLogoutUrl | ( | ) |
| getRegisterPostUrl | ( | ) |
| getRegisterUrl | ( | ) |
| isConfirmationRequired | ( | ) |
Check is confirmation required
Definition at line 221 of file Data.php.
00222 { 00223 return $this->getCustomer()->isConfirmationRequired(); 00224 }
| isLoggedIn | ( | ) |
Check customer is logged in
Definition at line 49 of file Data.php.
00050 { 00051 return Mage::getSingleton('customer/session')->isLoggedIn(); 00052 }
| isRegistrationAllowed | ( | ) |
Check whether customers registration is allowed
Definition at line 242 of file Data.php.
00243 { 00244 $result = new Varien_Object(array('is_allowed' => true)); 00245 Mage::dispatchEvent('customer_registration_is_allowed', array('result' => $result)); 00246 return $result->getIsAllowed(); 00247 }
1.5.8