Public Member Functions | |
__construct () | |
_beforeToHtml () | |
Protected Member Functions | |
_initForm () |
Definition at line 31 of file Roleinfo.php.
__construct | ( | ) |
Class constructor
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 33 of file Roleinfo.php.
00034 { 00035 parent::__construct(); 00036 }
_beforeToHtml | ( | ) |
This method is called before rendering HTML
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 38 of file Roleinfo.php.
00038 { 00039 $this->_initForm(); 00040 00041 return parent::_beforeToHtml(); 00042 }
_initForm | ( | ) | [protected] |
Definition at line 44 of file Roleinfo.php.
00045 { 00046 $roleId = $this->getRequest()->getParam('rid'); 00047 00048 $form = new Varien_Data_Form(); 00049 00050 $fieldset = $form->addFieldset('base_fieldset', array('legend'=>Mage::helper('adminhtml')->__('Role Information'))); 00051 00052 $fieldset->addField('role_name', 'text', 00053 array( 00054 'name' => 'rolename', 00055 'label' => Mage::helper('adminhtml')->__('Role Name'), 00056 'id' => 'role_name', 00057 'class' => 'required-entry', 00058 'required' => true, 00059 ) 00060 ); 00061 00062 $fieldset->addField('role_id', 'hidden', 00063 array( 00064 'name' => 'role_id', 00065 'id' => 'role_id', 00066 ) 00067 ); 00068 00069 $fieldset->addField('in_role_user', 'hidden', 00070 array( 00071 'name' => 'in_role_user', 00072 'id' => 'in_role_userz', 00073 ) 00074 ); 00075 00076 $form->setValues($this->getRole()->getData()); 00077 $this->setForm($form); 00078 }