/** * Retrive converted to an array and filtered parameter "banner_ids" * * @return array */ public function getBannerIds() { if (!$this->_getData('banner_ids')) { $this->setData('banner_ids', array(0)); } elseif (is_string($this->_getData('banner_ids'))) { $bannerIds = explode(',', $this->_getData('banner_ids')); foreach ($bannerIds as $_key => $_id) { $bannerIds[$_key] = (int) trim($_id); } $bannerIds = $this->_bannerResource->getExistingBannerIdsBySpecifiedIds($bannerIds); $this->setData('banner_ids', $bannerIds); } return $this->_getData('banner_ids'); }
/** * Filter active banners * * @param array $bannerIds * @return array */ protected function _filterActive($bannerIds) { return $this->_bannerResource->getExistingBannerIdsBySpecifiedIds($bannerIds); }