Esempio n. 1
0
 /**
  * Standard resource collection initalization
  * Needed for child classes
  *
  * @param string $model
  * @param string $entityModel
  * @return Mage_Catalog_Model_Resource_Product_Collection
  */
 protected function _init($model, $entityModel)
 {
     if ($this->isEnabledFlat()) {
         $entityModel = 'Mage_Catalog_Model_Resource_Product_Flat';
     }
     return parent::_init($model, $entityModel);
 }
Esempio n. 2
0
 /**
  * Standard resource collection initalization
  *
  * @param string $model
  * @param unknown_type $entityModel
  * @return Mage_Catalog_Model_Resource_Product_Collection
  */
 protected function _init($model, $entityModel = null)
 {
     if ($this->isEnabledFlat()) {
         $entityModel = 'catalog/product_flat';
     }
     return parent::_init($model, $entityModel);
 }