*/ class Mage_Tax_Model_Resource_Calculation_Rule extends Mage_Core_Model_Resource_Db_Abstract { /** * Resource initialization */ protected function _construct() { $this->_init('tax/tax_calculation_rule', 'tax_calculation_rule_id'); } /** * Initialize unique fields * * @return Mage_Tax_Model_Resource_Calculation_Rule */ protected function _initUniqueFields() { $this->_uniqueFields = array(array( 'field' => array('code'), 'title' => Mage::helper('tax')->__('Code'), )); return $this; } }