ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilSkillObjDeletionHandler.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
16 protected $obj_id;
17
21 protected $obj_type;
22
26 public function __construct($obj_id, $obj_type)
27 {
28 $this->obj_type = $obj_type;
29 $this->obj_id = $obj_id;
30 }
31
35 public function processDeletion()
36 {
37 if ($this->obj_type == "usr" && ilObject::_lookupType($this->obj_id) == "usr") {
38 ilPersonalSkill::removeSkills($this->obj_id);
42 }
43 if ($this->obj_type == "role" && ilObject::_lookupType($this->obj_id) == "role") {
45 }
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
static removeAllUserData($a_user_id)
Remove all data of a user.
static _lookupType($a_id, $a_reference=false)
lookup object type
static removeSkills($a_user_id)
Remove personal skills of user.
static removeMaterials($a_user_id)
Remove materials of user.
Handles deletion of (user) objects.
__construct($obj_id, $obj_type)
Constructor.
static removeRoleFromAllProfiles(int $a_role_id)
Remove role from all profiles.
static removeUserFromAllProfiles($a_user_id)
Remove user from all profiles.