◆ __construct()
◆ executeCommand()
ilLTIConsumerEmbeddedContentGUI::executeCommand |
( |
| ) |
|
◆ getLaunchParameters()
ilLTIConsumerEmbeddedContentGUI::getLaunchParameters |
( |
| ) |
|
|
protected |
Definition at line 91 of file class.ilLTIConsumerEmbeddedContentGUI.php.
92 {
94
96 $launchContext = $ilLTIConsumerLaunch->getContext();
97
99 $launchContextId = $launchContext["id"];
100 $launchContextTitle = $launchContext["title"];
101
103 $DIC->user()->getId(),
104 $this->object->getRefId(),
105 $this->object->getId()
106 );
107
108 return $this->object->buildLaunchParameters(
109 $this->cmixUser,
111 $launchContextType,
112 $launchContextId,
113 $launchContextTitle
114 );
115 }
static fillToken($usrId, $refId, $objId, $lrsTypeId=0)
static getLTIContextType($a_type)
References $DIC, $token, ilCmiXapiAuthToken\fillToken(), and ilLTIConsumerLaunch\getLTIContextType().
Referenced by showEmbedded().
◆ initCmixUser()
ilLTIConsumerEmbeddedContentGUI::initCmixUser |
( |
| ) |
|
|
protected |
Definition at line 132 of file class.ilLTIConsumerEmbeddedContentGUI.php.
133 {
135
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();
142 }
143 }
static getIdent($userIdentMode, ilObjUser $user)
References $DIC, and ilCmiXapiUser\getIdent().
Referenced by showEmbedded().
◆ isEmbeddedLaunchRequest()
static ilLTIConsumerEmbeddedContentGUI::isEmbeddedLaunchRequest |
( |
| ) |
|
|
static |
◆ showEmbedded()
ilLTIConsumerEmbeddedContentGUI::showEmbedded |
( |
| ) |
|
|
protected |
Definition at line 64 of file class.ilLTIConsumerEmbeddedContentGUI.php.
65 {
67
68 $tpl =
new ilTemplate(
'tpl.lti_embedded.html',
true,
true,
'Modules/LTIConsumer');
69
71 $tpl->setCurrentBlock(
'launch_parameter');
72 $tpl->setVariable(
'LAUNCH_PARAMETER', $field);
73 $tpl->setVariable(
'LAUNCH_PARAM_VALUE', $value);
74 $tpl->parseCurrentBlock();
75 }
76
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);
80
82 $tpl->setVariable(
'LAUNCH_URL', $this->object->getProvider()->getProviderUrl());
83
84 #$DIC->ui()->mainTemplate()->getStandardTemplate();
85 #$DIC->ui()->mainTemplate()->setContent($tpl->get());
86
89 }
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
References $tpl, exit, ilUtil\getImagePath(), getLaunchParameters(), ILIAS_VERSION_NUMERIC, and initCmixUser().
◆ showPage()
ilLTIConsumerEmbeddedContentGUI::showPage |
( |
| ) |
|
|
protected |
◆ $cmixUser
ilLTIConsumerEmbeddedContentGUI::$cmixUser |
|
protected |
◆ $object
ilLTIConsumerEmbeddedContentGUI::$object |
|
protected |
◆ CMD_SHOW_EMBEDDED
const ilLTIConsumerEmbeddedContentGUI::CMD_SHOW_EMBEDDED = 'showEmbedded' |
◆ CMD_SHOW_PAGE
const ilLTIConsumerEmbeddedContentGUI::CMD_SHOW_PAGE = 'showPage' |
The documentation for this class was generated from the following file: