Mage_Checkout_Block_Multishipping_Billing Class Reference

Inheritance diagram for Mage_Checkout_Block_Multishipping_Billing:

Mage_Payment_Block_Form_Container Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getSelectedMethodCode ()
 getAddress ()
 getQuote ()
 getSelectAddressUrl ()
 getPostActionUrl ()
 getBackUrl ()

Protected Member Functions

 _prepareLayout ()
 _canUseMethod ($method)


Detailed Description

Definition at line 34 of file Billing.php.


Member Function Documentation

_canUseMethod ( method  )  [protected]

Check and prepare payment method model

Returns:
bool

Reimplemented from Mage_Payment_Block_Form_Container.

Definition at line 55 of file Billing.php.

00056     {
00057         if (!$method->canUseForMultishipping()) {
00058             return false;
00059         }
00060         return parent::_canUseMethod($method);
00061     }

_prepareLayout (  )  [protected]

Prepare children blocks

Reimplemented from Mage_Payment_Block_Form_Container.

Definition at line 39 of file Billing.php.

00040     {
00041         if ($headBlock = $this->getLayout()->getBlock('head')) {
00042             $headBlock->setTitle(
00043                 Mage::helper('checkout')->__('Billing Information - %s', $headBlock->getDefaultTitle())
00044             );
00045         }
00046 
00047         return parent::_prepareLayout();
00048     }

getAddress (  ) 

Retrieve billing address

Returns:
Mage_Sales_Model_Quote_Address

Definition at line 81 of file Billing.php.

00082     {
00083         $address = $this->getData('address');
00084         if (is_null($address)) {
00085             $address = Mage::getSingleton('checkout/type_multishipping')->getQuote()->getBillingAddress();
00086             $this->setData('address', $address);
00087         }
00088         return $address;
00089     }

getBackUrl (  ) 

Retrieve back url

Returns:
string

Definition at line 127 of file Billing.php.

00128     {
00129         return $this->getUrl('*/*/backtoshipping');
00130     }

getPostActionUrl (  ) 

Retrieve data post destination url

Returns:
string

Definition at line 116 of file Billing.php.

00117     {
00118         //return $this->getUrl('*/*/billingPost');
00119         return $this->getUrl('*/*/overview');
00120     }

getQuote (  ) 

Retrieve quote model object

Returns:
Mage_Sales_Model_Quote

Definition at line 96 of file Billing.php.

00097     {
00098         return Mage::getSingleton('checkout/session')->getQuote();
00099     }

getSelectAddressUrl (  ) 

Retrieve url for select billing address

Returns:
string

Definition at line 106 of file Billing.php.

00107     {
00108         return $this->getUrl('*/multishipping_address/selectBilling');
00109     }

getSelectedMethodCode (  ) 

Retrieve code of current payment method

Returns:
mixed

Reimplemented from Mage_Payment_Block_Form_Container.

Definition at line 68 of file Billing.php.

00069     {
00070         if ($method = $this->getQuote()->getPayment()->getMethod()) {
00071             return $method;
00072         }
00073         return false;
00074     }


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