Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Grid Class Reference

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

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('setGrid');
00041         $this->setDefaultSort('set_id');
00042         $this->setDefaultDir('asc');
00043         $this->setSaveParametersInSession(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('eav/entity_attribute_set_collection')
00049             ->setEntityTypeFilter(Mage::registry('entityType'));
00050 
00051         $this->setCollection($collection);
00052         return parent::_prepareCollection();
00053     }

_prepareColumns (  )  [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 55 of file Grid.php.

00056     {
00057         /*$this->addColumn('set_id', array(
00058             'header'    => Mage::helper('catalog')->__('ID'),
00059             'align'     => 'right',
00060             'sortable'  => true,
00061             'width'     => '50px',
00062             'index'     => 'attribute_set_id',
00063         ));*/
00064 
00065         $this->addColumn('set_name', array(
00066             'header'    => Mage::helper('catalog')->__('Set Name'),
00067             'align'     => 'left',
00068             'sortable'  => true,
00069             'index'     => 'attribute_set_name',
00070         ));
00071     }

getRowUrl ( row  ) 

Definition at line 73 of file Grid.php.

00074     {
00075         return $this->getUrl('*/*/edit', array('id'=>$row->getAttributeSetId()));
00076     }


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

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