ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Exercise\User\UserEvent Class Reference
+ Collaboration diagram for ILIAS\Exercise\User\UserEvent:

Public Member Functions

 __construct (protected \ILIAS\Exercise\InternalRepoService $repo, protected \ILIAS\Exercise\InternalDomainService $domain)
 
 handleDeletion (int $user_id)
 

Detailed Description

Definition at line 23 of file UserEvent.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Exercise\User\UserEvent::__construct ( protected \ILIAS\Exercise\InternalRepoService  $repo,
protected \ILIAS\Exercise\InternalDomainService  $domain 
)

Definition at line 25 of file UserEvent.php.

28 {
29 }

Member Function Documentation

◆ handleDeletion()

ILIAS\Exercise\User\UserEvent::handleDeletion ( int  $user_id)

Definition at line 31 of file UserEvent.php.

31 : void
32 {
33 global $DIC;
34
35 // get all exercises the user has submitted to
36 // todo move to repo layer
37 $db = $DIC->database();
38 $set = $db->queryF(
39 "SELECT DISTINCT obj_id FROM exc_returned " .
40 " WHERE user_id = %s ",
41 ["integer"],
42 [$user_id]
43 );
44 // remove all user submissions from these exercises
45 while ($rec = $db->fetchAssoc($set)) {
46 $exc_id = (int) $rec['obj_id'];
48 }
49 }
static deleteUser(int $a_exc_id, int $a_user_id)
Deletes already delivered files.
global $DIC
Definition: shib_login.php:26

References ILIAS\$db, $DIC, $user_id, ilExSubmission\deleteUser(), and ILIAS\Repository\int().

+ Here is the call graph for this function:

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