mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
DowntimeQuery: Rename baseQuery to select
This commit is contained in:
parent
64bee6a414
commit
67ce376ef0
@ -64,23 +64,20 @@ class DowntimeQuery extends IdoQuery
|
|||||||
*/
|
*/
|
||||||
protected function joinBaseTables()
|
protected function joinBaseTables()
|
||||||
{
|
{
|
||||||
$this->baseQuery = $this->db->select()->from(
|
$this->select->from(
|
||||||
array('sd' => $this->prefix . 'scheduleddowntime'),
|
array('sd' => $this->prefix . 'scheduleddowntime'),
|
||||||
array()
|
array()
|
||||||
);
|
);
|
||||||
|
$this->select->joinLeft(
|
||||||
$this->baseQuery->joinLeft(
|
|
||||||
array('ho' => $this->prefix . 'objects'),
|
array('ho' => $this->prefix . 'objects'),
|
||||||
'sd.object_id = ho.object_id AND ho.is_active = 1 AND ho.objecttype_id = 1',
|
'sd.object_id = ho.object_id AND ho.is_active = 1 AND ho.objecttype_id = 1',
|
||||||
array()
|
array()
|
||||||
);
|
);
|
||||||
|
$this->select->joinLeft(
|
||||||
$this->baseQuery->joinLeft(
|
|
||||||
array('so' => $this->prefix . 'objects'),
|
array('so' => $this->prefix . 'objects'),
|
||||||
'sd.object_id = so.object_id AND so.is_active = 1 AND so.objecttype_id = 2',
|
'sd.object_id = so.object_id AND so.is_active = 1 AND so.objecttype_id = 2',
|
||||||
array()
|
array()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->joinedVirtualTables = array('downtime' => true);
|
$this->joinedVirtualTables = array('downtime' => true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user