/** * Adds store filter into array * * @access public * @param mixed $storeId * @param bool $withAdmin * @return Ibrams_CmsExtended_Model_Resource_Page_Comment_Page_Collection * @author Ultimate Module Creator */ public function addStoreFilter($storeId = null, $withAdmin = true) { if (is_null($storeId)) { $storeId = $this->getStoreId(); } parent::addStoreFilter($storeId, $withAdmin); if (!is_array($storeId)) { $storeId = array($storeId); } if (!empty($this->_storesIds)) { $this->_storesIds = array_intersect($this->_storesIds, $storeId); } else { $this->_storesIds = $storeId; } return $this; }