Handles deletion of (user) objects.
More...
◆ __construct()
ilSkillObjDeletionHandler::__construct |
( |
int |
$obj_id, |
|
|
string |
$obj_type |
|
) |
| |
Definition at line 41 of file class.ilSkillObjDeletionHandler.php.
42 {
44
47 $this->profile_manager =
$DIC->skills()->internal()->manager()->getProfileManager();
48 $this->profile_completion_manager =
$DIC->skills()->internal()->manager()->getProfileCompletionManager();
49 $this->personal_manager =
$DIC->skills()->internal()->manager()->getPersonalSkillManager();
50 $this->assigned_material_manager =
$DIC->skills()->internal()->manager()->getAssignedMaterialManager();
51 $this->usage_manager =
$DIC->skills()->internal()->manager()->getUsageManager();
52 }
References $DIC, $obj_id, and $obj_type.
◆ processDeletion()
ilSkillObjDeletionHandler::processDeletion |
( |
| ) |
|
Definition at line 54 of file class.ilSkillObjDeletionHandler.php.
54 : void
55 {
57 $this->personal_manager->removePersonalSkillsForUser($this->obj_id);
58 $this->assigned_material_manager->removeAssignedMaterialsForUser($this->obj_id);
59 $this->profile_manager->removeUserFromAllProfiles($this->obj_id);
60 $this->profile_completion_manager->deleteEntriesForUser($this->obj_id);
62 return;
64 $this->profile_manager->removeRoleFromAllProfiles($this->obj_id);
65 return;
69 $this->profile_manager->deleteProfilesFromObject(
$ref_id);
70 }
71 }
75 $this->profile_manager->deleteProfilesFromObject(
$ref_id);
76 }
77 }
78 }
79 $this->usage_manager->removeUsagesFromObject($this->obj_id);
80 }
static removeAllUserData(int $a_user_id)
static _lookupType(int $id, bool $reference=false)
static _getAllReferences(int $id)
get all reference ids for object ID
References $ref_id, ilObject\_getAllReferences(), ilObject\_lookupType(), and ilBasicSkill\removeAllUserData().
◆ $assigned_material_manager
◆ $obj_id
int ilSkillObjDeletionHandler::$obj_id = 0 |
|
protected |
◆ $obj_type
string ilSkillObjDeletionHandler::$obj_type = "" |
|
protected |
◆ $personal_manager
◆ $profile_completion_manager
◆ $profile_manager
◆ $usage_manager
The documentation for this class was generated from the following file: