Mage_Checkout_Block_Multishipping_Address_Select Class Reference

Inheritance diagram for Mage_Checkout_Block_Multishipping_Address_Select:

Mage_Checkout_Block_Multishipping_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getAddressCollection ()
 isAddressDefaultBilling ($address)
 isAddressDefaultShipping ($address)
 getEditAddressUrl ($address)
 getSetAddressUrl ($address)
 getAddNewUrl ()
 getBackUrl ()

Protected Member Functions

 _prepareLayout ()
 _getCheckout ()


Detailed Description

Definition at line 34 of file Select.php.


Member Function Documentation

_getCheckout (  )  [protected]

Definition at line 44 of file Select.php.

00045     {
00046         return Mage::getSingleton('checkout/type_multishipping');
00047     }

_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 36 of file Select.php.

00037     {
00038         if ($headBlock = $this->getLayout()->getBlock('head')) {
00039             $headBlock->setTitle(Mage::helper('checkout')->__('Change Billing Address') . ' - ' . $headBlock->getDefaultTitle());
00040         }
00041         return parent::_prepareLayout();
00042     }

getAddNewUrl (  ) 

Definition at line 79 of file Select.php.

00080     {
00081         return $this->getUrl('*/*/newBilling');
00082     }

getAddressCollection (  ) 

Definition at line 49 of file Select.php.

00050     {
00051         $collection = $this->getData('address_collection');
00052         if (is_null($collection)) {
00053             $collection = $this->_getCheckout()->getCustomer()->getAddresses();
00054             $this->setData('address_collection', $collection);
00055         }
00056         return $collection;
00057     }

getBackUrl (  ) 

Definition at line 84 of file Select.php.

00085     {
00086         return $this->getUrl('*/multishipping/billing');
00087     }

getEditAddressUrl ( address  ) 

Definition at line 69 of file Select.php.

00070     {
00071         return $this->getUrl('*/*/editAddress', array('id'=>$address->getId()));
00072     }

getSetAddressUrl ( address  ) 

Definition at line 74 of file Select.php.

00075     {
00076         return $this->getUrl('*/*/setBilling', array('id'=>$address->getId()));
00077     }

isAddressDefaultBilling ( address  ) 

Definition at line 59 of file Select.php.

00060     {
00061         return $address->getId() == $this->_getCheckout()->getCustomer()->getDefaultBilling();
00062     }

isAddressDefaultShipping ( address  ) 

Definition at line 64 of file Select.php.

00065     {
00066         return $address->getId() == $this->_getCheckout()->getCustomer()->getDefaultShipping();
00067     }


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