mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 12:38:44 +02:00
Allow dashboard to refresh from backend, or refresh with new data format when switching from custom to default
This commit is contained in:
@@ -43,6 +43,10 @@ class DashboardLayout extends UIBlock
|
||||
protected $oRefreshInput;
|
||||
protected $oButtonsToolbar;
|
||||
|
||||
protected $sFile;
|
||||
|
||||
protected $bIsCustom = false;
|
||||
|
||||
public function __construct(?string $sId = null)
|
||||
{
|
||||
parent::__construct($sId);
|
||||
@@ -53,6 +57,7 @@ class DashboardLayout extends UIBlock
|
||||
$this->oTitleInput = $this->MakeTitleInput();
|
||||
$this->oRefreshInput = $this->MakeRefreshInput();
|
||||
$this->oButtonsToolbar = $this->MakeButtonsToolbar();
|
||||
$this->sFile = '';
|
||||
}
|
||||
|
||||
public function MakeTitleInput()
|
||||
@@ -192,4 +197,28 @@ class DashboardLayout extends UIBlock
|
||||
{
|
||||
return $this->oButtonsToolbar;
|
||||
}
|
||||
|
||||
public function SetFile(string $sFile)
|
||||
{
|
||||
$this->sFile = $sFile;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function GetFile()
|
||||
{
|
||||
return $this->sFile;
|
||||
}
|
||||
|
||||
public function IsCustom(): bool
|
||||
{
|
||||
return $this->bIsCustom;
|
||||
}
|
||||
|
||||
public function SetIsCustom(bool $bIsCustom)
|
||||
{
|
||||
$this->bIsCustom = $bIsCustom;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user