Mage_Adminhtml_Block_Api_Edituser Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Api_Edituser:

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

Protected Member Functions

 _beforeToHtml ()


Detailed Description

Definition at line 27 of file Edituser.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Varien_Object.

Definition at line 28 of file Edituser.php.

00029     {
00030         parent::__construct();
00031         $this->setId('customer_info_tabs');
00032         $this->setDestElementId('user_edit_form');
00033     }


Member Function Documentation

_beforeToHtml (  )  [protected]

Before rendering html, but after trying to load cache

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Adminhtml_Block_Widget_Tabs.

Definition at line 35 of file Edituser.php.

00036     {
00037         $this->addTab('account', array(
00038             'label'     => Mage::helper('adminhtml')->__('User Info'),
00039             'title'     => Mage::helper('adminhtml')->__('User Info'),
00040             'content'   => $this->getLayout()->createBlock('adminhtml/api_tab_useredit')->toHtml(),
00041             'active'    => true
00042         ));
00043         if( $this->getUser()->getUserId() ) {
00044             $this->addTab('roles', array(
00045                 'label'     => Mage::helper('adminhtml')->__('Roles'),
00046                 'title'     => Mage::helper('adminhtml')->__('Roles'),
00047                 'content'   => $this->getLayout()->createBlock('adminhtml/api_tab_userroles')->toHtml(),
00048             ));
00049         }
00050         return parent::_beforeToHtml();
00051     }

getUser (  ) 

Definition at line 53 of file Edituser.php.

00054     {
00055         return Mage::registry('user_data');
00056     }


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

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