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