How do you override a resource file like the following when creating a Magento extension:
core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php
I know that you can copy this file to the local path and override it that way, but I'm trying to figure out how to override/extend it for an extension. Specifically, what does the config.xml syntax need to look like? I'm wondering whether this is even possible, because all I see online is how to override model files like this one:
core/Mage/Catalog/Model/Product.php
Which you could do with the following:
<models>
<catalog>
<rewrite>
<product>My_Module_Catalog_Model_Product</product>
</rewrite>
</catalog>
<models>
or resource files like this one inside of the Eav/Mysql4 directory:
core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product.php
Which I believe you could do like this:
<models>
<catalog_resource_eav_mysql4>
<rewrite>
<product>My_Module_Catalog_Model_Resource_Eav_Mysql4_Product</attribute></product>
</catalog_resource_eav_mysql4>
</models>
But I don't see how to handle resource files that are not within the Eav directory. Is it possible?