Dashboard recommended content UI.
More...
◆ executeCommand()
| ilDashboardRecommendedContentGUI::executeCommand |
( |
| ) |
|
◆ getListItemGroups()
| ilDashboardRecommendedContentGUI::getListItemGroups |
( |
| ) |
|
|
protected |
- Returns
- Group[]
Definition at line 97 of file class.ilDashboardRecommendedContentGUI.php.
97 : array
98 {
101
102 $item_groups = [];
103 $list_items = [];
104
105 foreach ($this->recommendations as
$ref_id) {
106 try {
107 if (!
$DIC->access()->checkAccess(
'visible',
'',
$ref_id)) {
108 continue;
109 }
110 $list_items[] = $this->getListItemForData(
$ref_id);
112 continue;
113 }
114 }
115
116 $item_groups[] =
$factory->item()->group(
"", $list_items);
117
118 return $item_groups;
119 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
References $DIC, Vendor\Package\$e, $factory, and $ref_id.
◆ makeFavourite()
| ilDashboardRecommendedContentGUI::makeFavourite |
( |
| ) |
|
|
protected |
Definition at line 222 of file class.ilDashboardRecommendedContentGUI.php.
222 : void
223 {
226 $this->fav_manager->add($this->
user->getId(), $this->requested_item_ref_id);
227 $this->main_tpl->setOnScreenMessage(
'success',
$lng->
txt(
"dash_added_to_favs"),
true);
229 }
returnToParent(object $a_gui_obj, string $a_anchor=null)
@inheritDoc
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
References $ctrl, $lng, ilCtrl\returnToParent(), ilLanguage\txt(), and ILIAS\Repository\user().
◆ remove()
| ilDashboardRecommendedContentGUI::remove |
( |
| ) |
|
|
protected |
◆ render()
| ilDashboardRecommendedContentGUI::render |
( |
| ) |
|
Definition at line 81 of file class.ilDashboardRecommendedContentGUI.php.
81 : string
82 {
83 if (count($this->recommendations) === 0) {
84 return "";
85 }
86 return $this->
ui->renderer()->render(
87 $this->
ui->factory()->panel()->listing()->standard(
88 $this->lng->txt("rep_recommended_content"),
89 $this->getListItemGroups()
90 )
91 );
92 }
References ILIAS\Repository\ui().
◆ $ctrl
| ilCtrl ilDashboardRecommendedContentGUI::$ctrl |
|
protected |
◆ $fav_manager
◆ $list_by_type
| array ilDashboardRecommendedContentGUI::$list_by_type = [] |
|
static |
◆ $lng
◆ $main_tpl
◆ $objDefinition
◆ $rec_manager
◆ $recommendations
| array ilDashboardRecommendedContentGUI::$recommendations |
|
protected |
◆ $requested_item_ref_id
| int ilDashboardRecommendedContentGUI::$requested_item_ref_id |
|
protected |
◆ $settings
| ilSetting ilDashboardRecommendedContentGUI::$settings |
|
protected |
◆ $ui
| ILIAS DI UIServices ilDashboardRecommendedContentGUI::$ui |
|
protected |
◆ $user
| ilObjUser ilDashboardRecommendedContentGUI::$user |
|
protected |
The documentation for this class was generated from the following file: