Public Member Functions | |
getCondition () | |
Protected Member Functions | |
_getOptions () |
Definition at line 34 of file Radio.php.
_getOptions | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.
Definition at line 36 of file Radio.php.
00037 { 00038 return array( 00039 array( 00040 'label' => Mage::helper('adminhtml')->__('Any'), 00041 'value' => '' 00042 ), 00043 array( 00044 'label' => Mage::helper('adminhtml')->__('Yes'), 00045 'value' => 1 00046 ), 00047 array( 00048 'label' => Mage::helper('adminhtml')->__('No'), 00049 'value' => 0 00050 ), 00051 ); 00052 }
getCondition | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.
Definition at line 54 of file Radio.php.
00055 { 00056 if ($this->getValue()) { 00057 return $this->getColumn()->getValue(); 00058 } 00059 else { 00060 return array( 00061 array('neq'=>$this->getColumn()->getValue()), 00062 array('is'=>new Zend_Db_Expr('NULL')) 00063 ); 00064 } 00065 }