mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
SuggestController: temporarily add locations
This commit is contained in:
parent
5e09753622
commit
87bd531f2a
@ -61,6 +61,24 @@ class SuggestController extends ActionController
|
||||
$this->view->suggestions = $suggestions;
|
||||
}
|
||||
|
||||
/**
|
||||
* One more dummy helper for tests
|
||||
*
|
||||
* TODO: Should not remain here
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function suggestLocations()
|
||||
{
|
||||
$db = $this->db()->getDbAdapter();
|
||||
$query = $db->select()
|
||||
->distinct()
|
||||
->from('icinga_host_var', 'varvalue')
|
||||
->where('varname = ?', 'location')
|
||||
->order('varvalue');
|
||||
return $db->fetchCol($query);
|
||||
}
|
||||
|
||||
protected function suggestHostnames()
|
||||
{
|
||||
$db = $this->db()->getDbAdapter();
|
||||
|
Loading…
x
Reference in New Issue
Block a user