Public Member Functions | |
getHtml () | |
getCondition () | |
Protected Member Functions | |
_getOptions () |
Definition at line 34 of file Checkbox.php.
_getOptions | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.
Definition at line 41 of file Checkbox.php.
00042 { 00043 return array( 00044 array( 00045 'label' => Mage::helper('adminhtml')->__('Any'), 00046 'value' => '' 00047 ), 00048 array( 00049 'label' => Mage::helper('adminhtml')->__('Yes'), 00050 'value' => 1 00051 ), 00052 array( 00053 'label' => Mage::helper('adminhtml')->__('No'), 00054 'value' => 0 00055 ), 00056 ); 00057 }
getCondition | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.
Reimplemented in Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Massaction.
Definition at line 59 of file Checkbox.php.
00060 { 00061 if ($this->getValue()) { 00062 return $this->getColumn()->getValue(); 00063 } 00064 else { 00065 return array( 00066 array('neq'=>$this->getColumn()->getValue()), 00067 array('is'=>new Zend_Db_Expr('NULL')) 00068 ); 00069 } 00070 //return array('like'=>'%'.$this->getValue().'%'); 00071 }
getHtml | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Select.
Definition at line 36 of file Checkbox.php.
00037 { 00038 return '<span class="head-massaction">' . parent::getHtml() . '</span>'; 00039 }