ILIAS  release_7 Revision v7.30-3-g800a261c036
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.

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 if ($this->obj_type == "crs" && ilObject::_lookupType($this->obj_id) == "crs") {
47 foreach (ilContainerReference::_getAllReferences($this->obj_id) as $ref_id) {
48 if ((int) $ref_id != 0) {
50 }
51 }
52 }
53 if ($this->obj_type == "grp" && ilObject::_lookupType($this->obj_id) == "grp") {
54 foreach (ilContainerReference::_getAllReferences($this->obj_id) as $ref_id) {
55 if ((int) $ref_id != 0) {
57 }
58 }
59 }
61 }
static removeAllUserData(int $a_user_id)
static _getAllReferences($a_id)
get all reference ids of object
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.
static removeRoleFromAllProfiles(int $a_role_id)
Remove role from all profiles.
static removeUserFromAllProfiles($a_user_id)
Remove user from all profiles.
static deleteProfilesFromObject(int $a_ref_id)
static removeUsagesFromObject($a_obj_id)

References ilObject\_getAllReferences(), ilObject\_lookupType(), ilSkillProfile\deleteProfilesFromObject(), ilBasicSkill\removeAllUserData(), ilPersonalSkill\removeMaterials(), ilSkillProfile\removeRoleFromAllProfiles(), ilPersonalSkill\removeSkills(), ilSkillUsage\removeUsagesFromObject(), and ilSkillProfile\removeUserFromAllProfiles().

+ 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: