コード例 #1
0
 protected function setFilterVisibility()
 {
     if ($this->part !== 'admin') {
         return null;
     }
     if (!isset($this->get_posts_params['active'])) {
         $this->setIntFilter('active');
         $this->get_posts_params['active'] = $this->params->active;
     }
     $this->fields['active'] = array($this->form_id . '_visibility', __('m_news_filters_visibility'), form::select(array('active', $this->form_id . '_visibility'), array_merge(array(__('c_c_All_f') => -1), module_news::getPostsStatuses(true)), $this->get_posts_params['active']), $this->getActiveClass('active'));
 }