mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-02-03 20:40:15 -05:00
33 lines
942 B
PHP
33 lines
942 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Icingadb\Controllers;
|
|
|
|
use Icinga\Module\Icingadb\Model\Servicegroupsummary;
|
|
use Icinga\Module\Icingadb\Web\Controller;
|
|
use Icinga\Module\Icingadb\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));
|
|
}
|
|
}
|