/** * Product collection initialize process * * @return Mage_Catalog_Model_Resource_Product_Collection|Object|Varien_Data_Collection */ protected function _getProductCollection() { switch ($this->getDisplayType()) { case self::DISPLAY_TYPE_NEW_PRODUCTS: $collection = parent::_getProductCollection(); break; default: $collection = $this->_getRecentlyAddedProductsCollection(); break; } return $collection; }