Public Member Functions | |
__construct () | |
getRowUrl ($row) | |
Protected Member Functions | |
_prepareCollection () | |
_prepareColumns () |
Definition at line 34 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 37 of file Grid.php.
00038 { 00039 parent::__construct(); 00040 $this->setId('taxClassGrid'); 00041 $this->setDefaultSort('class_name'); 00042 $this->setDefaultDir('ASC'); 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('tax/class') 00048 ->getCollection() 00049 ->setClassTypeFilter($this->getClassType()); 00050 $this->setCollection($collection); 00051 return parent::_prepareCollection(); 00052 }
_prepareColumns | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid.
Definition at line 54 of file Grid.php.
00055 { 00056 $this->addColumn('class_name', 00057 array( 00058 'header' => Mage::helper('tax')->__('Class Name'), 00059 'align' => 'left', 00060 'index' => 'class_name' 00061 ) 00062 ); 00063 00064 return parent::_prepareColumns(); 00065 }
getRowUrl | ( | $ | row | ) |