Mage_Contacts_Helper_Data Class Reference

Inheritance diagram for Mage_Contacts_Helper_Data:

Mage_Core_Helper_Abstract

List of all members.

Public Member Functions

 isEnabled ()
 getUserName ()
 getUserEmail ()

Public Attributes

const XML_PATH_ENABLED = 'contacts/contacts/enabled'


Detailed Description

Definition at line 34 of file Data.php.


Member Function Documentation

getUserEmail (  ) 

Definition at line 53 of file Data.php.

00054     {
00055         if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
00056             return '';
00057         }
00058         $customer = Mage::getSingleton('customer/session')->getCustomer();
00059         return $customer->getEmail();
00060     }

getUserName (  ) 

Definition at line 44 of file Data.php.

00045     {
00046         if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
00047             return '';
00048         }
00049         $customer = Mage::getSingleton('customer/session')->getCustomer();
00050         return trim($customer->getName());
00051     }

isEnabled (  ) 

Definition at line 39 of file Data.php.

00040     {
00041         return Mage::getStoreConfig( self::XML_PATH_ENABLED );
00042     }


Member Data Documentation

const XML_PATH_ENABLED = 'contacts/contacts/enabled'

Definition at line 37 of file Data.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:53 2009 for Magento by  doxygen 1.5.8