Mage_Adminhtml_Block_Customer_Edit_Tab_Newsletter_Grid_Filter_Status Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Customer_Edit_Tab_Newsletter_Grid_Filter_Status:

Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Abstract Mage_Adminhtml_Block_Abstract Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Interface Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getCondition ()

Protected Member Functions

 _getOptions ()

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                 null                                        => null,
00043                 Mage_Newsletter_Model_Queue::STATUS_SENT    => Mage::helper('customer')->__('Sent'),
00044                 Mage_Newsletter_Model_Queue::STATUS_CANCEL  => Mage::helper('customer')->__('Cancel'),
00045                 Mage_Newsletter_Model_Queue::STATUS_NEVER   => Mage::helper('customer')->__('Not Sent'),
00046                 Mage_Newsletter_Model_Queue::STATUS_SENDING => Mage::helper('customer')->__('Sending'),
00047                 Mage_Newsletter_Model_Queue::STATUS_PAUSE   => Mage::helper('customer')->__('Paused'),
00048             );
00049         parent::__construct();
00050     }


Member Function Documentation

_getOptions (  )  [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.

Definition at line 52 of file Status.php.

00053     {
00054         $result = array();
00055         foreach (self::$_statuses as $code=>$label) {
00056             $result[] = array('value'=>$code, 'label'=>Mage::helper('customer')->__($label));
00057         }
00058 
00059         return $result;
00060     }

getCondition (  ) 

Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.

Definition at line 62 of file Status.php.

00063     {
00064         if(is_null($this->getValue())) {
00065             return null;
00066         }
00067 
00068         return array('eq'=>$this->getValue());
00069     }


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