ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.TestSkillDBRepository.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Test\Skills
;
22
26
class
TestSkillDBRepository
27
{
28
protected \ilDBInterface
$db
;
29
30
public
function
__construct
(
31
?\
ilDBInterface
$db =
null
32
) {
33
global
$DIC
;
34
35
$this->db = (
$db
) ?: $DIC->database();
36
}
37
38
public
function
removeForSkill
(
int
$skill_node_id,
bool
$is_reference): void
39
{
40
if
(!$is_reference) {
41
$this->db->manipulate(
"DELETE FROM tst_skl_thresholds "
.
42
" WHERE skill_base_fi = "
. $this->db->quote($skill_node_id,
"integer"
));
43
}
else
{
44
$this->db->manipulate(
"DELETE FROM tst_skl_thresholds "
.
45
" WHERE skill_tref_fi = "
. $this->db->quote($skill_node_id,
"integer"
));
46
}
47
}
48
}
ILIAS\Test\Skills\TestSkillDBRepository\removeForSkill
removeForSkill(int $skill_node_id, bool $is_reference)
Definition:
class.TestSkillDBRepository.php:38
ILIAS\Test\Skills
Definition:
class.TestSkillDBRepository.php:21
ILIAS\Test\Skills\TestSkillDBRepository
Definition:
class.TestSkillDBRepository.php:26
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ILIAS\Test\Skills\TestSkillDBRepository\$db
ilDBInterface $db
Definition:
class.TestSkillDBRepository.php:28
$DIC
global $DIC
Definition:
shib_login.php:26
ilDBInterface
ILIAS\Test\Skills\TestSkillDBRepository\__construct
__construct(?\ilDBInterface $db=null)
Definition:
class.TestSkillDBRepository.php:30
components
ILIAS
Test
classes
Skills
class.TestSkillDBRepository.php
Generated on Sun Aug 31 2025 23:03:57 for ILIAS by
1.8.13 (using
Doxyfile
)