Mage_Checkout_Block_Onepage_Billing Class Reference

Inheritance diagram for Mage_Checkout_Block_Onepage_Billing:

Mage_Checkout_Block_Onepage_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 isUseBillingAddressForShipping ()
 getCountries ()
 getMethod ()
 getAddress ()
 getFirstname ()
 getLastname ()
 canShip ()
 getSaveUrl ()

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 35 of file Billing.php.


Member Function Documentation

_construct (  )  [protected]

Internal constructor, that is called from real constructor

Please override this one instead of overriding real __construct constructor

Please override this one instead of overriding real __construct constructor

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 37 of file Billing.php.

00038     {
00039         $this->getCheckout()->setStepData('billing', array(
00040             'label'     => Mage::helper('checkout')->__('Billing Information'),
00041             'is_show'   => $this->isShow()
00042         ));
00043 
00044         if ($this->isCustomerLoggedIn()) {
00045             $this->getCheckout()->setStepData('billing', 'allow', true);
00046         }
00047         parent::_construct();
00048     }

canShip (  ) 

Definition at line 95 of file Billing.php.

00096     {
00097         return !$this->getQuote()->isVirtual();
00098     }

getAddress (  ) 

Definition at line 69 of file Billing.php.

00069                           {
00070         if (!$this->isCustomerLoggedIn()) {
00071             return $this->getQuote()->getBillingAddress();
00072         } else {
00073             return Mage::getModel('sales/quote_address');
00074         }
00075     }

getCountries (  ) 

Definition at line 59 of file Billing.php.

00060     {
00061         return Mage::getResourceModel('directory/country_collection')->loadByStore();
00062     }

getFirstname (  ) 

Definition at line 77 of file Billing.php.

00078     {
00079         $firstname = $this->getAddress()->getFirstname();
00080         if (empty($firstname) && $this->getQuote()->getCustomer()) {
00081             return $this->getQuote()->getCustomer()->getFirstname();
00082         }
00083         return $firstname;
00084     }

getLastname (  ) 

Definition at line 86 of file Billing.php.

00087     {
00088         $lastname = $this->getAddress()->getLastname();
00089         if (empty($lastname) && $this->getQuote()->getCustomer()) {
00090             return $this->getQuote()->getCustomer()->getLastname();
00091         }
00092         return $lastname;
00093     }

getMethod (  ) 

Definition at line 64 of file Billing.php.

00065     {
00066         return $this->getQuote()->getCheckoutMethod();
00067     }

getSaveUrl (  ) 

Definition at line 100 of file Billing.php.

00101     {
00102 
00103     }

isUseBillingAddressForShipping (  ) 

Definition at line 50 of file Billing.php.

00051     {
00052         if (($this->getQuote()->getIsVirtual())
00053             || !$this->getQuote()->getShippingAddress()->getSameAsBilling()) {
00054             return false;
00055         }
00056         return true;
00057     }


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

Generated on Sat Jul 4 17:23:50 2009 for Magento by  doxygen 1.5.8