mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
Db: add enumCommands to get ALL commands
This commit is contained in:
parent
63a8a8d92b
commit
f2b1df68c6
@ -38,6 +38,16 @@ class Db extends DbConnection
|
||||
return $this->db()->fetchPairs($select);
|
||||
}
|
||||
|
||||
public function enumCommands()
|
||||
{
|
||||
$select = $this->db()->select()->from('icinga_command', array(
|
||||
'id',
|
||||
'object_name',
|
||||
))
|
||||
->order('object_name ASC');
|
||||
return $this->db()->fetchPairs($select);
|
||||
}
|
||||
|
||||
public function enumZones()
|
||||
{
|
||||
$select = $this->db()->select()->from('icinga_zone', array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user