Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareCollection () | |
_prepareColumns () |
Definition at line 35 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 38 of file Grid.php.
00039 { 00040 parent::__construct(); 00041 $this->setId('storeGrid'); 00042 $this->setSaveParametersInSession(true); 00043 }
_prepareCollection | ( | ) | [protected] |
Prepare grid collection object
Reimplemented from Mage_Adminhtml_Block_Widget_Grid.
Definition at line 45 of file Grid.php.
00046 { 00047 $collection = Mage::getModel('core/website') 00048 ->getCollection() 00049 ->joinGroupAndStore(); 00050 $this->setCollection($collection); 00051 parent::_prepareCollection(); 00052 return $this; 00053 }
_prepareColumns | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid.
Definition at line 55 of file Grid.php.
00056 { 00057 $this->addColumn('website_title', array( 00058 'header' => Mage::helper('core')->__('Website Name'), 00059 'align' =>'left', 00060 'index' => 'name', 00061 'filter_index' => 'main_table.name', 00062 'renderer' => 'adminhtml/system_store_grid_render_website' 00063 )); 00064 00065 $this->addColumn('group_title', array( 00066 'header' => Mage::helper('core')->__('Store Name'), 00067 'align' =>'left', 00068 'index' => 'group_title', 00069 'filter_index' => 'group_table.name', 00070 'renderer' => 'adminhtml/system_store_grid_render_group' 00071 )); 00072 00073 $this->addColumn('store_title', array( 00074 'header' => Mage::helper('core')->__('Store View Name'), 00075 'align' =>'left', 00076 'index' => 'store_title', 00077 'filter_index' => 'store_table.name', 00078 'renderer' => 'adminhtml/system_store_grid_render_store' 00079 )); 00080 00081 return parent::_prepareColumns(); 00082 }