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);
39  ilPersonalSkill::removeMaterials($this->obj_id);
41  ilBasicSkill::removeAllUserData($this->obj_id);
42  }
43  }
44 }
Handles deletion of (user) objects.
static removeUserFromAllProfiles($a_user_id)
Remove user from all profiles.
static removeMaterials($a_user_id)
Remove materials of user.
static _lookupType($a_id, $a_reference=false)
lookup object type
static removeSkills($a_user_id)
Remove personal skills of user.
static removeAllUserData($a_user_id)
Remove all data of a user.
__construct($obj_id, $obj_type)
Constructor.