Mage_ProductAlert_Model_Mysql4_Price_Customer_Collection Class Reference

Inheritance diagram for Mage_ProductAlert_Model_Mysql4_Price_Customer_Collection:

Mage_Customer_Model_Entity_Customer_Collection Mage_Eav_Model_Entity_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 join ($productId, $websiteId)


Detailed Description

Definition at line 35 of file Collection.php.


Member Function Documentation

join ( productId,
websiteId 
)

Definition at line 37 of file Collection.php.

00038     {
00039         $this->getSelect()->join(
00040             array('alert' => $this->getTable('productalert/price')),
00041             'e.entity_id=alert.customer_id',
00042             array('alert_price_id', 'website_id', 'price', 'add_date', 'last_send_date', 'send_count', 'status')
00043         );
00044 
00045         $this->getSelect()->where('alert.product_id=?', $productId);
00046         if ($websiteId) {
00047             $this->getSelect()->where('alert.website_id=?', $websiteId);
00048         }
00049         $this->_setIdFieldName('alert_price_id');
00050         $this->addAttributeToSelect('*');
00051 
00052         return $this;
00053     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:35 2009 for Magento by  doxygen 1.5.8