Public Member Functions | |
getCondition () | |
Protected Member Functions | |
_getOptions () | |
Static Protected Attributes | |
static | $_types |
Definition at line 35 of file Type.php.
_getOptions | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.
Definition at line 43 of file Type.php.
00044 { 00045 $result = array(); 00046 foreach (self::$_types as $code=>$label) { 00047 $result[] = array('value'=>$code, 'label'=>Mage::helper('adminhtml')->__($label)); 00048 } 00049 00050 return $result; 00051 }
getCondition | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.
Definition at line 54 of file Type.php.
00055 { 00056 if(is_null($this->getValue())) { 00057 return null; 00058 } 00059 00060 return array('eq'=>$this->getValue()); 00061 }
$_types [static, protected] |
Initial value:
array( null => null, Mage_Newsletter_Model_Template::TYPE_HTML => 'HTML', Mage_Newsletter_Model_Template::TYPE_TEXT => 'Text', )