Public Member Functions | |
__construct () | |
getCondition () | |
Protected Member Functions | |
_getOptions () | |
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 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 }
_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 }
$_statuses [static, protected] |
Definition at line 37 of file Status.php.