mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-08-20 17:28:09 +02:00
27 lines
601 B
PHP
27 lines
601 B
PHP
<?php
|
|
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
|
|
|
namespace Icinga\Controllers;
|
|
|
|
use Icinga\Web\Widget\SearchDashboard;
|
|
use ipl\Web\Compat\CompatController;
|
|
|
|
/**
|
|
* Search controller
|
|
*/
|
|
class SearchController extends CompatController
|
|
{
|
|
public function indexAction()
|
|
{
|
|
$searchDashboard = new SearchDashboard();
|
|
$searchDashboard->setUser($this->Auth()->getUser());
|
|
|
|
$this->controls->setTabs($searchDashboard->getTabs());
|
|
$this->addContent($searchDashboard->search($this->getParam('q')));
|
|
}
|
|
|
|
public function hintAction()
|
|
{
|
|
}
|
|
}
|