Mage_Checkout_Block_Onepage_Shipping Class Reference

Inheritance diagram for Mage_Checkout_Block_Onepage_Shipping:

Mage_Checkout_Block_Onepage_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getMethod ()
 getAddress ()
 isShow ()

Protected Member Functions

 _construct ()


Detailed Description

One page checkout status

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 32 of file Shipping.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 34 of file Shipping.php.

00035     {
00036         $this->getCheckout()->setStepData('shipping', array(
00037             'label'     => Mage::helper('checkout')->__('Shipping Information'),
00038             'is_show'   => $this->isShow()
00039         ));
00040 
00041         parent::_construct();
00042     }

getAddress (  ) 

Definition at line 49 of file Shipping.php.

00050     {
00051         if (!$this->isCustomerLoggedIn()) {
00052             return $this->getQuote()->getShippingAddress();
00053         } else {
00054             return Mage::getModel('sales/quote_address');
00055         }
00056     }

getMethod (  ) 

Definition at line 44 of file Shipping.php.

00045     {
00046         return $this->getQuote()->getCheckoutMethod();
00047     }

isShow (  ) 

Retrieve is allow and show block

Returns:
bool

Reimplemented from Mage_Checkout_Block_Onepage_Abstract.

Definition at line 63 of file Shipping.php.

00064     {
00065         return !$this->getQuote()->isVirtual();
00066     }


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