Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Release Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Release:

Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Abstract 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

 __construct ()
 initForm ()


Detailed Description

Definition at line 34 of file Release.php.


Constructor & Destructor Documentation

__construct (  ) 

Class constructor

Reimplemented from Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Abstract.

Definition at line 37 of file Release.php.

00038     {
00039         parent::__construct();
00040         $this->setTemplate('extensions/custom/release.phtml');
00041     }


Member Function Documentation

initForm (  ) 

Reimplemented from Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Abstract.

Definition at line 43 of file Release.php.

00044     {
00045         $form = new Varien_Data_Form();
00046         $form->setHtmlIdPrefix('_release');
00047 
00048         $fieldset = $form->addFieldset('release_fieldset', array('legend'=>Mage::helper('adminhtml')->__('Release')));
00049 
00050         $stabilityOptions = Mage::getModel('adminhtml/extension')->getStabilityOptions();
00051 
00052         $fieldset->addField('release_version', 'text', array(
00053             'name' => 'release_version',
00054             'label' => Mage::helper('adminhtml')->__('Release Version'),
00055             'required' => true,
00056         ));
00057 
00058         $fieldset->addField('api_version', 'text', array(
00059             'name' => 'api_version',
00060             'label' => Mage::helper('adminhtml')->__('API Version'),
00061             'required' => true,
00062         ));
00063 
00064         $fieldset->addField('release_stability', 'select', array(
00065             'name' => 'release_stability',
00066             'label' => Mage::helper('adminhtml')->__('Release Stability'),
00067             'options' => $stabilityOptions,
00068         ));
00069 
00070         $fieldset->addField('api_stability', 'select', array(
00071             'name' => 'api_stability',
00072             'label' => Mage::helper('adminhtml')->__('API Stability'),
00073             'options' => $stabilityOptions,
00074         ));
00075 
00076         $fieldset->addField('notes', 'textarea', array(
00077             'name' => 'notes',
00078             'label' => Mage::helper('adminhtml')->__('Notes'),
00079             'style' => 'height:300px;',
00080             'required' => true,
00081         ));
00082 
00083         $form->setValues($this->getData());
00084 
00085         $this->setForm($form);
00086 
00087         return $this;
00088     }


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

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