mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
19 lines
410 B
PHP
19 lines
410 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Businessprocess;
|
|
|
|
use Icinga\Module\Businessprocess\Html\Link;
|
|
|
|
abstract class MonitoredNode extends Node
|
|
{
|
|
abstract public function getUrl();
|
|
|
|
public function getLink()
|
|
{
|
|
if ($this->isMissing()) {
|
|
return Link::create($this->getAlias(), '#');
|
|
} else {
|
|
return Link::create($this->getAlias(), $this->getUrl());
|
|
}
|
|
}
|
|
}
|