ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
ltiregistration.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
22
chdir(
"../../../"
);
23
24
ilContext::init
(
ilContext::CONTEXT_SCORM
);
25
ilInitialisation::initILIAS
();
26
27
try
{
28
$token
=
ilObjLTIConsumer::verifyToken
();
29
$data
= json_decode(
ilObjLTIConsumer::getRawData
(),
true
);
30
$responseData
=
ilObjLTIConsumer::registerClient
(
$data
,
$token
);
31
ilObjLTIConsumer::sendResponseJson
(
$responseData
);
32
}
catch
(
Exception
$e
) {
33
ilObjLTIConsumer::sendResponseError
(500,
"error in ltiregistration.php"
);
34
}
ilObjLTIConsumer\getRawData
static getRawData()
Definition:
class.ilObjLTIConsumer.php:1393
$data
$data
Definition:
ltiregistration.php:29
ilObjLTIConsumer\sendResponseError
static sendResponseError(int $code, string $message, $log=true)
Definition:
class.ilObjLTIConsumer.php:1350
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:30
ilObjLTIConsumer\registerClient
static registerClient(array $data, object $tokenObj)
Definition:
class.ilObjLTIConsumer.php:1308
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1145
$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:1369
ilObjLTIConsumer\verifyToken
static verifyToken()
Definition:
class.ilObjLTIConsumer.php:1408
Exception
components
ILIAS
LTIConsumer
ltiregistration.php
Generated on Sun Apr 6 2025 23:03:37 for ILIAS by
1.8.13 (using
Doxyfile
)