◆ init()
ilLSLocalDI::init |
( |
ArrayAccess |
$dic, |
|
|
ArrayAccess |
$lsdic, |
|
|
DataFactory |
$data_factory, |
|
|
ilObjLearningSequence |
$object |
|
) |
| |
Definition at line 31 of file class.ilLSLocalDI.php.
References $c, ilObject\_getAllReferences(), ilContainerSorting\_getInstance(), LSControlBuilder\CMD_CHECK_CURRENT_ITEM_LP, ilObjLearningSequenceLearnerGUI\CMD_VIEW, EXTRO, ilObjLearningSequence\getContentPageHTML(), ilObject\getId(), ilObject\getRefId(), ILIAS\Repository\int(), and ilLSPlayer\LSO_CMD_GOTO.
39 $current_user =
$dic[
'ilUser'];
40 $current_user_id = (
int) $current_user->getId();
42 $this[
"obj.ref_id"] =
function (
$c) use ($object):
int {
46 $ref = array_shift($refs);
51 $this[
"obj.obj_id"] = $obj_id;
53 $this[
"usr.id"] = $current_user_id;
64 $lsdic[
"db.postconditions"],
73 $dic[
'ilObjDataCache']
88 return $dic[
"http"]->wrapper()->query();
106 $lsdic[
"db.settings"]->getSettingsFor(
$c[
"obj.obj_id"]),
107 $c[
"player.curriculumbuilder"],
108 $c[
"player.launchlinksbuilder"],
116 $this[
"player.urlbuilder.lp"] =
function (
$c) use (
$dic, $data_factory):
LSUrlBuilder {
117 $player_base_url =
$dic[
'ilCtrl']->getLinkTargetByClass(
118 'ilObjLearningSequenceLPPollingGUI',
124 $player_base_url = $data_factory->uri(ILIAS_HTTP_PATH .
'/' . $player_base_url);
132 $dic[
'ilObjDataCache'],
134 $dic->http()->wrapper()->query()
140 $c[
"player.urlbuilder"],
147 $c[
"player.urlbuilder"],
154 $dic[
'service.kiosk_mode'],
157 $dic[
'learning_object_metadata']
162 $player_base_url =
$dic[
'ilCtrl']->getLinkTargetByClass(
163 'ilObjLearningSequenceLearnerGUI',
169 $player_base_url = $data_factory->uri(ILIAS_HTTP_PATH .
'/' . $player_base_url);
176 return $db->getSettings();
182 $c[
"player.urlbuilder"],
184 $c[
"globalsetttings"],
185 $c[
"player.urlbuilder.lp"]
190 $kiosk_template =
new ilTemplate(
"tpl.kioskpage.html",
true,
true,
'components/ILIAS/LearningSequence');
191 $window_title =
$dic[
'ilSetting']->get(
'short_inst_name',
'ILIAS');
194 $dic[
"global_screen"]->layout()->meta(),
211 $c[
"player.urlbuilder"]
216 $first_access =
$c[
"learneritems"]->getFirstAccess();
234 $c[
"player.controlbuilder"],
235 $c[
"player.urlbuilder"],
236 $c[
"player.curriculumbuilder"],
237 $c[
"player.viewfactory"],
238 $c[
"player.kioskrenderer"],
240 $lsdic[
"gs.current_context"],
248 $dic[
"ilLoggerFactory"]->getRootLogger(),
249 $dic[
"ilAppEventHandler"],
269 return $dic[
'ui.renderer'];
Global Settings of the Learning Sequence.
Builds the links to join/(re-)start the LearningSequence.
static _getAllReferences(int $id)
get all reference ids for object ID
Repository for LSGlobalSettings over ILIAS global settings.
const CMD_CHECK_CURRENT_ITEM_LP
getContentPageHTML(LSOPageType $page_type)
This combines calls to ProgressDB and StateDB to handle learner-items in the context of a specific LS...
Implementation of KioskMode Player.
Get LearningProgress and availability of items in sequence.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getInstance(int $a_obj_id)
Builds the overview (curriculum) of a LearningSequence.
Class ArrayBasedRequestWrapper.
The documentation for this class was generated from the following file: