Public Member Functions | |
applyToCollection ($collection) | |
getIdsSelect ($dbAdapter) |
Definition at line 27 of file Condition.php.
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 }