Public Member Functions | |
__construct () | |
getGridUrl () | |
getRowUrl ($row) | |
Protected Member Functions | |
_prepareCollection () | |
_prepareColumns () |
Definition at line 34 of file Role.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 36 of file Role.php.
00037 { 00038 parent::__construct(); 00039 $this->setId('roleGrid'); 00040 $this->setSaveParametersInSession(true); 00041 $this->setDefaultSort('role_id'); 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 Role.php.
00047 { 00048 $collection = Mage::getModel("api/roles")->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 Role.php.
00055 { 00056 00057 $this->addColumn('role_id', array( 00058 'header' =>Mage::helper('adminhtml')->__('ID'), 00059 'index' =>'role_id', 00060 'align' => 'right', 00061 'width' => '50px' 00062 )); 00063 00064 $this->addColumn('role_name', array( 00065 'header' =>Mage::helper('adminhtml')->__('Role Name'), 00066 'index' =>'role_name' 00067 )); 00068 00069 return parent::_prepareColumns(); 00070 }
getGridUrl | ( | ) |
getRowUrl | ( | $ | row | ) |