Public Member Functions | |
getTabLabel () | |
getTabTitle () | |
canShowTab () | |
isHidden () | |
_beforeToHtml () | |
Protected Member Functions | |
_initForm () |
Definition at line 31 of file Roleinfo.php.
_beforeToHtml | ( | ) |
This method is called before rendering HTML
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 53 of file Roleinfo.php.
00053 { 00054 $this->_initForm(); 00055 00056 return parent::_beforeToHtml(); 00057 }
_initForm | ( | ) | [protected] |
Definition at line 59 of file Roleinfo.php.
00060 { 00061 $roleId = $this->getRequest()->getParam('rid'); 00062 00063 $form = new Varien_Data_Form(); 00064 00065 $fieldset = $form->addFieldset('base_fieldset', array('legend'=>Mage::helper('adminhtml')->__('Role Information'))); 00066 00067 $fieldset->addField('role_name', 'text', 00068 array( 00069 'name' => 'rolename', 00070 'label' => Mage::helper('adminhtml')->__('Role Name'), 00071 'id' => 'role_name', 00072 'class' => 'required-entry', 00073 'required' => true, 00074 ) 00075 ); 00076 00077 $fieldset->addField('role_id', 'hidden', 00078 array( 00079 'name' => 'role_id', 00080 'id' => 'role_id', 00081 ) 00082 ); 00083 00084 $fieldset->addField('in_role_user', 'hidden', 00085 array( 00086 'name' => 'in_role_user', 00087 'id' => 'in_role_userz', 00088 ) 00089 ); 00090 00091 $form->setValues($this->getRole()->getData()); 00092 $this->setForm($form); 00093 }
canShowTab | ( | ) |
getTabLabel | ( | ) |
Implements Mage_Adminhtml_Block_Widget_Tab_Interface.
Definition at line 33 of file Roleinfo.php.
00034 { 00035 return Mage::helper('adminhtml')->__('Role Info'); 00036 }
getTabTitle | ( | ) |
Implements Mage_Adminhtml_Block_Widget_Tab_Interface.
Definition at line 38 of file Roleinfo.php.
00039 { 00040 return $this->getTabLabel(); 00041 }
isHidden | ( | ) |