Mage_AdminNotification_Model_Inbox Class Reference

Inheritance diagram for Mage_AdminNotification_Model_Inbox:

Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 getSeverities ($severity=null)
 loadLatestNotice ()
 getNoticeStatus ()
 parse (array $data)

Public Attributes

const SEVERITY_CRITICAL = 1
const SEVERITY_MAJOR = 2
const SEVERITY_MINOR = 3
const SEVERITY_NOTICE = 4

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 35 of file Inbox.php.


Member Function Documentation

_construct (  )  [protected]

Enter description here...

Reimplemented from Varien_Object.

Definition at line 42 of file Inbox.php.

00043     {
00044         $this->_init('adminnotification/inbox');
00045     }

getNoticeStatus (  ) 

Retrieve notice statuses

Returns:
array

Definition at line 88 of file Inbox.php.

00089     {
00090         return $this->getResource()->getNoticeStatus($this);
00091     }

getSeverities ( severity = null  ) 

Retrieve Severity collection array

Returns:
array|string

Definition at line 52 of file Inbox.php.

00053     {
00054         $severities = array(
00055             self::SEVERITY_CRITICAL => Mage::helper('adminnotification')->__('critical'),
00056             self::SEVERITY_MAJOR    => Mage::helper('adminnotification')->__('major'),
00057             self::SEVERITY_MINOR    => Mage::helper('adminnotification')->__('minor'),
00058             self::SEVERITY_NOTICE   => Mage::helper('adminnotification')->__('notice'),
00059         );
00060 
00061         if (!is_null($severity)) {
00062             if (isset($severities[$severity])) {
00063                 return $severities[$severity];
00064             }
00065             return null;
00066         }
00067 
00068         return $severities;
00069     }

loadLatestNotice (  ) 

Retrieve Latest Notice

Returns:
Mage_AdminNotification_Model_Inbox

Definition at line 76 of file Inbox.php.

00077     {
00078         $this->setData(array());
00079         $this->getResource()->loadLatestNotice($this);
00080         return $this;
00081     }

parse ( array data  ) 

Parse and save new data

Parameters:
array $data
Returns:
Mage_AdminNotification_Model_Inbox

Definition at line 99 of file Inbox.php.

00100     {
00101         return $this->getResource()->parse($this, $data);;
00102     }


Member Data Documentation

const SEVERITY_CRITICAL = 1

Definition at line 37 of file Inbox.php.

const SEVERITY_MAJOR = 2

Definition at line 38 of file Inbox.php.

const SEVERITY_MINOR = 3

Definition at line 39 of file Inbox.php.

const SEVERITY_NOTICE = 4

Definition at line 40 of file Inbox.php.


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

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