icingadb-web/library/Icingadb/Common/ObjectLinkDisabled.php

35 lines
701 B
PHP

<?php
/* Icinga DB Web | (c) 2021 Icinga GmbH | GPLv2 */
namespace Icinga\Module\Icingadb\Common;
trait ObjectLinkDisabled
{
/** @var bool */
protected $objectLinkDisabled = false;
/**
* Set whether list items should render host and service links
*
* @param bool $state
*
* @return $this
*/
public function setObjectLinkDisabled(bool $state = true): self
{
$this->objectLinkDisabled = $state;
return $this;
}
/**
* Get whether list items should render host and service links
*
* @return bool
*/
public function getObjectLinkDisabled(): bool
{
return $this->objectLinkDisabled;
}
}