summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Widget/ItemList/CommandTransportList.php
blob: 61d771d1ad55f6a36d809f74e4b8108695302351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

/* Icinga DB Web | (c) 2021 Icinga GmbH | GPLv2 */

namespace Icinga\Module\Icingadb\Widget\ItemList;

use Icinga\Module\Icingadb\Common\DetailActions;
use ipl\Web\Common\BaseOrderedItemList;
use ipl\Web\Url;

class CommandTransportList extends BaseOrderedItemList
{
    use DetailActions;

    protected function init(): void
    {
        $this->getAttributes()->add('class', 'command-transport-list');
        $this->initializeDetailActions();
        $this->setDetailUrl(Url::fromPath('icingadb/command-transport/show'));
    }

    protected function getItemClass(): string
    {
        return CommandTransportListItem::class;
    }
}