
Public Member Functions | |
| isEnabled () | |
| getUserName () | |
| getUserEmail () | |
Public Attributes | |
| const | XML_PATH_ENABLED = 'contacts/contacts/enabled' |
Definition at line 34 of file Data.php.
| 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 }
| const XML_PATH_ENABLED = 'contacts/contacts/enabled' |
1.5.8