ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
ltiresult.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
require_once(
"../vendor/composer/vendor/autoload.php"
);
22
23
if
(!isset(
$_GET
[
'client_id'
]) || !strlen(
$_GET
[
'client_id'
])) {
24
$log
=
ilLoggerFactory::getLogger
(
'lti'
);
25
$log
->error(
"HTTP/1.1 401 Authorization Required"
);
26
header
(
'HTTP/1.1 401 Authorization Required'
);
27
exit
;
28
}
29
30
\ilContext::init
(\
ilContext::CONTEXT_SCORM
);
31
\ilInitialisation::initILIAS
();
32
33
$dic
=
$GLOBALS
[
'DIC'
];
34
$log
=
ilLoggerFactory::getLogger
(
'lti'
);
35
$log
->info(
"LTI result init successful"
);
36
$service
=
new
ilLTIConsumerResultService
();
37
$service
->handleRequest();
ilLoggerFactory\getLogger
static getLogger(string $a_component_id)
Get component logger.
Definition:
class.ilLoggerFactory.php:90
ilContext\CONTEXT_SCORM
const CONTEXT_SCORM
Definition:
class.ilContext.php:42
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1153
$GLOBALS
$GLOBALS["DIC"]
Definition:
wac.php:30
$log
$log
Definition:
ltiresult.php:34
$_GET
$_GET['cmd']
Definition:
lti.php:26
ilLTIConsumerResultService
Definition:
class.ilLTIConsumerResultService.php:34
$service
$service
Definition:
ltiresult.php:36
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
$dic
$dic
Definition:
ltiresult.php:33
ILIAS\UI\examples\Symbol\Glyph\Header\header
header()
expected output: > ILIAS shows the rendered Component.
Definition:
header.php:13
exit
exit
Definition:
zoneinfo_generator.php:3
components
ILIAS
LTIConsumer
resources
ltiresult.php
Generated on Wed Sep 10 2025 15:15:54 for ILIAS by
1.8.13 (using
Doxyfile
)