Mage_Tax_Model_Mysql4_Calculation_Rate Class Reference

Inheritance diagram for Mage_Tax_Model_Mysql4_Calculation_Rate:

Mage_Core_Model_Mysql4_Abstract Mage_Core_Model_Resource_Abstract

List of all members.

Public Member Functions

 deleteAllRates ()

Protected Member Functions

 _construct ()
 _initUniqueFields ()


Detailed Description

Definition at line 34 of file Rate.php.


Member Function Documentation

_construct (  )  [protected]

Resource initialization

Reimplemented from Mage_Core_Model_Resource_Abstract.

Definition at line 36 of file Rate.php.

00037     {
00038         $this->_init('tax/tax_calculation_rate', 'tax_calculation_rate_id');
00039     }

_initUniqueFields (  )  [protected]

Initialize unique fields

Returns:
Mage_Core_Model_Mysql4_Abstract

Reimplemented from Mage_Core_Model_Mysql4_Abstract.

Definition at line 46 of file Rate.php.

00047     {
00048         $this->_uniqueFields = array(array(
00049             'field' => array('code'),
00050             'title' => Mage::helper('tax')->__('Code'),
00051         ));
00052         return $this;
00053     }

deleteAllRates (  ) 

Definition at line 55 of file Rate.php.

00056     {
00057         $this->_getWriteAdapter()->delete($this->getMainTable());
00058     }


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

Generated on Sat Jul 4 17:24:54 2009 for Magento by  doxygen 1.5.8