IcingaCommandTable: add distinct template table
This commit is contained in:
parent
b78b066f27
commit
3beaeba3d6
|
@ -35,7 +35,7 @@ class IcingaCommandTable extends QuickTable
|
|||
);
|
||||
}
|
||||
|
||||
public function getBaseQuery()
|
||||
protected function getUnfilteredQuery()
|
||||
{
|
||||
$db = $this->connection()->getConnection();
|
||||
$query = $db->select()->from(
|
||||
|
@ -49,4 +49,9 @@ class IcingaCommandTable extends QuickTable
|
|||
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function getBaseQuery()
|
||||
{
|
||||
return $this->getUnfilteredQuery()->where('c.object_type = ?', 'object');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Tables;
|
||||
|
||||
use Icinga\Module\Director\Tables\IcingaCommandTable;
|
||||
|
||||
class IcingaCommandTemplateTable extends IcingaCommandTable
|
||||
{
|
||||
public function getBaseQuery()
|
||||
{
|
||||
return $this->getUnfilteredQuery()->where('c.object_type = ?', 'template');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue