ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ltiregistration.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
22
chdir(
"../../"
);
23
24
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
25
26
ilContext::init
(
ilContext::CONTEXT_SCORM
);
27
ilInitialisation::initILIAS
();
28
29
try
{
30
$token
=
ilObjLTIConsumer::verifyToken
();
31
$data
= json_decode(
ilObjLTIConsumer::getRawData
(),
true
);
32
$responseData
=
ilObjLTIConsumer::registerClient
(
$data
,
$token
);
33
ilObjLTIConsumer::sendResponseJson
(
$responseData
);
34
}
catch
(
Exception
$e
) {
35
ilObjLTIConsumer::sendResponseError
(500,
"error in ltiregistration.php"
);
36
}
ilObjLTIConsumer\getRawData
static getRawData()
Definition:
class.ilObjLTIConsumer.php:1352
$data
$data
Definition:
ltiregistration.php:31
ilObjLTIConsumer\sendResponseError
static sendResponseError(int $code, string $message, $log=true)
Definition:
class.ilObjLTIConsumer.php:1309
ilContext\CONTEXT_SCORM
const CONTEXT_SCORM
Definition:
class.ilContext.php:42
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
$responseData
$responseData
Definition:
ltiregistration.php:32
ilObjLTIConsumer\registerClient
static registerClient(array $data, object $tokenObj)
Definition:
class.ilObjLTIConsumer.php:1267
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1225
$token
$token
Definition:
xapitoken.php:70
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
ilObjLTIConsumer\sendResponseJson
static sendResponseJson(array $obj)
Definition:
class.ilObjLTIConsumer.php:1328
ilObjLTIConsumer\verifyToken
static verifyToken()
Definition:
class.ilObjLTIConsumer.php:1367
Exception
Modules
LTIConsumer
ltiregistration.php
Generated on Tue Apr 1 2025 22:01:31 for ILIAS by
1.8.13 (using
Doxyfile
)