1 <?php declare(strict_types=1);
18 $obj_id = (int) $object->
getId();
21 $current_user = $dic[
'ilUser'];
22 $current_user_id = (int) $current_user->getId();
24 $data_factory = new \ILIAS\Data\Factory();
26 $this[
"obj.ref_id"] = $ref_id;
27 $this[
"obj.obj_id"] = $obj_id;
28 $this[
"obj.title"] = (string) $obj_title;
30 $this[
"usr.id"] = $current_user_id;
36 $this[
"db.lsitems"] =
function (
$c) use ($dic, $lsdic) :
ilLSItemsDB {
41 $lsdic[
"db.postconditions"],
50 $dic[
'ilObjDataCache']
64 $has_items = count(
$c[
"learneritems"]->getItems()) > 0;
65 $first_access =
$c[
"learneritems"]->getFirstAccess();
80 $lsdic[
"db.settings"]->getSettingsFor(
$c[
"obj.obj_id"]),
81 $c[
"player.curriculumbuilder"],
86 $this[
"gui.toc"] =
function (
$c) use ($dic) :
ilLSTOCGUI {
88 $c[
"player.urlbuilder"],
95 $c[
"player.urlbuilder"],
102 $dic[
'service.kiosk_mode'],
108 $this[
"player.urlbuilder"] =
function (
$c) use ($dic, $data_factory) :
LSUrlBuilder {
109 $player_base_url = $dic[
'ilCtrl']->getLinkTargetByClass(
110 'ilObjLearningSequenceLearnerGUI',
116 $player_base_url = $data_factory->uri(
ILIAS_HTTP_PATH .
'/' . $player_base_url);
121 $this[
"globalsetttings"] =
function (
$c) use ($dic) {
123 return $db->getSettings();
129 $c[
"player.urlbuilder"],
131 $c[
"globalsetttings"]
136 $kiosk_template =
new ilTemplate(
"tpl.kioskpage.html",
true,
true,
'Modules/LearningSequence');
137 $window_title = $dic[
'ilSetting']->get(
'short_inst_name');
138 if ($window_title ===
false) {
139 $window_title =
'ILIAS';
144 $dic[
"global_screen"]->layout()->meta(),
161 $c[
"player.urlbuilder"]
165 $this[
"player"] =
function (
$c) use ($dic, $lsdic) :
ilLSPlayer {
169 $c[
"player.controlbuilder"],
170 $c[
"player.urlbuilder"],
171 $c[
"player.curriculumbuilder"],
172 $c[
"player.viewfactory"],
173 $c[
"player.kioskrenderer"],
175 $lsdic[
"gs.current_context"]
183 $dic[
"ilLoggerFactory"]->getRootLogger(),
184 $dic[
"ilAppEventHandler"],
Class ilObjLearningSequence.
Repository for LSGlobalSettings over ILIAS global settings.
Class ilObjLearningSequenceLearnerGUI.
getId()
get object id public
getTitle()
get object title public
This combines calls to ProgressDB and StateDB to handle learner-items in the context of a specific LS...
Implementation of KioskMode Player.
init(ArrayAccess $dic, ilLSDI $lsdic, DataFactory $data_factory, ilObjLearningSequence $object)
Get LearningProgress and availability of items in sequence.
getRefId()
get reference id public
static _getInstance($a_obj_id)
get instance by obj_id
Builds the overview (curriculum) of a LearningSequence.