Public Member Functions | |
__construct () | |
getRowUrl ($row) | |
getGridUrl () | |
Protected Member Functions | |
_prepareCollection () | |
_prepareColumns () |
Definition at line 34 of file Grid.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 Grid.php.
00038 { 00039 parent::__construct(); 00040 $this->setId('permissionsUserGrid'); 00041 $this->setDefaultSort('username'); 00042 $this->setDefaultDir('asc'); 00043 $this->setUseAjax(true); 00044 }
_prepareCollection | ( | ) | [protected] |
Prepare grid collection object
Reimplemented from Mage_Adminhtml_Block_Widget_Grid.
Definition at line 46 of file Grid.php.
00047 { 00048 $collection = Mage::getResourceModel('admin/user_collection'); 00049 $this->setCollection($collection); 00050 return parent::_prepareCollection(); 00051 }
_prepareColumns | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid.
Definition at line 53 of file Grid.php.
00054 { 00055 $this->addColumn('user_id', array( 00056 'header' => Mage::helper('adminhtml')->__('ID'), 00057 'width' => 5, 00058 'align' => 'right', 00059 'sortable' => true, 00060 'index' => 'user_id' 00061 )); 00062 00063 $this->addColumn('username', array( 00064 'header' => Mage::helper('adminhtml')->__('User Name'), 00065 'index' => 'username' 00066 )); 00067 00068 $this->addColumn('firstname', array( 00069 'header' => Mage::helper('adminhtml')->__('First Name'), 00070 'index' => 'firstname' 00071 )); 00072 00073 $this->addColumn('lastname', array( 00074 'header' => Mage::helper('adminhtml')->__('Last Name'), 00075 'index' => 'lastname' 00076 )); 00077 00078 $this->addColumn('email', array( 00079 'header' => Mage::helper('adminhtml')->__('Email'), 00080 'width' => 40, 00081 'align' => 'left', 00082 'index' => 'email' 00083 )); 00084 00085 $this->addColumn('is_active', array( 00086 'header' => Mage::helper('adminhtml')->__('Status'), 00087 'index' => 'is_active', 00088 'type' => 'options', 00089 'options' => array('1' => Mage::helper('adminhtml')->__('Active'), '0' => Mage::helper('adminhtml')->__('Inactive')), 00090 )); 00091 00092 return parent::_prepareColumns(); 00093 }
getGridUrl | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid.
Definition at line 100 of file Grid.php.
00101 { 00102 //$uid = $this->getRequest()->getParam('user_id'); 00103 return $this->getUrl('*/*/roleGrid', array()); 00104 }
getRowUrl | ( | $ | row | ) |