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
ltiregend.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
ilInitialisation::initILIAS
();
27
$clientId
= (
ilSession::has
(
'lti_dynamic_registration_client_id'
)) ? (
string
)
ilSession::get
(
'lti_dynamic_registration_client_id'
) :
''
;
28
$response
= [];
29
if
(empty(
$clientId
)) {
30
$response
[
"providerId"
] = 0;
31
$response
[
"error"
] =
"could not find created client_id"
;
32
}
else
{
33
try
{
34
$response
[
"providerId"
] =
ilLTIConsumeProvider::getProviderIdFromClientId
(
$clientId
);
35
$response
[
"error"
] =
""
;
36
}
catch
(\
ILIAS
\
Filesystem
\
Exception
\IOException
$e
) {
37
$response
[
"providerId"
] = 0;
38
$response
[
"error"
] = $e->getMessage();
39
}
40
}
41
header(
'Content-Type: application/json; charset=utf-8'
);
42
echo json_encode(
$response
, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
ilSession\get
static get(string $a_var)
Definition:
class.ilSession.php:459
ILIAS
Class ChatMainBarProvider .
$clientId
$clientId
Definition:
ltiregend.php:27
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
ilLTIConsumeProvider\getProviderIdFromClientId
static getProviderIdFromClientId(string $clientId)
Definition:
class.ilLTIConsumeProvider.php:929
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1225
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:464
$response
$response
Definition:
ltiregend.php:28
Filesystem
Class FlySystemFileAccessTest disabled disabled disabled.
Exception
Modules
LTIConsumer
ltiregend.php
Generated on Sat Apr 5 2025 22:01:29 for ILIAS by
1.8.13 (using
Doxyfile
)