Public Member Functions | |
getPostActionUrl () | |
getBackUrl () | |
getFormData () | |
getCountryId () | |
getRegion () | |
isNewsletterEnabled () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 32 of file Register.php.
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 34 of file Register.php.
00035 { 00036 $this->getLayout()->getBlock('head')->setTitle(Mage::helper('customer')->__('Create New Customer Account')); 00037 return parent::_prepareLayout(); 00038 }
getBackUrl | ( | ) |
Retrieve back url
Definition at line 55 of file Register.php.
00056 { 00057 $url = $this->getData('back_url'); 00058 if (is_null($url)) { 00059 $url = $this->helper('customer')->getLoginUrl(); 00060 } 00061 return $url; 00062 }
getCountryId | ( | ) |
Retrieve customer country identifier
Reimplemented from Mage_Directory_Block_Data.
Definition at line 84 of file Register.php.
00085 { 00086 if ($countryId = $this->getFormData()->getCountryId()) { 00087 return $countryId; 00088 } 00089 return parent::getCountryId(); 00090 }
getFormData | ( | ) |
Retrieve form data
Definition at line 69 of file Register.php.
00070 { 00071 $data = $this->getData('form_data'); 00072 if (is_null($data)) { 00073 $data = new Varien_Object(Mage::getSingleton('customer/session')->getCustomerFormData(true)); 00074 $this->setData('form_data', $data); 00075 } 00076 return $data; 00077 }
getPostActionUrl | ( | ) |
Retrieve form posting url
Definition at line 45 of file Register.php.
00046 { 00047 return $this->helper('customer')->getRegisterPostUrl(); 00048 }
getRegion | ( | ) |
Retrieve customer region identifier
Definition at line 97 of file Register.php.
00098 { 00099 if ($region = $this->getFormData()->getRegion()) { 00100 return $region; 00101 } 00102 elseif ($region = $this->getFormData()->getRegionId()) { 00103 return $region; 00104 } 00105 return null; 00106 }
isNewsletterEnabled | ( | ) |
Newsletter module availability
Definition at line 113 of file Register.php.
00114 { 00115 return !Mage::getStoreConfigFlag('advanced/modules_disable_output/Mage_Newsletter'); 00116 }