Mage_Adminhtml_Block_Customer_Edit_Tab_Newsletter_Grid_Renderer_Status Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Customer_Edit_Tab_Newsletter_Grid_Renderer_Status:

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

 __construct ()
 render (Varien_Object $row)

Static Public Member Functions

static getStatus ($status)

Static Protected Attributes

static $_statuses


Detailed Description

Definition at line 34 of file Status.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 39 of file Status.php.

00040     {
00041         self::$_statuses = array(
00042                 Mage_Newsletter_Model_Queue::STATUS_SENT    => Mage::helper('customer')->__('Sent'),
00043                 Mage_Newsletter_Model_Queue::STATUS_CANCEL  => Mage::helper('customer')->__('Cancel'),
00044                 Mage_Newsletter_Model_Queue::STATUS_NEVER   => Mage::helper('customer')->__('Not Sent'),
00045                 Mage_Newsletter_Model_Queue::STATUS_SENDING => Mage::helper('customer')->__('Sending'),
00046                 Mage_Newsletter_Model_Queue::STATUS_PAUSE   => Mage::helper('customer')->__('Paused'),
00047             );
00048         parent::__construct();
00049     }


Member Function Documentation

static getStatus ( status  )  [static]

Definition at line 56 of file Status.php.

00057     {
00058         if(isset(self::$_statuses[$status])) {
00059             return self::$_statuses[$status];
00060         }
00061 
00062         return Mage::helper('customer')->__('Unknown');
00063     }

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 51 of file Status.php.

00052     {
00053         return Mage::helper('customer')->__($this->getStatus($row->getQueueStatus()));
00054     }


Member Data Documentation

$_statuses [static, protected]

Definition at line 37 of file Status.php.


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

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