icingaweb2-module-businessp.../library/Businessprocess/MonitoredNode.php
2019-01-17 13:21:46 +01:00

19 lines
412 B
PHP

<?php
namespace Icinga\Module\Businessprocess;
use ipl\Html\Html;
abstract class MonitoredNode extends Node
{
abstract public function getUrl();
public function getLink()
{
if ($this->isMissing()) {
return Html::tag('a', ['href' => '#'], $this->getAlias());
} else {
return Html::tag('a', ['href' => $this->getUrl()], $this->getAlias());
}
}
}