mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Dashlet form in new dashboard layout (suite)
This commit is contained in:
@@ -2,27 +2,32 @@
|
||||
|
||||
namespace Combodo\iTop\Application\UI\Base\Component\Dashlet;
|
||||
|
||||
|
||||
use Combodo\iTop\Application\UI\Base\UIBlock;
|
||||
use Dashlet;
|
||||
|
||||
class DashletWrapper extends UIBlock {
|
||||
public const BLOCK_CODE = 'ibo-dashlet-wrapper';
|
||||
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 DashletContainer $oDashletContainer;
|
||||
protected $sDashletClass;
|
||||
protected $sDashletId;
|
||||
private array $aFormViewData;
|
||||
|
||||
public function __construct($oDashlet, ?string $sDashletId = null, ?string $sDashletClass = null) {
|
||||
public function __construct($oDashlet, string $sDashletClass, ?string $sDashletId = null, array $aFormViewData = [])
|
||||
{
|
||||
parent::__construct(null);
|
||||
|
||||
$this->oDashlet = $oDashlet;
|
||||
$this->oDashletContainer = $oDashlet;
|
||||
$this->sDashletId = $sDashletId;
|
||||
$this->sDashletClass = $sDashletClass;
|
||||
$this->aFormViewData = $aFormViewData;
|
||||
}
|
||||
|
||||
public function GetDashlet() {
|
||||
return $this->oDashlet;
|
||||
public function GetDashlet()
|
||||
{
|
||||
return $this->oDashletContainer;
|
||||
}
|
||||
|
||||
public function GetDashletId(): ?string
|
||||
@@ -48,4 +53,9 @@ class DashletWrapper extends UIBlock {
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function GetFormViewData()
|
||||
{
|
||||
return $this->aFormViewData;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user