Mage_Adminhtml_Block_Api_Tab_Roleinfo Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Api_Tab_Roleinfo:

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

Protected Member Functions

 _initForm ()


Detailed Description

implementing now

Definition at line 31 of file Roleinfo.php.


Constructor & Destructor Documentation

__construct (  ) 

Class constructor

Reimplemented from Mage_Adminhtml_Block_Widget_Form.

Definition at line 33 of file Roleinfo.php.

00034     {
00035         parent::__construct();
00036     }


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 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     }


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

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