Mage_Customer_Block_Form_Login Class Reference

Inheritance diagram for Mage_Customer_Block_Form_Login:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getPostActionUrl ()
 getCreateAccountUrl ()
 getForgotPasswordUrl ()
 getUsername ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 34 of file Login.php.


Member Function Documentation

_prepareLayout (  )  [protected]

Preparing global layout

You can redefine this method in child classes for changin layout

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 38 of file Login.php.

00039     {
00040         $this->getLayout()->getBlock('head')->setTitle(Mage::helper('customer')->__('Customer Login'));
00041         return parent::_prepareLayout();
00042     }

getCreateAccountUrl (  ) 

Retrieve create new account url

Returns:
string

Definition at line 59 of file Login.php.

00060     {
00061         $url = $this->getData('create_account_url');
00062         if (is_null($url)) {
00063             $url = $this->helper('customer')->getRegisterUrl();
00064         }
00065         return $url;
00066     }

getForgotPasswordUrl (  ) 

Retrieve password forgotten url

Returns:
string

Definition at line 73 of file Login.php.

00074     {
00075         return $this->helper('customer')->getForgotPasswordUrl();
00076     }

getPostActionUrl (  ) 

Retrieve form posting url

Returns:
string

Definition at line 49 of file Login.php.

00050     {
00051         return $this->helper('customer')->getLoginPostUrl();
00052     }

getUsername (  ) 

Retrieve username for form field

Returns:
string

Definition at line 83 of file Login.php.

00084     {
00085         if (-1 === $this->_username) {
00086             $this->_username = Mage::getSingleton('customer/session')->getUsername(true);
00087         }
00088         return $this->_username;
00089     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:02 2009 for Magento by  doxygen 1.5.8