mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-19 08:41:16 -04:00
35 lines
701 B
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;
|
|
}
|
|
}
|