92 $lm_continue =
new ilCourseLMHistory($this->start_object->getRefId(), $ilUser->getId());
93 $continue_data = $lm_continue->getLMHistory();
97 foreach ($this->start_object->getStartObjects() as $start) {
98 $obj_id = $ilObjDataCache->lookupObjId((
int) $start[
'item_ref_id']);
99 $ref_id = $start[
'item_ref_id'];
100 $type = $ilObjDataCache->lookupType($obj_id);
102 if (!$ilAccess->checkAccess(
"visible",
"",
$ref_id)) {
107 if ($this->start_object->isFullfilled($ilUser->getId(),
$ref_id)) {
108 $accomplished =
'accomplished';
110 $accomplished =
'not_accomplished';
116 if (isset($continue_data[
$ref_id])) {
117 $url = ilLink::_getLink($ref_id,
'', [
119 $continue_data[$ref_id][
'lm_page_id']
121 $actions[
$url] = $this->
lng->txt(
'continue_work');
124 if ($this->enable_desktop) {
126 if (!$this->fav_manager->ifIsFavourite($ilUser->getId(),
$ref_id)) {
127 if ($ilAccess->checkAccess(
'read',
'', $ref_id)) {
128 $this->
ctrl->setParameter($this->parent_obj,
'item_ref_id', $ref_id);
129 $this->
ctrl->setParameter($this->parent_obj,
'item_id', $ref_id);
130 $this->
ctrl->setParameter($this->parent_obj,
'type', $type);
131 $url = $this->
ctrl->getLinkTarget($this->parent_obj,
'addToDesk');
132 $actions[
$url] = $this->
lng->txt(
"rep_add_to_favourites");
135 $this->
ctrl->setParameter($this->parent_obj,
'item_ref_id', $ref_id);
136 $this->
ctrl->setParameter($this->parent_obj,
'item_id', $ref_id);
137 $this->
ctrl->setParameter($this->parent_obj,
'type', $type);
138 $url = $this->
ctrl->getLinkTarget($this->parent_obj,
'removeFromDesk');
139 $actions[
$url] = $this->
lng->txt(
"rep_remove_from_favourites");
143 $default_params =
null;
144 if ($type ===
"tst") {
145 $default_params[
"crs_show_result"] =
$ref_id;
156 if ($accomplished ===
'accomplished') {
157 $icon =
"assets/images/standard/icon_ok.svg";
159 $icon =
"assets/images/standard/icon_not_ok.svg";
167 "append_default" => $default_params,
168 "title" => $ilObjDataCache->lookupTitle($obj_id),
169 "description" => $ilObjDataCache->lookupDescription($obj_id),
170 "status" => $this->
lng->txt(
'crs_objective_' . $accomplished),
171 "status_img" => $icon,
172 "actions" => $actions
177 foreach ($items as $item) {
178 $preloader->addItem($item[
"obj_id"], $item[
"type"], $item[
"ref_id"]);
180 $preloader->preload();
ilObjectDataCache $obj_data_cache
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null