ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
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:465
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:1209
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:470
$response
$response
Definition:
ltiregend.php:28
ILIAS\UI\examples\Symbol\Glyph\Header\header
header()
Definition:
header.php:7
Filesystem
Exception
Modules
LTIConsumer
ltiregend.php
Generated on Wed Sep 10 2025 14:10:57 for ILIAS by
1.8.13 (using
Doxyfile
)