ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
class.TestParticipantInfoService.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Test
;
22
class
TestParticipantInfoService
23
{
24
private \ilDBInterface
$database
;
25
26
public
function
__construct
(\
ilDBInterface
$db
)
27
{
28
$this->database =
$db
;
29
}
30
31
public
function
lookupTestIdByActiveId
(
int
$active_id):
int
32
{
33
$result = $this->database->queryF(
34
"SELECT test_fi FROM tst_active WHERE active_id = %s"
,
35
array(
'integer'
),
36
array($active_id)
37
);
38
$test_id = -1;
39
if
($this->database->numRows($result) > 0) {
40
$row = $this->database->fetchAssoc($result);
41
$test_id = (
int
) $row[
"test_fi"
];
42
}
43
44
return
$test_id;
45
}
46
}
ILIAS\Test\TestParticipantInfoService\lookupTestIdByActiveId
lookupTestIdByActiveId(int $active_id)
Definition:
class.TestParticipantInfoService.php:31
ILIAS\Test\TestParticipantInfoService\__construct
__construct(\ilDBInterface $db)
Definition:
class.TestParticipantInfoService.php:26
ilDBInterface
ILIAS\Test
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\Test\TestParticipantInfoService
Definition:
class.TestParticipantInfoService.php:22
ILIAS\Test\TestParticipantInfoService\$database
ilDBInterface $database
Definition:
class.TestParticipantInfoService.php:24
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\$db
$db
Definition:
class.ilias.php:46
Modules
Test
Service
class.TestParticipantInfoService.php
Generated on Wed Sep 10 2025 14:11:07 for ILIAS by
1.8.13 (using
Doxyfile
)