Public Member Functions | |
__construct () | |
getUser () | |
Protected Member Functions | |
_beforeToHtml () |
Definition at line 27 of file Edituser.php.
__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 }
_beforeToHtml | ( | ) | [protected] |
Before rendering html, but after trying to load cache
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/permissions_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/permissions_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 }