Mage_Adminhtml_Block_Permissions_Tab_Roleinfo Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Permissions_Tab_Roleinfo:

Mage_Adminhtml_Block_Widget_Form Mage_Adminhtml_Block_Widget_Tab_Interface 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

 getTabLabel ()
 getTabTitle ()
 canShowTab ()
 isHidden ()
 _beforeToHtml ()

Protected Member Functions

 _initForm ()


Detailed Description

implementing now

Definition at line 31 of file Roleinfo.php.


Member Function Documentation

_beforeToHtml (  ) 

This method is called before rendering HTML

Returns:
Mage_Adminhtml_Block_Widget_Form

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 (  ) 

Implements Mage_Adminhtml_Block_Widget_Tab_Interface.

Definition at line 43 of file Roleinfo.php.

00044     {
00045         return true;
00046     }

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 (  ) 

Implements Mage_Adminhtml_Block_Widget_Tab_Interface.

Definition at line 48 of file Roleinfo.php.

00049     {
00050         return false;
00051     }


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

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