search_array = array($string); return $this->search_array; } function _getList4Pages($opt = array()) { $list = parent::_getList4Pages($opt); if (is_array($list) && !empty($list)) { $list['tpl'] = BASE_PATH . '/tpl/Search/admin_section_list.tpl'; } return $list; } function _getList4Emails($opt = array()) { $start = 0; $ipp = 0; $where = ''; $ipp = 1024; extract($opt); $list = array(); $emails = SiteMap::getObj('BroadcastEmail/Repository/MemberRepository.php'); $emails->setFilter( array('query' => $this->search_data['str'], //'no_subject' => $this->search_data['no_str'], 'no_query' => $this->search_data['no_str'])); $list = $emails->getList4Grid($opt); $list['items'] = $list['list']; unset($list['list']); $list['tpl'] = BASE_PATH . '/tpl/Search/admin_section_emails_list.tpl'; $list['ipp'] = $ipp; $list['item_name'] = 'Results from broadcast email archive'; $list['all_item_name'] = 'Show all broadcast email archive results'; $list['type'] = 'emails'; $list = $this->checkList($list); return $list; } function _getList4Announcements($opt = array()) { $start = 0; $ipp = 0; $where = ''; $ipp = 1024; extract($opt); $annonc = SiteMap::getObj('Announcement/Announcement.php'); $annonc->_filterFields = array('title', 'brief', 'description'); $annonc->setFilter($this->search_data['str']); $list = $annonc->getList4Grid($opt); $list['items'] = $list['list']; unset($list['list']); $list['tpl'] = BASE_PATH . '/tpl/Search/admin_section_announc_list.tpl'; $list['ipp'] = $ipp; $list['item_name'] = 'Results from MNCAR Focus postings'; $list['all_item_name'] = 'Show all MNCAR Focus postings results'; $list['type'] = 'announcements'; $list = $this->checkList($list); return $list; } }