mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ObjectsTableHost: new table
This commit is contained in:
parent
36eaff3d9c
commit
11b054d296
42
library/Director/Web/Table/ObjectsTableHost.php
Normal file
42
library/Director/Web/Table/ObjectsTableHost.php
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Icinga\Module\Director\Web\Table;
|
||||||
|
|
||||||
|
use Icinga\Module\Director\Web\Table\Extension\MultiSelect;
|
||||||
|
|
||||||
|
class ObjectsTableHost extends ObjectsTable
|
||||||
|
{
|
||||||
|
use MultiSelect;
|
||||||
|
|
||||||
|
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',
|
||||||
|
'id' => 'o.id',
|
||||||
|
];
|
||||||
|
|
||||||
|
protected $showColumns = [
|
||||||
|
'object_name' => 'Hostname',
|
||||||
|
'address' => 'Address'
|
||||||
|
];
|
||||||
|
|
||||||
|
protected function assemble()
|
||||||
|
{
|
||||||
|
$this->enableMultiSelect(
|
||||||
|
'director/hosts/edit',
|
||||||
|
'director/hosts',
|
||||||
|
['name']
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Restrictions!
|
||||||
|
// foreach ($this->objectRestrictions as $restriction) {
|
||||||
|
// $restriction->applyToHostsQuery($query);
|
||||||
|
// }
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user