N°3565 - Migrate backoffice pages to new UIBlock system : Setup

This commit is contained in:
Eric
2021-02-01 16:28:10 +01:00
parent 664dd12241
commit 2f68be14f8
16 changed files with 756 additions and 248 deletions

View File

@@ -23,6 +23,17 @@ class TitleUIBlockFactory extends AbstractUIBlockFactory
return new Title($sTitle, 1, $sId);
}
public static function MakeForPageWithIcon(
string $sTitle, string $sIconUrl, string $sIconCoverMethod = Title::DEFAULT_ICON_COVER_METHOD, bool $bIsMedallion = true,
?string $sId = null
)
{
$oTitle = new Title($sTitle, 1, $sId);
$oTitle->SetIcon($sIconUrl, $sIconCoverMethod, $bIsMedallion);
return $oTitle;
}
public static function MakeForObjectDetails(DBObject $oObject, ?string $sId = null)
{
// TODO 3.0.0: Refactor all of this