/** * @param Mage_Core_Model_App|integer $store * * @return AW_Followupemail_Model_Mysql4_Unsubscribe_Collection */ public function addStoreFilter($store) { if ($store instanceof Mage_Core_Model_Store) { $storeId = $store->getId(); } elseif (is_numeric($store)) { $storeId = $store; } else { return $this; } $this->addFieldToFilter('store_id', $storeId); return $this; }