Mage_Adminhtml_Block_System_Store_Grid Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Store_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 ()

Protected Member Functions

 _prepareCollection ()
 _prepareColumns ()


Detailed Description

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

00039     {
00040         parent::__construct();
00041         $this->setId('storeGrid');
00042         $this->setSaveParametersInSession(true);
00043     }


Member Function Documentation

_prepareCollection (  )  [protected]

Prepare grid collection object

Returns:
this

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     }


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

Generated on Sat Jul 4 17:23:04 2009 for Magento by  doxygen 1.5.8