$model = Mage::getModel('catalog/product')->load(1); // load product with ID 1 $storeId = $model->getStoreId(); // get store ID for the loaded product
$model = Mage::getModel('cms/page')->load('home'); // load CMS page with identifier 'home' $storeId = $model->getStoreId(); // get store ID for the loaded pageThis example loads a CMS page model with identifier 'home' and retrieves the current store ID for the loaded page. As mentioned before, Mage_Core_Model_Abstract is part of the Magento core library. It is located in the package "Mage_Core".