monitoring: Remove ContactQuery::getGroup()

refs #9956
This commit is contained in:
Eric Lippmann 2015-09-29 22:16:35 +02:00
parent 1de527c5f8
commit e110649184
1 changed files with 10 additions and 17 deletions

View File

@ -13,6 +13,16 @@ class ContactQuery extends IdoQuery
*/
protected $allowCustomVars = true;
/**
* {@inheritdoc}
*/
protected $groupBase = array('contacts' => array('co.object_id', 'c.contact_id'));
/**
* {@inheritdoc}
*/
protected $groupOrigin = array('hosts', 'services');
/**
* {@inheritdoc}
*/
@ -197,21 +207,4 @@ class ContactQuery extends IdoQuery
array()
);
}
/**
* {@inheritdoc}
*/
public function getGroup()
{
$group = array();
if ($this->hasJoinedVirtualTable('hosts') || $this->hasJoinedVirtualTable('services')) {
$group = array('c.contact_id', 'co.object_id');
if ($this->hasJoinedVirtualTable('timeperiods')) {
$group[] = 'ht.timeperiod_id';
$group[] = 'st.timeperiod_id';
}
}
return $group;
}
}