From 5887570ca2ad1b1181802713519f1844c8fb8ac3 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Wed, 29 Jul 2015 15:30:10 +0200 Subject: [PATCH] Tables: Add the searchColumn property refs #9729 --- application/tables/DatafieldTable.php | 4 ++++ application/tables/DatalistEntryTable.php | 4 ++++ application/tables/DatalistTable.php | 4 ++++ application/tables/IcingaCommandArgumentTable.php | 4 ++++ application/tables/IcingaCommandTable.php | 4 ++++ application/tables/IcingaEndpointTable.php | 4 ++++ application/tables/IcingaHostGroupTable.php | 4 ++++ application/tables/IcingaHostTable.php | 4 ++++ application/tables/IcingaServiceGroupTable.php | 4 ++++ application/tables/IcingaServiceTable.php | 4 ++++ application/tables/IcingaTimePeriodTable.php | 4 ++++ application/tables/IcingaUserGroupTable.php | 4 ++++ application/tables/IcingaUserTable.php | 4 ++++ application/tables/IcingaZoneTable.php | 4 ++++ application/tables/ImportrunTable.php | 4 ++++ application/tables/ImportsourceTable.php | 4 ++++ 16 files changed, 64 insertions(+) diff --git a/application/tables/DatafieldTable.php b/application/tables/DatafieldTable.php index 51aeaa49..72f5bd37 100644 --- a/application/tables/DatafieldTable.php +++ b/application/tables/DatafieldTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class DatafieldTable extends QuickTable { + protected $searchColumns = array( + 'varname', + ); + public function getColumns() { return array( diff --git a/application/tables/DatalistEntryTable.php b/application/tables/DatalistEntryTable.php index fd8fc426..0b39a244 100644 --- a/application/tables/DatalistEntryTable.php +++ b/application/tables/DatalistEntryTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class DatalistEntryTable extends QuickTable { + protected $searchColumns = array( + 'entry_name', + ); + public function getColumns() { return array( diff --git a/application/tables/DatalistTable.php b/application/tables/DatalistTable.php index b887ac16..48dbcc57 100644 --- a/application/tables/DatalistTable.php +++ b/application/tables/DatalistTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class DatalistTable extends QuickTable { + protected $searchColumns = array( + 'list_name', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaCommandArgumentTable.php b/application/tables/IcingaCommandArgumentTable.php index 9adf49b6..45d846cd 100644 --- a/application/tables/IcingaCommandArgumentTable.php +++ b/application/tables/IcingaCommandArgumentTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaCommandArgumentTable extends QuickTable { + protected $searchColumns = array( + 'command', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaCommandTable.php b/application/tables/IcingaCommandTable.php index 193a2f6a..a034a3e5 100644 --- a/application/tables/IcingaCommandTable.php +++ b/application/tables/IcingaCommandTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaCommandTable extends QuickTable { + protected $searchColumns = array( + 'command', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaEndpointTable.php b/application/tables/IcingaEndpointTable.php index 6f0b8615..47730798 100644 --- a/application/tables/IcingaEndpointTable.php +++ b/application/tables/IcingaEndpointTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaEndpointTable extends QuickTable { + protected $searchColumns = array( + 'endpoint', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaHostGroupTable.php b/application/tables/IcingaHostGroupTable.php index 62c2ed03..04cf533a 100644 --- a/application/tables/IcingaHostGroupTable.php +++ b/application/tables/IcingaHostGroupTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaHostGroupTable extends QuickTable { + protected $searchColumns = array( + 'hostgroup', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaHostTable.php b/application/tables/IcingaHostTable.php index 0ce114c5..ea8528d7 100644 --- a/application/tables/IcingaHostTable.php +++ b/application/tables/IcingaHostTable.php @@ -7,6 +7,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaHostTable extends QuickTable { + protected $searchColumns = array( + 'host', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaServiceGroupTable.php b/application/tables/IcingaServiceGroupTable.php index c651e6b5..8435d48b 100644 --- a/application/tables/IcingaServiceGroupTable.php +++ b/application/tables/IcingaServiceGroupTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaServiceGroupTable extends QuickTable { + protected $searchColumns = array( + 'servicegroup', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaServiceTable.php b/application/tables/IcingaServiceTable.php index 0fb6bf15..f8019f02 100644 --- a/application/tables/IcingaServiceTable.php +++ b/application/tables/IcingaServiceTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaServiceTable extends QuickTable { + protected $searchColumns = array( + 'service', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaTimePeriodTable.php b/application/tables/IcingaTimePeriodTable.php index ff95cd2e..8b2ea10a 100644 --- a/application/tables/IcingaTimePeriodTable.php +++ b/application/tables/IcingaTimePeriodTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaTimePeriodTable extends QuickTable { + protected $searchColumns = array( + 'timeperiod', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaUserGroupTable.php b/application/tables/IcingaUserGroupTable.php index c23e1a09..8524d475 100644 --- a/application/tables/IcingaUserGroupTable.php +++ b/application/tables/IcingaUserGroupTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaUserGroupTable extends QuickTable { + protected $searchColumns = array( + 'usergroup', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaUserTable.php b/application/tables/IcingaUserTable.php index 6af95042..2bc17bfa 100644 --- a/application/tables/IcingaUserTable.php +++ b/application/tables/IcingaUserTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaUserTable extends QuickTable { + protected $searchColumns = array( + 'user', + ); + public function getColumns() { return array( diff --git a/application/tables/IcingaZoneTable.php b/application/tables/IcingaZoneTable.php index e506d6ec..2de2fffb 100644 --- a/application/tables/IcingaZoneTable.php +++ b/application/tables/IcingaZoneTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class IcingaZoneTable extends QuickTable { + protected $searchColumns = array( + 'zone', + ); + public function getColumns() { if ($this->connection()->getDbType() === 'pgsql') { diff --git a/application/tables/ImportrunTable.php b/application/tables/ImportrunTable.php index bb662fa1..3df1a2a5 100644 --- a/application/tables/ImportrunTable.php +++ b/application/tables/ImportrunTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class ImportrunTable extends QuickTable { + protected $searchColumns = array( + 'source_name', + ); + public function getColumns() { return array( diff --git a/application/tables/ImportsourceTable.php b/application/tables/ImportsourceTable.php index d1461b43..a044c395 100644 --- a/application/tables/ImportsourceTable.php +++ b/application/tables/ImportsourceTable.php @@ -6,6 +6,10 @@ use Icinga\Module\Director\Web\Table\QuickTable; class ImportsourceTable extends QuickTable { + protected $searchColumns = array( + 'source_name', + ); + public function getColumns() { return array(