Files
iTop/sources/Application/UI/Base/Component/Dashlet/DashletWrapper.php
Stephen Abello a713e1b56e N°8641 - Dashboard editor front-end first commit for Form SDK integration.
* No dashlet edition
* Dashboard are not persisted
* Unable to load a dashboard from an endpoint (refresh)
* Grid library need proper npm integration
2026-01-08 10:17:30 +01:00

52 lines
1.1 KiB
PHP

<?php
namespace Combodo\iTop\Application\UI\Base\Component\Dashlet;
use Combodo\iTop\Application\UI\Base\UIBlock;
class DashletWrapper extends UIBlock {
public const BLOCK_CODE = 'ibo-dashlet-wrapper';
public const DEFAULT_HTML_TEMPLATE_REL_PATH = 'base/components/dashlet/dashlet-wrapper';
protected $oDashlet;
protected $sDashletClass;
protected $sDashletId;
public function __construct($oDashlet, ?string $sDashletId = null, ?string $sDashletClass = null) {
parent::__construct(null);
$this->oDashlet = $oDashlet;
$this->sDashletId = $sDashletId;
$this->sDashletClass = $sDashletClass;
}
public function GetDashlet() {
return $this->oDashlet;
}
public function GetDashletId(): ?string
{
return $this->sDashletId;
}
public function SetDashletId(?string $sDashletId): DashletWrapper
{
$this->sDashletId = $sDashletId;
return $this;
}
public function GetDashletClass(): ?string
{
return $this->sDashletClass;
}
public function SetDashletClass(?string $sDashletClass)
{
$this->sDashletClass = $sDashletClass;
return $this;
}
}