Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

what class does the load method fall under
 
number25
Member
 
Total Posts:  64
Joined:  2008-07-12
 

Just curious to know what class the load method falls under and Is there a better way up looking up what methods belong to what class ??

 
Magento Community Magento Community
Magento Community
Magento Community
 
crius
Guru
 
Avatar
Total Posts:  623
Joined:  2007-10-16
Denmark
 

The load function is in Mage_Core_Model_Abstract and it calls the load method in Mage_Core_Model_Mysql4_Abstract.

You can see this by following the inheritance chain from your object class. As an example, look at Mage_Catalog_Model_Product. You can see it extends Mage_Core_Model_Abstract.

A faster way to see it is by using a PHP development environment like Eclipse PDT or Zend Studio. In those environments, you can click on a function call and go to the declaration.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top