Definition at line 33 of file ModalBuilder.php.
◆ __construct()
◆ constructModal()
ILIAS\Badge\ModalBuilder::constructModal |
( |
?Image |
$badge_image, |
|
|
string |
$badge_title, |
|
|
array |
$badge_properties = [] |
|
) |
| |
- Parameters
-
array<string,string> | $badge_properties |
Definition at line 57 of file ModalBuilder.php.
References ilDatePresentation\formatDate(), IL_CAL_UNIX, null, and ILIAS\Badge\ModalBuilder\translateKeysWithValidDataAttribute().
Referenced by ILIAS\Badge\ilBadgeTableGUI\enrichRecord(), and ILIAS\Badge\ilObjectBadgeTableGUI\enrichRecord().
62 if ($badge_image !==
null) {
63 $modal_content[] = $badge_image;
66 if ($this->assignment) {
74 $modal_content[] = $this->ui_factory->item()
75 ->standard($badge_title)
77 ->withProperties($badge_properties);
79 $card = $this->ui_factory->card()
80 ->standard($badge_title)
81 ->withHiddenSections($modal_content);
83 return $this->ui_factory->modal()->lightbox(
84 $this->ui_factory->modal()->lightboxCardPage($card)
translateKeysWithValidDataAttribute(array $properties)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
◆ renderModal()
ILIAS\Badge\ModalBuilder::renderModal |
( |
Modal |
$modal | ) |
|
◆ renderShyButton()
ILIAS\Badge\ModalBuilder::renderShyButton |
( |
string |
$label, |
|
|
Modal |
$modal |
|
) |
| |
◆ translateKeysWithValidDataAttribute()
ILIAS\Badge\ModalBuilder::translateKeysWithValidDataAttribute |
( |
array |
$properties | ) |
|
|
private |
◆ $assignment
◆ $lng
◆ $ui_factory
Factory ILIAS\Badge\ModalBuilder::$ui_factory |
|
private |
◆ $ui_renderer
Renderer ILIAS\Badge\ModalBuilder::$ui_renderer |
|
private |
The documentation for this class was generated from the following file: