Mage_Adminhtml_Block_Permissions_Grid_User Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Permissions_Grid_User:

Mage_Adminhtml_Block_Widget_Grid 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 ()
 getRowUrl ($row)

Protected Member Functions

 _prepareCollection ()
 _prepareColumns ()


Detailed Description

Definition at line 34 of file User.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 37 of file User.php.

00038     {
00039         parent::__construct();
00040         $this->setId('customerGrid');
00041         $this->setSaveParametersInSession(true);
00042         $this->setDefaultSort('username');
00043         $this->setDefaultDir('asc');
00044     }


Member Function Documentation

_prepareCollection (  )  [protected]

Prepare grid collection object

Returns:
this

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 46 of file User.php.

00047     {
00048         $collection =  Mage::getModel("permissions/users")->getCollection();
00049         $this->setCollection($collection);
00050 
00051         return parent::_prepareCollection();
00052     }

_prepareColumns (  )  [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 54 of file User.php.

00055     {
00056         $this->addColumn('user_id', array(
00057             'header'    =>Mage::helper('adminhtml')->__('ID'),
00058             'width'     =>5,
00059             'align'     =>'right',
00060             'sortable'  =>true,
00061             'index'     =>'user_id'
00062         ));
00063         $this->addColumn('username', array(
00064             'header'    =>Mage::helper('adminhtml')->__('User Name'),
00065             'index'     =>'username'
00066         ));
00067         $this->addColumn('firstname', array(
00068             'header'    =>Mage::helper('adminhtml')->__('First Name'),
00069             'index'     =>'firstname'
00070         ));
00071         $this->addColumn('lastname', array(
00072             'header'    =>Mage::helper('adminhtml')->__('Last Name'),
00073             'index'     =>'lastname'
00074         ));
00075         $this->addColumn('email', array(
00076             'header'    =>Mage::helper('adminhtml')->__('Email'),
00077             'width'     =>40,
00078             'align'     =>'left',
00079             'index'     =>'email'
00080         ));
00081 
00082         return parent::_prepareColumns();
00083     }

getRowUrl ( row  ) 

Definition at line 85 of file User.php.

00086     {
00087         return $this->getUrl('*/*/edituser', array('id' => $row->getUserId()));
00088     }


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