mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Introduce ServicegroupsController
This commit is contained in:
parent
96f6e72cb3
commit
7c5afffa32
1 changed files with 33 additions and 0 deletions
33
application/controllers/ServicegroupsController.php
Normal file
33
application/controllers/ServicegroupsController.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Eagle\Controllers;
|
||||
|
||||
use Icinga\Module\Eagle\Model\Servicegroupsummary;
|
||||
use Icinga\Module\Eagle\Web\Controller;
|
||||
use Icinga\Module\Eagle\Widget\ItemList\ServicegroupList;
|
||||
|
||||
class ServicegroupsController extends Controller
|
||||
{
|
||||
public function indexAction() {
|
||||
|
||||
$this->setTitle($this->translate('Service Groups'));
|
||||
|
||||
$db = $this->getDb();
|
||||
|
||||
$servicegroups = Servicegroupsummary::on($db);
|
||||
|
||||
$limitControl = $this->createLimitControl();
|
||||
$paginationControl = $this->createPaginationControl($servicegroups);
|
||||
$filterControl = $this->createFilterControl($servicegroups);
|
||||
|
||||
$this->filter($servicegroups);
|
||||
|
||||
yield $this->export($servicegroups);
|
||||
|
||||
$this->addControl($paginationControl);
|
||||
$this->addControl($limitControl);
|
||||
$this->addControl($filterControl);
|
||||
|
||||
$this->addContent(new ServicegroupList($servicegroups));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue