mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
usertemplates: new controller and table
This commit is contained in:
parent
292a77dfc4
commit
23caa0b5db
9
application/controllers/UsertemplatesController.php
Normal file
9
application/controllers/UsertemplatesController.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Controllers;
|
||||
|
||||
use Icinga\Module\Director\Web\Controller\ObjectsController;
|
||||
|
||||
class UsertemplatesController extends ObjectsController
|
||||
{
|
||||
}
|
13
application/tables/IcingaUserTemplateTable.php
Normal file
13
application/tables/IcingaUserTemplateTable.php
Normal 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');
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user