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 () |
Definition at line 35 of file Inbox.php.
_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
Definition at line 88 of file Inbox.php.
00089 { 00090 return $this->getResource()->getNoticeStatus($this); 00091 }
getSeverities | ( | $ | severity = null |
) |
Retrieve Severity collection array
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
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
array | $data |
Definition at line 99 of file Inbox.php.
00100 { 00101 return $this->getResource()->parse($this, $data);; 00102 }
const SEVERITY_CRITICAL = 1 |
const SEVERITY_MAJOR = 2 |
const SEVERITY_MINOR = 3 |
const SEVERITY_NOTICE = 4 |