icingaweb2-module-director/library/Director/Web/Table/ObjectsTableHost.php

41 lines
839 B
PHP
Raw Normal View History

2017-06-19 00:54:05 +02:00
<?php
namespace Icinga\Module\Director\Web\Table;
use gipfl\IcingaWeb2\Table\Extension\MultiSelect;
2017-06-19 00:54:05 +02:00
class ObjectsTableHost extends ObjectsTable
{
use MultiSelect;
protected $type = 'host';
2017-06-19 00:54:05 +02:00
protected $searchColumns = [
'o.object_name',
'o.display_name',
'o.address',
];
protected $columns = [
'object_name' => 'o.object_name',
'display_name' => 'o.display_name',
'address' => 'o.address',
2017-07-04 01:34:19 +02:00
'disabled' => 'o.disabled',
2021-10-05 22:50:26 +02:00
'uuid' => 'o.uuid',
2017-06-19 00:54:05 +02:00
];
protected $showColumns = [
'object_name' => 'Hostname',
'address' => 'Address'
];
public function assemble()
2017-06-19 00:54:05 +02:00
{
$this->enableMultiSelect(
'director/hosts/edit',
'director/hosts',
2021-10-05 22:50:26 +02:00
['uuid']
2017-06-19 00:54:05 +02:00
);
}
}