ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilExcTutorRepository Class Reference

Tutor repository class. More...

+ Collaboration diagram for ilExcTutorRepository:

Public Member Functions

 __construct ()
 Constructor. More...
 
 getExerciseIdsBeingTutor (int $user_id)
 Get exercise IDs of exercises a user is currently tutor (being notified) More...
 

Detailed Description

Tutor repository class.

There is no explicit tutor concept in exercises yet. On the one hand, every user with "write" permission can manage an exercise. Since this includes all system administrators this is not a well defined group of users.

This class defines tutors currently as the ones who get notifications about new submissions, which is a smaller, but well defined group.

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

Definition at line 18 of file class.ilExcTutorRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ilExcTutorRepository::__construct ( )

Constructor.

Definition at line 23 of file class.ilExcTutorRepository.php.

24  {
25  }

Member Function Documentation

◆ getExerciseIdsBeingTutor()

ilExcTutorRepository::getExerciseIdsBeingTutor ( int  $user_id)

Get exercise IDs of exercises a user is currently tutor (being notified)

Parameters
int$user_id
Returns
int[]

Definition at line 33 of file class.ilExcTutorRepository.php.

References ilNotification\getActivatedNotifications(), and ilNotification\TYPE_EXERCISE_SUBMISSION.

33  : array
34  {
36  }
static getActivatedNotifications(int $type, int $user_id)
Get activated notifications of give type for user.
+ Here is the call graph for this function:

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