Mage_Adminhtml_Block_Notification_Grid_Renderer_Severity Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Notification_Grid_Renderer_Severity:

Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract Mage_Adminhtml_Block_Abstract Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Interface Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 render (Varien_Object $row)


Detailed Description

Definition at line 35 of file Severity.php.


Member Function Documentation

render ( Varien_Object row  ) 

Renders grid column

Parameters:
Varien_Object $row
Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract.

Definition at line 44 of file Severity.php.

00045     {
00046         $notice = Mage::getSingleton('adminnotification/inbox');
00047 
00048         switch ($row->getData($this->getColumn()->getIndex())) {
00049             case Mage_AdminNotification_Model_Inbox::SEVERITY_CRITICAL:
00050                 $class = 'critical';
00051                 $value = $notice->getSeverities(Mage_AdminNotification_Model_Inbox::SEVERITY_CRITICAL);
00052                 break;
00053             case Mage_AdminNotification_Model_Inbox::SEVERITY_MAJOR:
00054                 $class = 'major';
00055                 $value = $notice->getSeverities(Mage_AdminNotification_Model_Inbox::SEVERITY_MAJOR);
00056                 break;
00057             case Mage_AdminNotification_Model_Inbox::SEVERITY_MINOR:
00058                 $class = 'minor';
00059                 $value = $notice->getSeverities(Mage_AdminNotification_Model_Inbox::SEVERITY_MINOR);
00060                 break;
00061             case Mage_AdminNotification_Model_Inbox::SEVERITY_NOTICE:
00062                 $class = 'notice';
00063                 $value = $notice->getSeverities(Mage_AdminNotification_Model_Inbox::SEVERITY_NOTICE);
00064                 break;
00065         }
00066         return '<span class="grid-severity-' . $class . '">' . $value . '</span>';
00067     }


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

Generated on Sat Jul 4 17:22:52 2009 for Magento by  doxygen 1.5.8