*/ class Mage_ProductAlert_Model_Price extends Mage_Core_Model_Abstract { protected function _construct() { $this->_init('productalert/price'); } public function getCustomerCollection() { return Mage::getResourceModel('productalert/price_customer_collection'); } public function loadByParam() { if (!is_null($this->getProductId()) && !is_null($this->getCustomerId()) && !is_null($this->getWebsiteId())) { $this->getResource()->loadByParam($this); } return $this; } public function deleteCustomer($customerId, $websiteId = 0) { $this->getResource()->deleteCustomer($this, $customerId, $websiteId); return $this; } }