Mage_Customer_Block_Account_Dashboard_Address Class Reference

Inheritance diagram for Mage_Customer_Block_Account_Dashboard_Address:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getCustomer ()
 getPrimaryShippingAddressHtml ()
 getPrimaryBillingAddressHtml ()
 getPrimaryShippingAddressEditUrl ()
 getPrimaryBillingAddressEditUrl ()
 getAddressBookUrl ()


Detailed Description

Definition at line 35 of file Address.php.


Member Function Documentation

getAddressBookUrl (  ) 

Definition at line 74 of file Address.php.

00075     {
00076         return $this->getUrl('customer/address/');
00077     }

getCustomer (  ) 

Definition at line 37 of file Address.php.

00038     {
00039         return Mage::getSingleton('customer/session')->getCustomer();
00040     }

getPrimaryBillingAddressEditUrl (  ) 

Definition at line 69 of file Address.php.

00070     {
00071         return Mage::getUrl('customer/address/edit', array('id'=>$this->getCustomer()->getDefaultBilling()));
00072     }

getPrimaryBillingAddressHtml (  ) 

Definition at line 53 of file Address.php.

00054     {
00055         $address = $this->getCustomer()->getPrimaryBillingAddress();
00056 
00057         if( $address instanceof Varien_Object ) {
00058             return $address->format('html');
00059         } else {
00060             return Mage::helper('customer')->__('You have not set a primary billing address.');
00061         }
00062     }

getPrimaryShippingAddressEditUrl (  ) 

Definition at line 64 of file Address.php.

00065     {
00066         return Mage::getUrl('customer/address/edit', array('id'=>$this->getCustomer()->getDefaultShipping()));
00067     }

getPrimaryShippingAddressHtml (  ) 

Definition at line 42 of file Address.php.

00043     {
00044         $address = $this->getCustomer()->getPrimaryShippingAddress();
00045 
00046         if( $address instanceof Varien_Object ) {
00047             return $address->format('html');
00048         } else {
00049             return Mage::helper('customer')->__('You have not set a primary shipping address.');
00050         }
00051     }


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