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

20 lines
410 B
PHP
Raw Normal View History

<?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());
}
}
2016-11-23 06:35:17 -05:00
}