blob: 826a467f325a7b5a2a8d82ce052276cae5e4b6e8 (
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
27
28
29
|
<?php
/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */
namespace Icinga\Module\Icingadb\Widget\ItemList;
use Icinga\Module\Icingadb\Common\NoSubjectLink;
use Icinga\Module\Icingadb\Common\BaseItemList;
use ipl\Web\Url;
class UserList extends BaseItemList
{
use NoSubjectLink;
protected $defaultAttributes = ['class' => 'user-list item-table'];
protected function init()
{
parent::init();
$this->getAttributes()->get('class')->removeValue('item-list');
$this->setDetailUrl(Url::fromPath('icingadb/user'));
}
protected function getItemClass(): string
{
return UserListItem::class;
}
}
|