ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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);
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1144
ilLTIConsumeProvider\getProviderIdFromClientId
static getProviderIdFromClientId(string $clientId)
Definition:
class.ilLTIConsumeProvider.php:929
ilSession\get
static get(string $a_var)
Definition:
class.ilSession.php:388
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:393
$clientId
$clientId
Definition:
ltiregend.php:26
$response
$response
Definition:
ltiregend.php:27
ILIAS\UI\examples\Symbol\Glyph\Header\header
header()
Definition:
header.php:29
ILIAS
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
components
ILIAS
LTIConsumer
resources
ltiregend.php
Generated on Sat Oct 18 2025 23:03:22 for ILIAS by
1.9.4 (using
Doxyfile
)