Mage_Adminhtml_Block_Extensions_Config_Form Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Extensions_Config_Form:

Mage_Adminhtml_Block_Widget_Form Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 initForm ()


Detailed Description

Definition at line 34 of file Form.php.


Member Function Documentation

initForm (  ) 

Definition at line 36 of file Form.php.

00037     {
00038         $pear = Varien_Pear::getInstance();
00039         $form = new Varien_Data_Form();
00040 
00041         $fieldset = $form->addFieldset('cache_enable', array(
00042             'legend'=>Mage::helper('adminhtml')->__('PEAR config')
00043         ));
00044 
00045         $fieldset->addField('preferred_state', 'select', array(
00046             'name'=>'preferred_state',
00047             'label'=>Mage::helper('adminhtml')->__('Preferred state'),
00048             'value'=>$pear->getConfig()->get('preferred_state'),
00049             'options'=>Mage::getModel('adminhtml/extension')->getStabilityOptions(),
00050         ));
00051 
00052         $this->setForm($form);
00053 
00054         return $this;
00055     }


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

Generated on Sat Jul 4 17:22:49 2009 for Magento by  doxygen 1.5.8