mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-23 05:44:37 +02:00
Db: add enumHostgroups
This commit is contained in:
parent
43982b6c3a
commit
a130f92d37
@ -65,4 +65,13 @@ class Db extends DbConnection
|
||||
))->where('object_type', 'object')->order('object_name ASC');
|
||||
return $this->db()->fetchPairs($select);
|
||||
}
|
||||
|
||||
public function enumHostgroups()
|
||||
{
|
||||
$select = $this->db()->select()->from('icinga_hostgroup', array(
|
||||
'id',
|
||||
'object_name',
|
||||
))->where('object_type', 'object')->order('object_name ASC');
|
||||
return $this->db()->fetchPairs($select);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user