From 11b054d296f67ead8d1694a85d2a7228d9b881d4 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 19 Jun 2017 00:54:05 +0200 Subject: [PATCH] ObjectsTableHost: new table --- .../Director/Web/Table/ObjectsTableHost.php | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 library/Director/Web/Table/ObjectsTableHost.php diff --git a/library/Director/Web/Table/ObjectsTableHost.php b/library/Director/Web/Table/ObjectsTableHost.php new file mode 100644 index 00000000..5b20068c --- /dev/null +++ b/library/Director/Web/Table/ObjectsTableHost.php @@ -0,0 +1,42 @@ + '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); + // } +}