
Public Member Functions | |
| getCustomer () | |
| getPrimaryShippingAddressHtml () | |
| getPrimaryBillingAddressHtml () | |
| getPrimaryShippingAddressEditUrl () | |
| getPrimaryBillingAddressEditUrl () | |
| getAddressBookUrl () | |
Definition at line 35 of file Address.php.
| 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 }
 1.5.8