mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* @copyright Copyright (C) 2010-2021 Combodo SARL
|
|
* @license http://opensource.org/licenses/AGPL-3.0
|
|
*/
|
|
|
|
|
|
namespace Combodo\iTop\Application\UI\Base\Component\Dashlet;
|
|
|
|
|
|
/**
|
|
* Class DashletFactory
|
|
*
|
|
* @author Eric Espie <eric.espie@combodo.com>
|
|
* @package Combodo\iTop\Application\UI\Base\Component\Dashlet
|
|
* @since 3.0.0
|
|
* @internal
|
|
*/
|
|
class DashletFactory
|
|
{
|
|
public static function MakeForDashletBadge(string $sClassIconUrl, string $sHyperlink, string $iCount, string $sClassLabel, ?string $sCreateActionUrl = '', ?string $sCreateActionLabel = '', array $aRefreshParams = []): DashletBadge
|
|
{
|
|
return new DashletBadge($sClassIconUrl, $sHyperlink, $iCount, $sClassLabel, $sCreateActionUrl, $sCreateActionLabel, $aRefreshParams);
|
|
}
|
|
|
|
public static function MakeForDashletHeaderStatic(string $sTitle, string $sIconUrl, string $sId = null): DashletHeaderStatic
|
|
{
|
|
return new DashletHeaderStatic($sTitle, $sIconUrl, $sId);
|
|
}
|
|
|
|
public static function MakeForDashletPlainText(string $sText, string $sId = null): DashletPlainText
|
|
{
|
|
return new DashletPlainText($sText, $sId);
|
|
}
|
|
|
|
} |