mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-05-28 04:34:08 -04:00
BpNode: provide alias name
This commit is contained in:
parent
7130fc14d9
commit
e0d7daaf90
1 changed files with 6 additions and 1 deletions
|
|
@ -88,9 +88,14 @@ class BpNode extends Node
|
|||
return $this->info_command;
|
||||
}
|
||||
|
||||
public function hasAlias()
|
||||
{
|
||||
return $this->alias !== null;
|
||||
}
|
||||
|
||||
public function getAlias()
|
||||
{
|
||||
return $this->alias;
|
||||
return $this->alias ? preg_replace('~_~', ' ', $this->alias) : $this->name;
|
||||
}
|
||||
|
||||
public function setAlias($name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue