mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-12 15:33:24 -05:00
BusinessProcess: new method listBpNodes()
This commit is contained in:
parent
a940c160ff
commit
fe5181052f
1 changed files with 18 additions and 0 deletions
|
|
@ -523,6 +523,24 @@ class BusinessProcess
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function listBpNodes()
|
||||
{
|
||||
$nodes = array();
|
||||
|
||||
foreach ($this->nodes as $node) {
|
||||
if (! $node instanceof BpNode) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$name = (string) $node;
|
||||
$alias = $node->getAlias();
|
||||
$nodes[$name] = $name === $alias ? $name : sprintf('%s (%s)', $alias, $node);
|
||||
}
|
||||
|
||||
natsort($nodes);
|
||||
return $nodes;
|
||||
}
|
||||
|
||||
public function getUnboundNodes()
|
||||
{
|
||||
$nodes = array();
|
||||
|
|
|
|||
Loading…
Reference in a new issue