diff --git a/library/Director/Db.php b/library/Director/Db.php index 2f7d495a..9cc0f057 100644 --- a/library/Director/Db.php +++ b/library/Director/Db.php @@ -289,6 +289,15 @@ class Db extends DbConnection return $this->db()->fetchPairs($select); } + public function enumDatalist() + { + $select = $this->db()->select()->from('director_datalist', array( + 'id', + 'list_name', + ))->order('list_name ASC'); + return $this->db()->fetchPairs($select); + } + public function enumUsergroups() { $select = $this->db()->select()->from('icinga_usergroup', array(