mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-06-26 00:58:52 -04:00
Add SPDX license headers and mark source files as GPL-3.0-or-later to preserve the option to relicense under later GPL versions.
22 lines
563 B
PHP
22 lines
563 B
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
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());
|
|
}
|
|
}
|
|
}
|