Mage_Catalog_Block_Product_Send Class Reference

Inheritance diagram for Mage_Catalog_Block_Product_Send:

Mage_Catalog_Block_Product_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getUserName ()
 getEmail ()
 getProductId ()
 getMaxRecipients ()


Detailed Description

Definition at line 35 of file Send.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

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

Returns:
string

Definition at line 47 of file Send.php.

00048     {
00049         return Mage::getSingleton('customer/session')->getCustomer()->getName();
00050     }


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

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