icingaweb2-module-businessp.../library/Businessprocess/MonitoredNode.php

20 lines
452 B
PHP
Raw Normal View History

<?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() ?? $this->getName());
} else {
return Html::tag('a', ['href' => $this->getUrl()], $this->getAlias() ?? $this->getName());
}
}
2016-11-23 06:35:17 -05:00
}