Dashlet extraction

This commit is contained in:
Eric Espie
2026-01-16 18:47:28 +01:00
parent efc6e6730b
commit 3c80c93b4f
29 changed files with 2871 additions and 2521 deletions

View File

@@ -7,6 +7,7 @@
namespace Combodo\iTop\Application\Dashboard\Layout;
use Combodo\iTop\Application\Dashlet\Service\DashletService;
use Combodo\iTop\Application\UI\Base\Layout\Dashboard\DashboardGrid;
use Combodo\iTop\Application\UI\Base\Layout\Dashboard\DashboardLayout as DashboardLayoutUIBlock;
@@ -23,9 +24,9 @@ class DashboardLayoutGrid extends \DashboardLayout
$oDashlet = $aPosDashlet['dashlet'];
if ($oDashlet::IsVisible()) {
$sDashletId = $oDashlet->GetID();
$sDashletClass = get_class($oDashlet);
$sDashletClass = $oDashlet->GetDashletType();
$aDashletDenormalizedProperties = $oDashlet->GetDenormalizedProperties();
$aDashletsInfo = $sDashletClass::GetInfo();
$aDashletsInfo = DashletService::GetInstance()->GetDashletDefinition($sDashletClass);
// Also set minimal height/width
$iPositionX = $aPosDashlet['position_x'];