Public Member Functions | |
getProductTypes ($ids) | |
Protected Member Functions | |
_construct () |
Definition at line 32 of file Retreiver.php.
_construct | ( | ) | [protected] |
Resource initialization
Reimplemented from Mage_Core_Model_Resource_Abstract.
Definition at line 34 of file Retreiver.php.
00035 { 00036 $this->_init('catalog/product', 'entity_id'); 00037 }
getProductTypes | ( | $ | ids | ) |
Return id-type pairs
array | $ids |
Definition at line 45 of file Retreiver.php.
00046 { 00047 $select = $this->_getReadAdapter()->select() 00048 ->from(array('main_table'=>$this->getTable('catalog/product')), array('id'=>'main_table.entity_id', 'type'=>'main_table.type_id')) 00049 ->where('main_table.entity_id in (?)', $ids); 00050 return $this->_getReadAdapter()->fetchAll($select); 00051 }