mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
ab628338c2
commit
7916c149b9
@ -17,6 +17,9 @@ class ContactQuery extends IdoQuery
|
|||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
protected $columnMap = array(
|
protected $columnMap = array(
|
||||||
|
'instances' => array(
|
||||||
|
'instance_name' => 'i.instance_name'
|
||||||
|
),
|
||||||
'contacts' => array(
|
'contacts' => array(
|
||||||
'contact_id' => 'c.contact_id',
|
'contact_id' => 'c.contact_id',
|
||||||
'contact' => 'co.name1 COLLATE latin1_general_ci',
|
'contact' => 'co.name1 COLLATE latin1_general_ci',
|
||||||
@ -183,6 +186,18 @@ class ContactQuery extends IdoQuery
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Join instances
|
||||||
|
*/
|
||||||
|
protected function joinInstances()
|
||||||
|
{
|
||||||
|
$this->select->join(
|
||||||
|
array('i' => $this->prefix . 'instances'),
|
||||||
|
'i.instance_id = c.instance_id',
|
||||||
|
array()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -11,6 +11,7 @@ class Contact extends DataView
|
|||||||
public function getColumns()
|
public function getColumns()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
'instance_name',
|
||||||
'contact_object_id',
|
'contact_object_id',
|
||||||
'contact_id',
|
'contact_id',
|
||||||
'contact_name',
|
'contact_name',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user