Exemplo n.º 1
0
 public function __construct(Codendi_Request $request, FullTextSearch_ISearchDocumentsForAdmin $client, FullTextSearch_DocmanSystemEventManager $docman_system_event_manager, FullTextSearch_WikiSystemEventManager $wiki_system_event_manager, FullTextSearch_TrackerSystemEventManager $tracker_system_event_manager)
 {
     parent::__construct($request, $client);
     $this->docman_system_event_manager = $docman_system_event_manager;
     $this->wiki_system_event_manager = $wiki_system_event_manager;
     $this->tracker_system_event_manager = $tracker_system_event_manager;
 }
Exemplo n.º 2
0
 protected function render($template, $presenter)
 {
     if (!$this->request->isAjax()) {
         $GLOBALS['HTML']->header(array('title' => 'Full text search', 'selected_top_tab' => 'admin'));
     }
     parent::render($presenter->template, $presenter);
     if (!$this->request->isAjax()) {
         $GLOBALS['HTML']->footer(array());
     }
 }
Exemplo n.º 3
0
 public function process()
 {
     // Grant access only to site admin
     if (!UserManager::instance()->getCurrentUser()->isSuperUser()) {
         header('Location: ' . get_server_url());
     }
     include_once 'FullTextSearch/Controller/Search.class.php';
     $request = HTTPRequest::instance();
     $controller = new FullTextSearch_Controller_Search($request, $this->getSearchClient());
     switch ($request->get('func')) {
         case 'search':
             $controller->search();
             break;
         default:
             $controller->index();
     }
 }