Skip to content

Commit

Permalink
monitoring: Remove HostgroupQuery::getGroup()
Browse files Browse the repository at this point in the history
refs #9956
  • Loading branch information
lippserd committed Sep 29, 2015
1 parent 844f80d commit 6519b25
Showing 1 changed file with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down Expand Up @@ -140,17 +150,4 @@ protected function joinInstances()
array()
);
}

/**
* {@inheritdoc}
*/
public function getGroup()
{
$group = array();
if ($this->hasJoinedVirtualTable('hostobjects')) {
$group = array('hg.hostgroup_id', 'hgo.object_id');
}

return $group;
}
}

0 comments on commit 6519b25

Please sign in to comment.