Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Radio Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Radio:

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

 getCondition ()

Protected Member Functions

 _getOptions ()


Detailed Description

Definition at line 34 of file Radio.php.


Member Function Documentation

_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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:08 2009 for Magento by  doxygen 1.5.8