Mage_Newsletter_Model_Session Class Reference

Inheritance diagram for Mage_Newsletter_Model_Session:

Mage_Core_Model_Session_Abstract Mage_Core_Model_Session_Abstract_Varien Varien_Object

List of all members.

Public Member Functions

 __construct ()
 addError ($message)
 addSuccess ($message)
 getError ()
 getSuccess ()


Detailed Description

Definition at line 35 of file Session.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 Session.php.

00038     {
00039         $this->init('newsletter');
00040     }


Member Function Documentation

addError ( message  ) 

Adding new error message

Parameters:
string $message
Returns:
Mage_Core_Model_Session_Abstract

Reimplemented from Mage_Core_Model_Session_Abstract.

Definition at line 42 of file Session.php.

00043     {
00044         $this->setErrorMessage($message);
00045         return $this;
00046     }

addSuccess ( message  ) 

Adding new success message

Parameters:
string $message
Returns:
Mage_Core_Model_Session_Abstract

Reimplemented from Mage_Core_Model_Session_Abstract.

Definition at line 48 of file Session.php.

00049     {
00050         $this->setSuccessMessage($message);
00051         return $this;
00052     }

getError (  ) 

Definition at line 54 of file Session.php.

00055     {
00056         $message = $this->getErrorMessage();
00057         $this->unsErrorMessage();
00058         return $message;
00059     }

getSuccess (  ) 

Definition at line 61 of file Session.php.

00062     {
00063         $message = $this->getSuccessMessage();
00064         $this->unsSuccessMessage();
00065         return $message;
00066     }


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

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