*/ class Mage_Tax_Model_Resource_Class extends Mage_Core_Model_Resource_Db_Abstract { /** * Resource initialization * */ public function _construct() { $this->_init('tax/tax_class', 'class_id'); } /** * Initialize unique fields * * @return Mage_Tax_Model_Resource_Class */ protected function _initUniqueFields() { $this->_uniqueFields = array(array( 'field' => array('class_type', 'class_name'), 'title' => Mage::helper('tax')->__('An error occurred while saving this tax class. A class with the same name'), )); return $this; } }