Mage_Customer_Block_Account_Dashboard_Info Class Reference

Inheritance diagram for Mage_Customer_Block_Account_Dashboard_Info:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getCustomer ()
 getChangePasswordUrl ()
 getSubscriptionObject ()
 getIsSubscribed ()
 isNewsletterEnabled ()


Detailed Description

Definition at line 35 of file Info.php.


Member Function Documentation

getChangePasswordUrl (  ) 

Definition at line 42 of file Info.php.

00043     {
00044         return Mage::getUrl('*/account/edit/changepass/1');
00045     }

getCustomer (  ) 

Definition at line 37 of file Info.php.

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

getIsSubscribed (  ) 

Gets Customer subscription status

Returns:
bool

Definition at line 66 of file Info.php.

00067     {
00068         return $this->getSubscriptionObject()->isSubscribed();
00069     }

getSubscriptionObject (  ) 

Get Customer Subscription Object Information

Returns:
Mage_Newsletter_Model_Subscriber

Definition at line 52 of file Info.php.

00053     {
00054         if(is_null($this->_subscription)) {
00055             $this->_subscription = Mage::getModel('newsletter/subscriber')->loadByCustomer(Mage::getSingleton('customer/session')->getCustomer());
00056         }
00057 
00058         return $this->_subscription;
00059     }

isNewsletterEnabled (  ) 

Newsletter module availability

Returns:
boolean

Definition at line 76 of file Info.php.

00077     {
00078         return $this->getLayout()->getBlockSingleton('customer/form_register')->isNewsletterEnabled();
00079     }


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