27 protected \ILIAS\DI\UIServices
$ui;
42 $this->
ui = $DIC->ui();
43 $this->
ctrl = $DIC->ctrl();
44 $this->
lng = $DIC->language();
45 $this->
lng->loadLanguageModule(
"rep");
50 $f = $this->
ui->factory();
53 foreach ($this->block_view->getItemGroups() as $group) {
55 foreach ($group->getItems() as $item) {
56 $items[] =
$f->item()->standard(
58 )->withLeadIcon(
$f->symbol()->icon()->custom(
ilObject::_getIcon((
int) $item[
"obj_id"]), $item[
"title"]));
60 if (count($items) > 0) {
61 $item_groups[] =
$f->item()->group($group->getLabel(), $items);
64 if (count($item_groups) > 0) {
70 $config_item =
$f->item()->standard(
72 $this->
lng->txt(
"rep_configure"),
73 $this->
ctrl->getLinkTargetByClass([
"ilDashboardGUI",
"ilColumnGUI",
"ilPDSelectedItemsBlockGUI"],
"manage")
76 array_unshift($item_groups,
$f->item()->group($this->
lng->txt(
""), [$config_item]));
77 $panel =
$f->panel()->secondary()->listing(
"", $item_groups);
78 return $this->
ui->renderer()->render([
$panel]);
82 return $pdblock->getNoItemFoundContent();
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
ilPDSelectedItemsBlockViewGUI $block_view
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setParameterByClass(string $a_class, string $a_parameter, $a_value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static bySettings(ilPDSelectedItemsBlockViewSettings $viewSettings)
static _getLink(?int $a_ref_id, string $a_type='', array $a_params=array(), string $append="")
__construct(?ilObjUser $user=null)
ilPDSelectedItemsBlockGUI: ilColumnGUI ilPDSelectedItemsBlockGUI: ilCommonActionDispatcherGUI ...