ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager Class Reference
+ Collaboration diagram for ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager:

Public Member Functions

 __construct (InternalDomainService $domain, int $ref_id)
 
 sendUploadNotification (int $ass_id)
 
 sendFeedbackNotification (int $ass_id, array $user_ids, string $feedback_file="", bool $is_text_feedback=false)
 
 sendMessageFromPeerfeedbackGiverNotification (int $ass_id, int $rcp_id, string $text)
 
 sendMessageFromPeerfeedbackRecipientNotification (int $ass_id, int $peer_id, int $notification_rcp_id, string $text)
 
 sendDeadlineRequestNotification (int $ass_id)
 
 sendDeadlineSetNotification (int $ass_id, int $part_id)
 

Protected Attributes

int $ref_id
 
ILIAS Exercise Object ObjectManager $object
 

Detailed Description

Definition at line 25 of file NotificationManager.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager::__construct ( InternalDomainService  $domain,
int  $ref_id 
)

Member Function Documentation

◆ sendDeadlineRequestNotification()

ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager::sendDeadlineRequestNotification ( int  $ass_id)

Definition at line 102 of file NotificationManager.php.

References ilNotification\getNotificationsForObject(), ILIAS\Repository\object(), ilExerciseMailNotification\TYPE_DEADLINE_REQUESTED, and ilNotification\TYPE_EXERCISE_SUBMISSION.

102  : void
103  {
106  $this->object->getId()
107  );
108 
109  $not = new \ilExerciseMailNotification();
111  $not->setAssignmentId($ass_id);
112  $not->setRefId($this->ref_id);
113  $not->setRecipients($users);
114  $not->send();
115  }
static getNotificationsForObject(int $type, int $id, ?int $page_id=null, bool $ignore_threshold=false)
Get all users/recipients for given object.
+ Here is the call graph for this function:

◆ sendDeadlineSetNotification()

ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager::sendDeadlineSetNotification ( int  $ass_id,
int  $part_id 
)

Definition at line 117 of file NotificationManager.php.

References ilExerciseMailNotification\TYPE_IDL_DEADLINE_SET.

117  : void
118  {
119  $not = new \ilExerciseMailNotification();
121  $not->setAssignmentId($ass_id);
122  $not->setRefId($this->ref_id);
123  $not->setRecipients([$part_id]);
124  $not->send();
125  }

◆ sendFeedbackNotification()

ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager::sendFeedbackNotification ( int  $ass_id,
array  $user_ids,
string  $feedback_file = "",
bool  $is_text_feedback = false 
)

Definition at line 54 of file NotificationManager.php.

References ilExerciseMailNotification\TYPE_FEEDBACK_FILE_ADDED, and ilExerciseMailNotification\TYPE_FEEDBACK_TEXT_ADDED.

59  : void {
60  $type = $is_text_feedback
63 
64  $not = new \ilExerciseMailNotification();
65  $not->setType($type);
66  $not->setAssignmentId($ass_id);
67  $not->setRefId($this->ref_id);
68  $not->setRecipients($user_ids);
69  $not->send();
70  }

◆ sendMessageFromPeerfeedbackGiverNotification()

ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager::sendMessageFromPeerfeedbackGiverNotification ( int  $ass_id,
int  $rcp_id,
string  $text 
)

Definition at line 72 of file NotificationManager.php.

References ilExerciseMailNotification\TYPE_MESSAGE_FROM_PF_GIVER.

76  : void {
77  $not = new \ilExerciseMailNotification();
79  $not->setAssignmentId($ass_id);
80  $not->setRefId($this->ref_id);
81  $not->setRecipients([$rcp_id]);
82  $not->setAdditionalText($text);
83  $not->send();
84  }

◆ sendMessageFromPeerfeedbackRecipientNotification()

ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager::sendMessageFromPeerfeedbackRecipientNotification ( int  $ass_id,
int  $peer_id,
int  $notification_rcp_id,
string  $text 
)

Definition at line 86 of file NotificationManager.php.

References ilExerciseMailNotification\TYPE_MESSAGE_FROM_PF_RECIPIENT.

91  : void {
92  $not = new \ilExerciseMailNotification();
94  $not->setAssignmentId($ass_id);
95  $not->setRefId($this->ref_id);
96  $not->setPeerId($peer_id);
97  $not->setRecipients([$notification_rcp_id]);
98  $not->setAdditionalText($text);
99  $not->send();
100  }

◆ sendUploadNotification()

ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager::sendUploadNotification ( int  $ass_id)

Definition at line 39 of file NotificationManager.php.

References ilNotification\getNotificationsForObject(), ILIAS\Repository\object(), ilNotification\TYPE_EXERCISE_SUBMISSION, and ilExerciseMailNotification\TYPE_SUBMISSION_UPLOAD.

39  : void
40  {
43  $this->object->getId()
44  );
45 
46  $not = new \ilExerciseMailNotification();
48  $not->setAssignmentId($ass_id);
49  $not->setRefId($this->ref_id);
50  $not->setRecipients($users);
51  $not->send();
52  }
static getNotificationsForObject(int $type, int $id, ?int $page_id=null, bool $ignore_threshold=false)
Get all users/recipients for given object.
+ Here is the call graph for this function:

Field Documentation

◆ $object

ILIAS Exercise Object ObjectManager ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager::$object
protected

Definition at line 28 of file NotificationManager.php.

◆ $ref_id

int ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager::$ref_id
protected

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