In this case, it loads
code/Core/Mage/Sales/Model/Mysql4/Order/Invoice/Collection.php
which is the class name:
Mage_Sales_Model_Mysql4_Order_Invoice_Collection
This can be determined by looking at the config.xml file:
code/Core/Mage/Sales/etc/config.xml.
In it, under the model tag, is the sales tag, which you know from the "sales" before the slash in the line. There he defines the resource model as sales_mysql4. So if you call:
Mage::getResourceModel('module/everything_else')
the downloaded file will be:
Module/Model/{contents of resourceModel tag}/Everything/Else.php
Hope this helps.
source share