Public Member Functions | |
addSubscriberData (Mage_Newsletter_Model_Subscriber $subscriber) | |
addQueueData (Mage_Newsletter_Model_Queue $queue) | |
addErrorData (Exception $e) | |
getSubscriber () | |
unsubscribe () | |
Protected Member Functions | |
_construct () | |
Protected Attributes | |
$_subscriber = null |
Definition at line 35 of file Problem.php.
_construct | ( | ) | [protected] |
Enter description here...
Reimplemented from Varien_Object.
Definition at line 40 of file Problem.php.
00041 { 00042 $this->_init('newsletter/problem'); 00043 }
addErrorData | ( | Exception $ | e | ) |
Definition at line 55 of file Problem.php.
00056 { 00057 $this->setProblemErrorCode($e->getCode()); 00058 $this->setProblemErrorText($e->getMessage()); 00059 }
addQueueData | ( | Mage_Newsletter_Model_Queue $ | queue | ) |
addSubscriberData | ( | Mage_Newsletter_Model_Subscriber $ | subscriber | ) |
getSubscriber | ( | ) |
Definition at line 61 of file Problem.php.
00062 { 00063 if(!$this->getSubscriberId()) { 00064 return null; 00065 } 00066 00067 00068 if(is_null($this->_subscriber)) { 00069 $this->_subscriber = Mage::getModel('newsletter/subscriber') 00070 ->load($this->getSubscriberId()); 00071 } 00072 00073 return $this->_subscriber; 00074 }
unsubscribe | ( | ) |
Definition at line 76 of file Problem.php.
00077 { 00078 if($this->getSubscriber()) { 00079 $this->getSubscriber()->setSubscriberStatus(Mage_Newsletter_Model_Subscriber::STATUS_UNSUBSCRIBED) 00080 ->setIsStatusChanged(true) 00081 ->save(); 00082 } 00083 }
$_subscriber = null [protected] |
Definition at line 38 of file Problem.php.