
Public Member Functions | |
| getAddAddressUrl () | |
| getBackUrl () | |
| getDeleteUrl () | |
| getAddressEditUrl ($address) | |
| getPrimaryBillingAddress () | |
| getPrimaryShippingAddress () | |
| hasPrimaryAddress () | |
| getAdditionalAddresses () | |
| getAddressHtml ($address) | |
| getCustomer () | |
Protected Member Functions | |
| _prepareLayout () | |
Definition at line 34 of file Book.php.
| _prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 36 of file Book.php.
00037 { 00038 $this->getLayout()->getBlock('head') 00039 ->setTitle(Mage::helper('customer')->__('Address Book')); 00040 00041 return parent::_prepareLayout(); 00042 }
| getAddAddressUrl | ( | ) |
| getAdditionalAddresses | ( | ) |
Definition at line 82 of file Book.php.
00083 { 00084 $addresses = $this->getCustomer()->getAdditionalAddresses(); 00085 return empty($addresses) ? false : $addresses; 00086 }
| getAddressEditUrl | ( | $ | address | ) |
| getAddressHtml | ( | $ | address | ) |
| getBackUrl | ( | ) |
| getCustomer | ( | ) |
Definition at line 94 of file Book.php.
00095 { 00096 $customer = $this->getData('customer'); 00097 if (is_null($customer)) { 00098 $customer = Mage::getSingleton('customer/session')->getCustomer(); 00099 $this->setData('customer', $customer); 00100 } 00101 return $customer; 00102 }
| getDeleteUrl | ( | ) |
| getPrimaryBillingAddress | ( | ) |
Definition at line 67 of file Book.php.
00068 { 00069 return $this->getCustomer()->getPrimaryBillingAddress(); 00070 }
| getPrimaryShippingAddress | ( | ) |
Definition at line 72 of file Book.php.
00073 { 00074 return $this->getCustomer()->getPrimaryShippingAddress(); 00075 }
| hasPrimaryAddress | ( | ) |
Definition at line 77 of file Book.php.
00078 { 00079 return $this->getPrimaryBillingAddress() || $this->getPrimaryShippingAddress(); 00080 }
1.5.8