mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-05-28 04:34:08 -04:00
BusinessProcess: provide a listRootNodes() method
This commit is contained in:
parent
7b0b550f4f
commit
a45bb7c6cb
1 changed files with 8 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ namespace Icinga\Module\Businessprocess;
|
|||
|
||||
use Icinga\Application\Benchmark;
|
||||
use Icinga\Exception\IcingaException;
|
||||
use Icinga\Exception\NotFoundError;
|
||||
use Icinga\Exception\ProgrammingError;
|
||||
use Icinga\Module\Businessprocess\Exception\NestingError;
|
||||
use Icinga\Module\Businessprocess\Modification\ProcessChanges;
|
||||
|
|
@ -431,6 +432,13 @@ class BusinessProcess
|
|||
return $this->root_nodes;
|
||||
}
|
||||
|
||||
public function listRootNodes()
|
||||
{
|
||||
$names = array_keys($this->root_nodes);
|
||||
sort($names);
|
||||
return $names;
|
||||
}
|
||||
|
||||
public function getNodes()
|
||||
{
|
||||
return $this->nodes;
|
||||
|
|
|
|||
Loading…
Reference in a new issue