Public Member Functions | |
__construct () | |
getRowUrl ($row) | |
Protected Member Functions | |
_prepareCollection () | |
_prepareColumns () |
Definition at line 34 of file User.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 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 }
_prepareCollection | ( | ) | [protected] |
Prepare grid collection object
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 | ) |