Mage_Newsletter_Helper_Data Class Reference

Inheritance diagram for Mage_Newsletter_Helper_Data:

Mage_Core_Helper_Abstract

List of all members.

Public Member Functions

 getConfirmationUrl ($subscriber)
 getUnsubscribeUrl ($subscriber)


Detailed Description

Definition at line 35 of file Data.php.


Member Function Documentation

getConfirmationUrl ( subscriber  ) 

Retrieve subsription confirmation url

Parameters:
Mage_Newsletter_Model_Subscriber $subscriber
Returns:
string

Definition at line 43 of file Data.php.

00044     {
00045         return Mage::getModel('core/url')
00046             ->setStore($subscriber->getStoreId())
00047             ->getUrl('newsletter/subscriber/confirm', array(
00048                 'id'     => $subscriber->getId(),
00049                 'code'   => $subscriber->getCode(),
00050                 '_nosid' => true
00051             ));
00052     }

getUnsubscribeUrl ( subscriber  ) 

Retrieve unsubsription url

Parameters:
Mage_Newsletter_Model_Subscriber $subscriber
Returns:
string

Definition at line 60 of file Data.php.

00061     {
00062         return Mage::getModel('core/url')
00063             ->setStore($subscriber->getStoreId())
00064             ->getUrl('newsletter/subscriber/unsubscribe', array(
00065                 'id'     => $subscriber->getId(),
00066                 'code'   => $subscriber->getCode(),
00067                 '_nosid' => true
00068             ));
00069     }


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

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