Public Member Functions | |
__construct () | |
render (Varien_Object $row) | |
Static Public Member Functions | |
static | getStatus ($status) |
Static Protected Attributes | |
static | $_statuses |
Definition at line 34 of file Status.php.
__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 }
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
Varien_Object | $row |
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 }
$_statuses [static, protected] |
Definition at line 37 of file Status.php.