ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
ltiregend.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
22
chdir(
"../../../"
);
23
24
ilInitialisation::initILIAS
();
25
$clientId
= (
ilSession::has
(
'lti_dynamic_registration_client_id'
)) ? (
string
)
ilSession::get
(
'lti_dynamic_registration_client_id'
) :
''
;
26
$response
= [];
27
if
(empty(
$clientId
)) {
28
$response
[
"providerId"
] = 0;
29
$response
[
"error"
] =
"could not find created client_id"
;
30
}
else
{
31
try
{
32
$response
[
"providerId"
] =
ilLTIConsumeProvider::getProviderIdFromClientId
(
$clientId
);
33
$response
[
"error"
] =
""
;
34
}
catch
(\
ILIAS
\
Filesystem
\
Exception
\IOException
$e
) {
35
$response
[
"providerId"
] = 0;
36
$response
[
"error"
] = $e->getMessage();
37
}
38
}
39
header
(
'Content-Type: application/json; charset=utf-8'
);
40
echo json_encode(
$response
, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
ilSession\get
static get(string $a_var)
Definition:
class.ilSession.php:388
ILIAS
Interface Observer Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
$clientId
$clientId
Definition:
ltiregend.php:25
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:1145
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:393
$response
$response
Definition:
ltiregend.php:26
ILIAS\UI\examples\Symbol\Glyph\Header\header
header()
expected output: > ILIAS shows the rendered Component.
Definition:
header.php:29
Filesystem
Exception
components
ILIAS
LTIConsumer
ltiregend.php
Generated on Sun Aug 31 2025 23:03:17 for ILIAS by
1.8.13 (using
Doxyfile
)