Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareForm () |
Definition at line 35 of file Filter.php.
__construct | ( | ) |
Class constructor
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 37 of file Filter.php.
00038 { 00039 parent::__construct(); 00040 }
_prepareForm | ( | ) | [protected] |
Prepare form before rendering HTML
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 42 of file Filter.php.
00043 { 00044 $form = new Varien_Data_Form(); 00045 00046 $form->addField('filter_value', 'select', 00047 array( 00048 'name' => 'filter_value', 00049 'onchange' => 'this.form.submit()', 00050 'values' => array( 00051 array( 00052 'label' => Mage::helper('customer')->__('All'), 00053 'value' => '', 00054 ), 00055 00056 array( 00057 'label' => Mage::helper('customer')->__('Customers Only'), 00058 'value' => 'filterCustomers', 00059 ), 00060 00061 array( 00062 'label' => Mage::helper('customer')->__('Visitors Only'), 00063 'value' => 'filterGuests', 00064 ) 00065 ), 00066 'no_span' => true 00067 ) 00068 ); 00069 00070 $form->setUseContainer(true); 00071 $form->setId('filter_form'); 00072 $form->setMethod('post'); 00073 00074 $this->setForm($form); 00075 return parent::_prepareForm(); 00076 }