Public Member Functions | |
deleteAllRates () | |
Protected Member Functions | |
_construct () | |
_initUniqueFields () |
Definition at line 34 of file Rate.php.
_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
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 }