Mage_CatalogIndex_Model_Mysql4_Retreiver Class Reference

Inheritance diagram for Mage_CatalogIndex_Model_Mysql4_Retreiver:

Mage_Core_Model_Mysql4_Abstract Mage_Core_Model_Resource_Abstract

List of all members.

Public Member Functions

 getProductTypes ($ids)

Protected Member Functions

 _construct ()


Detailed Description

Index type retreiver resource model

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 32 of file Retreiver.php.


Member Function Documentation

_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

Parameters:
array $ids
Returns:
array

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     }


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

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