ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 }
44}
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 removeUserFromAllProfiles($a_user_id)
Remove user from all profiles.