ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Test\Skills\TestSkillDBRepository Class Reference
+ Collaboration diagram for ILIAS\Test\Skills\TestSkillDBRepository:

Public Member Functions

 __construct (?\ilDBInterface $db=null)
 
 removeForSkill (int $skill_node_id, bool $is_reference)
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Author
Thomas Famula famul.nosp@m.a@le.nosp@m.ifos..nosp@m.de

Definition at line 26 of file class.TestSkillDBRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Test\Skills\TestSkillDBRepository::__construct ( ?\ilDBInterface  $db = null)

Definition at line 30 of file class.TestSkillDBRepository.php.

32 {
33 global $DIC;
34
35 $this->db = ($db) ?: $DIC->database();
36 }
global $DIC
Definition: shib_login.php:26

References ILIAS\Test\Skills\TestSkillDBRepository\$db, and $DIC.

Member Function Documentation

◆ removeForSkill()

ILIAS\Test\Skills\TestSkillDBRepository::removeForSkill ( int  $skill_node_id,
bool  $is_reference 
)

Definition at line 38 of file class.TestSkillDBRepository.php.

38 : 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 }

Field Documentation

◆ $db

ilDBInterface ILIAS\Test\Skills\TestSkillDBRepository::$db
protected

The documentation for this class was generated from the following file: