Mage_ProductAlert_Block_Email_Stock Class Reference

Inheritance diagram for Mage_ProductAlert_Block_Email_Stock:

Mage_ProductAlert_Block_Email_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getProductUnsubscribeUrl ($productId)
 getUnsubscribeUrl ()


Detailed Description

Definition at line 35 of file Stock.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

Reimplemented from Varien_Object.

Definition at line 41 of file Stock.php.

00042     {
00043         parent::__construct();
00044         $this->setTemplate('email/productalert/stock.phtml');
00045     }


Member Function Documentation

getProductUnsubscribeUrl ( productId  ) 

Retrive unsubscribe url for product

Parameters:
int $productId
Returns:
string

Definition at line 53 of file Stock.php.

00054     {
00055         $params = $this->_getUrlParams();
00056         $params['product'] = $productId;
00057         return $this->getUrl('productalert/unsubscribe/stock', $params);
00058     }

getUnsubscribeUrl (  ) 

Retrieve unsubscribe url for all products

Returns:
string

Definition at line 65 of file Stock.php.

00066     {
00067         return $this->getUrl('productalert/unsubscribe/stockAll', $this->_getUrlParams());
00068     }


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

Generated on Sat Jul 4 17:24:35 2009 for Magento by  doxygen 1.5.8