Public Member Functions | |
__construct () | |
getUserName () | |
getEmail () | |
getProductId () | |
getMaxRecipients () |
Definition at line 35 of file Send.php.
__construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Varien_Object.
Definition at line 37 of file Send.php.
00037 { 00038 parent::__construct(); 00039 }
getEmail | ( | ) |
Definition at line 52 of file Send.php.
00053 { 00054 return (string)Mage::getSingleton('customer/session')->getCustomer()->getEmail(); 00055 }
getMaxRecipients | ( | ) |
Definition at line 62 of file Send.php.
00063 { 00064 $sendToFriendModel = Mage::registry('send_to_friend_model'); 00065 return $sendToFriendModel->getMaxRecipients(); 00066 }
getProductId | ( | ) |
Definition at line 57 of file Send.php.
00058 { 00059 return $this->getRequest()->getParam('id'); 00060 }
getUserName | ( | ) |
Retrieve username for form field
Definition at line 47 of file Send.php.
00048 { 00049 return Mage::getSingleton('customer/session')->getCustomer()->getName(); 00050 }