Mage_Adminhtml_Block_Api_User_Grid Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Api_User_Grid:

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)
 getGridUrl ()

Protected Member Functions

 _prepareCollection ()
 _prepareColumns ()


Detailed Description

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

00038     {
00039         parent::__construct();
00040         $this->setId('permissionsUserGrid');
00041         $this->setDefaultSort('username');
00042         $this->setDefaultDir('asc');
00043         $this->setUseAjax(true);
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 Grid.php.

00047     {
00048         $collection = Mage::getResourceModel('api/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  ) 

Definition at line 95 of file Grid.php.

00096     {
00097         return $this->getUrl('*/*/edit', array('user_id' => $row->getId()));
00098     }


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

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