45 $command =
$DIC->ctrl()->getCmd(self::CMD_SHOW_PAGE);
54 $tpl =
new ilTemplate(
'tpl.lti_content.html',
true,
true,
'Modules/LTIConsumer');
56 $tpl->setVariable(
"EMBEDDED_IFRAME_SRC",
$DIC->ctrl()->getLinkTarget(
58 self::CMD_SHOW_EMBEDDED
61 $DIC->ui()->mainTemplate()->setContent(
$tpl->get());
68 $tpl =
new ilTemplate(
'tpl.lti_embedded.html',
true,
true,
'Modules/LTIConsumer');
71 $tpl->setCurrentBlock(
'launch_parameter');
72 $tpl->setVariable(
'LAUNCH_PARAMETER', $field);
73 $tpl->setVariable(
'LAUNCH_PARAM_VALUE', $value);
74 $tpl->parseCurrentBlock();
78 $tpl->setVariable(
"DELOS_CSS_HREF",
'templates/default/delos.css' . $v);
79 $tpl->setVariable(
"JQUERY_SRC",
'libs/bower/bower_components/jquery/dist/jquery.js' . $v);
82 $tpl->setVariable(
'LAUNCH_URL', $this->object->getProvider()->getProviderUrl());
84 #$DIC->ui()->mainTemplate()->getStandardTemplate();
85 #$DIC->ui()->mainTemplate()->setContent($tpl->get());
96 $launchContext = $ilLTIConsumerLaunch->getContext();
99 $launchContextId = $launchContext[
"id"];
100 $launchContextTitle = $launchContext[
"title"];
103 $DIC->user()->getId(),
104 $this->object->getRefId(),
105 $this->object->getId()
108 return $this->
object->buildLaunchParameters(
121 if (
$DIC->ctrl()->getNextClass() != strtolower(self::class)) {
125 if (
$DIC->ctrl()->getCmd() != self::CMD_SHOW_EMBEDDED) {
136 $this->cmixUser =
new ilCmiXapiUser($this->object->getId(),
$DIC->user()->getId(), $this->object->getProvider()->getPrivacyIdent());
137 $user_ident = $this->cmixUser->getUsrIdent();
138 if ($user_ident ==
'' || $user_ident ==
null) {
140 $this->cmixUser->setUsrIdent($user_ident);
141 $this->cmixUser->save();
An exception for terminatinating execution or to throw for unit testing.
static fillToken($usrId, $refId, $objId, $lrsTypeId=0)
static getIdent($userIdentMode, ilObjUser $user)
__construct(ilObjLTIConsumer $object)
static isEmbeddedLaunchRequest()
static getLTIContextType($a_type)
special template class to simplify handling of ITX/PEAR
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
const ILIAS_VERSION_NUMERIC
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl