◆ __construct()
◆ executeCommand()
ilLTIConsumerEmbeddedContentGUI::executeCommand |
( |
| ) |
|
◆ getLaunchParameters()
ilLTIConsumerEmbeddedContentGUI::getLaunchParameters |
( |
| ) |
|
|
protected |
Definition at line 91 of file class.ilLTIConsumerEmbeddedContentGUI.php.
References $DIC, $token, ilCmiXapiAuthToken\fillToken(), ilLTIConsumerLaunch\getContext(), and ilLTIConsumerLaunch\getLTIContextType().
Referenced by showEmbedded().
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(
static getLTIContextType($a_type)
static fillToken($usrId, $refId, $objId, $lrsTypeId=0)
getContext($a_valid_types=array('crs', 'grp', 'cat', 'root'))
get info about the context in which the link is used
◆ initCmixUser()
ilLTIConsumerEmbeddedContentGUI::initCmixUser |
( |
| ) |
|
|
protected |
◆ isEmbeddedLaunchRequest()
static ilLTIConsumerEmbeddedContentGUI::isEmbeddedLaunchRequest |
( |
| ) |
|
|
static |
◆ showEmbedded()
ilLTIConsumerEmbeddedContentGUI::showEmbedded |
( |
| ) |
|
|
protected |
Definition at line 64 of file class.ilLTIConsumerEmbeddedContentGUI.php.
References $tpl, exit, ilUtil\getImagePath(), getLaunchParameters(), ILIAS_VERSION_NUMERIC, and initCmixUser().
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());
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
const ILIAS_VERSION_NUMERIC
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
◆ showPage()
ilLTIConsumerEmbeddedContentGUI::showPage |
( |
| ) |
|
|
protected |
Definition at line 50 of file class.ilLTIConsumerEmbeddedContentGUI.php.
References $DIC, and $tpl.
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());
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
◆ $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: