ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ContainerSkillDeletionManager.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Container\Skills;
22 
27 {
30 
31  public function __construct(
32  ?ContainerSkillDBRepository $cont_skill_repo = null,
33  ?ContainerMemberSkillDBRepository $cont_member_skill_repo = null
34  ) {
35  global $DIC;
36 
37  $this->cont_skill_repo = ($cont_skill_repo)
38  ?: $DIC->skills()->internalContainer()->repo()->getContainerSkillRepo();
39  $this->cont_member_skill_repo = ($cont_member_skill_repo)
40  ?: $DIC->skills()->internalContainer()->repo()->getContainerMemberSkillRepo();
41  }
42 
43  public function removeContainerSkillsForSkill(int $skill_node_id, bool $is_reference = false): void
44  {
45  $this->cont_skill_repo->removeForSkill($skill_node_id, $is_reference);
46  }
47 
48  public function removeContainerMemberSkillsForSkill(int $skill_node_id, bool $is_reference = false): void
49  {
50  $this->cont_member_skill_repo->removeForSkill($skill_node_id, $is_reference);
51  }
52 }
removeContainerSkillsForSkill(int $skill_node_id, bool $is_reference=false)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(?ContainerSkillDBRepository $cont_skill_repo=null, ?ContainerMemberSkillDBRepository $cont_member_skill_repo=null)
global $DIC
Definition: shib_login.php:22
removeContainerMemberSkillsForSkill(int $skill_node_id, bool $is_reference=false)