ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSkillObjDeletionHandler Class Reference

Handles deletion of (user) objects. More...

+ Collaboration diagram for ilSkillObjDeletionHandler:

Public Member Functions

 __construct ($obj_id, $obj_type)
 Constructor. More...
 
 processDeletion ()
 Process deletion. More...
 

Protected Attributes

 $obj_id
 
 $obj_type
 

Detailed Description

Handles deletion of (user) objects.

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 11 of file class.ilSkillObjDeletionHandler.php.

Constructor & Destructor Documentation

◆ __construct()

ilSkillObjDeletionHandler::__construct (   $obj_id,
  $obj_type 
)

Constructor.

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

References $obj_id, and $obj_type.

Member Function Documentation

◆ processDeletion()

ilSkillObjDeletionHandler::processDeletion ( )

Process deletion.

Definition at line 35 of file class.ilSkillObjDeletionHandler.php.

References ilObject\_lookupType(), ilBasicSkill\removeAllUserData(), ilPersonalSkill\removeMaterials(), ilPersonalSkill\removeSkills(), and ilSkillProfile\removeUserFromAllProfiles().

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  }
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.
+ Here is the call graph for this function:

Field Documentation

◆ $obj_id

ilSkillObjDeletionHandler::$obj_id
protected

Definition at line 16 of file class.ilSkillObjDeletionHandler.php.

Referenced by __construct().

◆ $obj_type

ilSkillObjDeletionHandler::$obj_type
protected

Definition at line 21 of file class.ilSkillObjDeletionHandler.php.

Referenced by __construct().


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