usertemplates: new controller and table

This commit is contained in:
Thomas Gelf 2015-12-02 04:07:13 +01:00
parent 292a77dfc4
commit 23caa0b5db
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Web\Controller\ObjectsController;
class UsertemplatesController extends ObjectsController
{
}

View File

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