From 6519b25ec1357b8b61c55464aba3c33488a522fc Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 29 Sep 2015 22:50:12 +0200 Subject: [PATCH] monitoring: Remove HostgroupQuery::getGroup() refs #9956 --- .../Backend/Ido/Query/HostgroupQuery.php | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupQuery.php index aaa72a166..f1cc0df82 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupQuery.php @@ -13,6 +13,16 @@ class HostgroupQuery extends IdoQuery */ protected $allowCustomVars = true; + /** + * {@inheritdoc} + */ + protected $groupBase = array('hostgroups' => array('hg.hostgroup_id', 'hgo.object_id')); + + /** + * {@inheritdoc} + */ + protected $groupOrigin = array('hostobjects'); + /** * {@inheritdoc} */ @@ -140,17 +150,4 @@ class HostgroupQuery extends IdoQuery array() ); } - - /** - * {@inheritdoc} - */ - public function getGroup() - { - $group = array(); - if ($this->hasJoinedVirtualTable('hostobjects')) { - $group = array('hg.hostgroup_id', 'hgo.object_id'); - } - - return $group; - } }