Mage_Catalog_Model_Product_Condition Class Reference

Inheritance diagram for Mage_Catalog_Model_Product_Condition:

Varien_Object Mage_Catalog_Model_Product_Condition_Interface

List of all members.

Public Member Functions

 applyToCollection ($collection)
 getIdsSelect ($dbAdapter)


Detailed Description

Definition at line 27 of file Condition.php.


Member Function Documentation

applyToCollection ( collection  ) 

Implements Mage_Catalog_Model_Product_Condition_Interface.

Definition at line 29 of file Condition.php.

00030     {
00031         if ($this->getTable() && $this->getPkFieldName()) {
00032             $collection->joinTable(
00033                 $this->getTable(),
00034                 $this->getPkFieldName().'=entity_id',
00035                 array('affected_product_id'=>$this->getPkFieldName())
00036             );
00037         }
00038         return $this;
00039     }

getIdsSelect ( dbAdapter  ) 

Implements Mage_Catalog_Model_Product_Condition_Interface.

Definition at line 41 of file Condition.php.

00042     {
00043         if ($this->getTable() && $this->getPkFieldName()) {
00044             $select = $dbAdapter->select()
00045                 ->from($this->getTable(), $this->getPkFieldName());
00046             return $select;
00047         }
00048         return '';
00049     }


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

Generated on Sat Jul 4 17:23:40 2009 for Magento by  doxygen 1.5.8