Public Member Functions | |
getProductIds () | |
Protected Member Functions | |
_construct () |
Definition at line 28 of file Collection.php.
_construct | ( | ) | [protected] |
Initialization here
Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.
Definition at line 30 of file Collection.php.
00031 { 00032 parent::_construct(); 00033 $this->_init('catalogrule/rule_product_price'); 00034 }
getProductIds | ( | ) |
Definition at line 36 of file Collection.php.
00037 { 00038 $idsSelect = clone $this->getSelect(); 00039 $idsSelect->reset(Zend_Db_Select::ORDER); 00040 $idsSelect->reset(Zend_Db_Select::LIMIT_COUNT); 00041 $idsSelect->reset(Zend_Db_Select::LIMIT_OFFSET); 00042 $idsSelect->reset(Zend_Db_Select::COLUMNS); 00043 $idsSelect->from(null, 'main_table.product_id'); 00044 $idsSelect->distinct(true); 00045 return $this->getConnection()->fetchCol($idsSelect); 00046 }