Mage_Adminhtml_Block_Tax_Class_Edit Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Tax_Class_Edit:

Mage_Adminhtml_Block_Widget_Form_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 ()
 getHeaderText ()
 setClassType ($classType)


Detailed Description

Definition at line 35 of file Edit.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_Form_Container.

Definition at line 37 of file Edit.php.

00038     {
00039         $this->_objectId    = 'id';
00040         $this->_controller  = 'tax_class';
00041 
00042         parent::__construct();
00043 
00044         $this->_updateButton('save', 'label', Mage::helper('tax')->__('Save Class'));
00045         $this->_updateButton('delete', 'label', Mage::helper('tax')->__('Delete Class'));
00046     }


Member Function Documentation

getHeaderText (  ) 

Get header text

Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Container.

Definition at line 48 of file Edit.php.

00049     {
00050         if (Mage::registry('tax_class')->getId()) {
00051             return Mage::helper('tax')->__("Edit Class '%s'", $this->htmlEscape(Mage::registry('tax_class')->getClassName()));
00052         }
00053         else {
00054             return Mage::helper('tax')->__('New Class');
00055         }
00056     }

setClassType ( classType  ) 

Definition at line 58 of file Edit.php.

00059     {
00060         $this->getChild('form')->setClassType($classType);
00061         return $this;
00062     }


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