19 declare(strict_types=1);
38 $this->
ui = $DIC->ui();
39 $this->
ctrl = $DIC->ctrl();
40 $this->
lng = $DIC->language();
42 $this->
lng->loadLanguageModule(
'rep');
48 $f = $this->
ui->factory();
50 foreach ($this->favoritesManager->getItemGroups() as $key => $group) {
51 foreach ($group as $item) {
52 $items[] =
$f->item()->standard(
53 $f->link()->standard($item->getTitle(), ilLink::_getLink($item->getRefId()))
54 )->withLeadIcon(
$f->symbol()->icon()->custom(
ilObject::_getIcon((
int) $item->getObjId()), $item->getTitle()));
57 return $items === [] ?
'' : $this->
ui->renderer()->render(
$f->panel()->secondary()->listing(
'', [
$f->item()->group(
'', $items)]));
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilSelectedItemsBlockGUI $favoritesManager
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(?ilObjUser $user=null)