Public Member Functions | |
__construct () | |
setClassType ($classType) |
Definition at line 35 of file Class.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 Mage_Adminhtml_Block_Widget_Grid_Container.
Definition at line 37 of file Class.php.
00038 { 00039 $this->_controller = 'tax_class'; 00040 parent::__construct(); 00041 }
setClassType | ( | $ | classType | ) |
Definition at line 43 of file Class.php.
00044 { 00045 if ($classType == 'PRODUCT') { 00046 $this->_headerText = Mage::helper('tax')->__('Product Tax Classes'); 00047 $this->_addButtonLabel = Mage::helper('tax')->__('Add New Class'); 00048 } 00049 elseif ($classType == 'CUSTOMER') { 00050 $this->_headerText = Mage::helper('tax')->__('Customer Tax Classes'); 00051 $this->_addButtonLabel = Mage::helper('tax')->__('Add New Class'); 00052 } 00053 00054 $this->getChild('grid')->setClassType($classType); 00055 $this->setData('class_type', $classType); 00056 00057 return $this; 00058 }