SuggestController: add notificationtemplates

This commit is contained in:
Thomas Gelf 2017-07-14 15:39:29 +02:00
parent dc110e87ed
commit fe52ac507a
1 changed files with 10 additions and 0 deletions

View File

@ -113,6 +113,16 @@ class SuggestController extends ActionController
return $db->fetchCol($query);
}
protected function suggestNotificationtemplates()
{
$db = $this->db()->getDbAdapter();
$query = $db->select()
->from('icinga_notification', 'object_name')
->order('object_name')
->where("object_type = 'template'");
return $db->fetchCol($query);
}
protected function suggestCommandtemplates()
{
$db = $this->db()->getDbAdapter();