IcingaHostTemplateTable: first template only table

This commit is contained in:
Thomas Gelf 2015-07-30 08:35:56 +02:00
parent 58f19a9270
commit 9d9c23eed6
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace Icinga\Module\Director\Tables;
use Icinga\Module\Director\Tables\IcingaHostTable;
class IcingaHostTemplateTable extends IcingaHostTable
{
public function getBaseQuery()
{
return $this->getUnfilteredQuery()->where('h.object_type = ?', 'template');
}
}