Mage_Adminhtml_Block_Customer_Edit_Form Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Customer_Edit_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.

Protected Member Functions

 _prepareForm ()


Detailed Description

Definition at line 35 of file Form.php.


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 38 of file Form.php.

00039     {
00040         $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post'));
00041 
00042         $customer = Mage::registry('current_customer');
00043 
00044         if ($customer->getId()) {
00045             $form->addField('entity_id', 'hidden', array(
00046                 'name' => 'customer_id',
00047             ));
00048             $form->setValues($customer->getData());
00049         }
00050 
00051         $form->setUseContainer(true);
00052         $this->setForm($form);
00053         return parent::_prepareForm();
00054     }


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

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