Mage_Adminhtml_Block_Tax_Class Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Tax_Class:

Mage_Adminhtml_Block_Widget_Grid_Container Mage_Adminhtml_Block_Widget_Container Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 setClassType ($classType)


Detailed Description

Definition at line 35 of file Class.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 Mage_Adminhtml_Block_Widget_Grid_Container.

Definition at line 37 of file Class.php.

00038     {
00039         $this->_controller      = 'tax_class';
00040         parent::__construct();
00041     }


Member Function Documentation

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     }


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

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