Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Collection.php
Go to the documentation of this file.
1 <?php
7 
16 {
22  public function _construct()
23  {
24  $this->_init(\Magento\Sitemap\Model\Sitemap::class, \Magento\Sitemap\Model\ResourceModel\Sitemap::class);
25  }
26 
33  public function addStoreFilter($storeIds)
34  {
35  $this->getSelect()->where('main_table.store_id IN (?)', $storeIds);
36  return $this;
37  }
38 }