42 $this->
ui = $DIC->ui();
43 $this->ctrl = $DIC->ctrl();
44 $this->lng = $DIC->language();
45 $this->lng->loadLanguageModule(
"rep");
55 $f = $this->
ui->factory();
58 foreach ($this->block_view->getItemGroups() as $group) {
60 foreach ($group->getItems() as $item) {
61 $items[] =
$f->item()->standard(
63 )->withLeadIcon(
$f->symbol()->icon()->custom(
ilObject::_getIcon($item[
"obj_id"]), $item[
"title"]));
65 if (count($items) > 0) {
66 $item_groups[] =
$f->item()->group((
string) $group->getLabel(), $items);
69 if (count($item_groups) > 0) {
70 $ctrl->setParameterByClass(
"ilPDSelectedItemsBlockGUI",
"view",
"0");
71 $ctrl->setParameterByClass(
"ilPDSelectedItemsBlockGUI",
"col_side",
"center");
72 $ctrl->setParameterByClass(
"ilPDSelectedItemsBlockGUI",
"block_type",
"pditems");
73 $panel =
$f->panel()->secondary()->listing(
"", $item_groups);
75 $this->lng->txt(
"rep_configure"),
76 $ctrl->getLinkTargetByClass(
77 [
"ilDashboardGUI",
"ilColumnGUI",
"ilPDSelectedItemsBlockGUI"],
82 return $this->
ui->renderer()->render([
$panel]);
85 return $pdblock->getNoItemFoundContent();
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
__construct($user=null)
Constructor.
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
static bySettings(ilPDSelectedItemsBlockViewSettings $viewSettings)
ilPDSelectedItemsBlockGUI: ilColumnGUI ilPDSelectedItemsBlockGUI: ilCommonActionDispatcherGUI ...
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")