Mage_Adminhtml_Block_System_Store_Delete_Form Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Store_Delete_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

 __construct ()

Protected Member Functions

 _prepareForm ()


Detailed Description

Definition at line 35 of file Form.php.


Constructor & Destructor Documentation

__construct (  ) 

Init form

Reimplemented from Mage_Adminhtml_Block_Widget_Form.

Definition at line 41 of file Form.php.

00042     {
00043         parent::__construct();
00044         $this->setId('store_delete_form');
00045         $this->setTitle(Mage::helper('cms')->__('Block Information'));
00046     }


Member Function Documentation

_prepareForm (  )  [protected]

Prepare form before rendering HTML

Returns:
Mage_Adminhtml_Block_Widget_Form

Reimplemented from Mage_Adminhtml_Block_Widget_Form.

Definition at line 48 of file Form.php.

00049     {
00050         $dataObject = $this->getDataObject();
00051 
00052         $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post'));
00053 
00054         $form->setHtmlIdPrefix('store_');
00055 
00056         $fieldset = $form->addFieldset('base_fieldset', array('legend' => Mage::helper('core')->__('Backup options'), 'class' => 'fieldset-wide'));
00057 
00058         $fieldset->addField('item_id', 'hidden', array(
00059             'name'  => 'item_id',
00060             'value' => $dataObject->getId(),
00061         ));
00062 
00063         $fieldset->addField('create_backup', 'select', array(
00064             'label'     => Mage::helper('adminhtml')->__('Create DB Backup'),
00065             'title'     => Mage::helper('adminhtml')->__('Create DB Backup'),
00066             'name'      => 'create_backup',
00067             'options'   => array(
00068                 '1' => Mage::helper('adminhtml')->__('Yes'),
00069                 '0' => Mage::helper('adminhtml')->__('No'),
00070             ),
00071             'value'     => '1',
00072         ));
00073 
00074         $form->setUseContainer(true);
00075         $this->setForm($form);
00076 
00077         return parent::_prepareForm();
00078     }


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

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