ILIAS  trunk Revision v11.0_alpha-1871-gde1fee8db3d
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilIndividualAssessmentMember Class Reference

Edit the record of a user, set LP. More...

+ Collaboration diagram for ilIndividualAssessmentMember:

Public Member Functions

 __construct (ilObjIndividualAssessment $iass, ilObjUser $usr, ilIndividualAssessmentUserGrading $grading, int $notification_ts, ?int $examiner_id=null, ?int $changer_id=null, ?DateTimeImmutable $change_time=null)
 
 maybeSendNotification (ilIndividualAssessmentNotificator $notificator)
 
 mayBeFinalized ()
 
 notificationTS ()
 
 examinerId ()
 
 withExaminerId (int $examiner_id)
 
 changerId ()
 
 withChangerId (int $changer_id)
 
 changeTime ()
 
 withChangeTime (?DateTimeImmutable $change_time=null)
 
 getGrading ()
 
 withGrading ($grading)
 
 record ()
 
 internalNote ()
 
 fileName ()
 
 viewFile ()
 
 LPStatus ()
 
 place ()
 
 eventTime ()
 
 notify ()
 
 finalized ()
 
 assessment ()
 
 assessmentId ()
 
 id ()
 
 lastname ()
 
 firstname ()
 
 login ()
 
 name ()
 

Protected Attributes

ilObjIndividualAssessment $iass
 
ilObjUser $usr
 
ilIndividualAssessmentUserGrading $grading
 
int $notification_ts
 
int $examiner_id
 
int $changer_id
 
DateTimeImmutable $change_time
 

Detailed Description

Edit the record of a user, set LP.

Definition at line 24 of file class.ilIndividualAssessmentMember.php.

Constructor & Destructor Documentation

◆ __construct()

ilIndividualAssessmentMember::__construct ( ilObjIndividualAssessment  $iass,
ilObjUser  $usr,
ilIndividualAssessmentUserGrading  $grading,
int  $notification_ts,
?int  $examiner_id = null,
?int  $changer_id = null,
?DateTimeImmutable  $change_time = null 
)

Definition at line 34 of file class.ilIndividualAssessmentMember.php.

References $change_time, $changer_id, $examiner_id, $grading, $iass, $notification_ts, and $usr.

42  {
43  $this->iass = $iass;
44  $this->usr = $usr;
45  $this->grading = $grading;
46  $this->notification_ts = $notification_ts;
47  $this->examiner_id = $examiner_id;
48  $this->changer_id = $changer_id;
49  $this->change_time = $change_time;
50  }
ilIndividualAssessmentUserGrading $grading

Member Function Documentation

◆ assessment()

ilIndividualAssessmentMember::assessment ( )

Definition at line 181 of file class.ilIndividualAssessmentMember.php.

References $iass.

Referenced by ilIndividualAssessmentPrimitiveInternalNotificator\withReceiver().

182  {
183  return $this->iass;
184  }
For the purpose of streamlining the grading and learning-process status definition outside of tests...
+ Here is the caller graph for this function:

◆ assessmentId()

ilIndividualAssessmentMember::assessmentId ( )

Definition at line 186 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentLPInterface\updateLPStatusOfMember(), and ilIndividualAssessmentMembersStorageDB\updateMember().

186  : int
187  {
188  return $this->iass->getId();
189  }
+ Here is the caller graph for this function:

◆ changerId()

ilIndividualAssessmentMember::changerId ( )

Definition at line 100 of file class.ilIndividualAssessmentMember.php.

References $changer_id.

Referenced by ilIndividualAssessmentMembersTableGUI\getImportantInfos(), and ilIndividualAssessmentMembersStorageDB\updateMember().

100  : ?int
101  {
102  return $this->changer_id;
103  }
+ Here is the caller graph for this function:

◆ changeTime()

ilIndividualAssessmentMember::changeTime ( )

Definition at line 112 of file class.ilIndividualAssessmentMember.php.

References $change_time.

Referenced by ilIndividualAssessmentMembersTableGUI\getImportantInfos().

+ Here is the caller graph for this function:

◆ eventTime()

ilIndividualAssessmentMember::eventTime ( )

Definition at line 166 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentMembersTableGUI\getImportantInfos(), and ilIndividualAssessmentMembersStorageDB\updateMember().

167  {
168  return $this->grading->getEventTime();
169  }
+ Here is the caller graph for this function:

◆ examinerId()

◆ fileName()

ilIndividualAssessmentMember::fileName ( )

Definition at line 146 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentMembersTableGUI\getAction(), ilIndividualAssessmentMembersTableGUI\getContent(), mayBeFinalized(), and ilIndividualAssessmentMembersStorageDB\updateMember().

146  : ?string
147  {
148  return $this->grading->getFile();
149  }
+ Here is the caller graph for this function:

◆ finalized()

◆ firstname()

ilIndividualAssessmentMember::firstname ( )

Definition at line 201 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

201  : string
202  {
203  return $this->usr->getFirstname();
204  }
+ Here is the caller graph for this function:

◆ getGrading()

ilIndividualAssessmentMember::getGrading ( )

◆ id()

◆ internalNote()

ilIndividualAssessmentMember::internalNote ( )

Definition at line 141 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentMembersTableGUI\getContent(), and ilIndividualAssessmentMembersStorageDB\updateMember().

141  : string
142  {
143  return $this->grading->getInternalNote();
144  }
+ Here is the caller graph for this function:

◆ lastname()

ilIndividualAssessmentMember::lastname ( )

Definition at line 196 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

196  : string
197  {
198  return $this->usr->getLastname();
199  }
+ Here is the caller graph for this function:

◆ login()

ilIndividualAssessmentMember::login ( )

Definition at line 206 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

206  : string
207  {
208  return $this->usr->getLogin();
209  }
+ Here is the caller graph for this function:

◆ LPStatus()

ilIndividualAssessmentMember::LPStatus ( )

Definition at line 156 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentMembersTableGUI\getFurtherFields(), ilIndividualAssessmentMembersTableGUI\getSubheadline(), mayBeFinalized(), maybeSendNotification(), and ilIndividualAssessmentMembersStorageDB\updateMember().

156  : int
157  {
158  return $this->grading->getLearningProgress();
159  }
+ Here is the caller graph for this function:

◆ mayBeFinalized()

ilIndividualAssessmentMember::mayBeFinalized ( )

Definition at line 68 of file class.ilIndividualAssessmentMember.php.

References fileName(), finalized(), ilIndividualAssessmentMembers\LP_COMPLETED, ilIndividualAssessmentMembers\LP_FAILED, and LPStatus().

68  : bool
69  {
70  if ($this->iass->getSettings()->isFileRequired() && (string) $this->fileName() === '') {
71  return false;
72  }
73  return in_array(
74  $this->LPStatus(),
75  [
78  ]
79  ) &&
80  !$this->finalized();
81  }
+ Here is the call graph for this function:

◆ maybeSendNotification()

ilIndividualAssessmentMember::maybeSendNotification ( ilIndividualAssessmentNotificator  $notificator)

Definition at line 52 of file class.ilIndividualAssessmentMember.php.

References finalized(), ilIndividualAssessmentMembers\LP_COMPLETED, LPStatus(), notify(), ilIndividualAssessmentNotificator\withOccasionCompleted(), ilIndividualAssessmentNotificator\withOccasionFailed(), and ilIndividualAssessmentNotificator\withReceiver().

55  if (!$this->finalized()) {
56  throw new ilIndividualAssessmentException('must finalize before notification');
57  }
58  if ($this->notify()) {
59  $notificator = (string) $this->LPStatus() === (string) ilIndividualAssessmentMembers::LP_COMPLETED ?
60  $notificator->withOccasionCompleted() :
61  $notificator->withOccasionFailed();
62  $notificator->withReceiver($this)->send();
63  $this->notification_ts = time();
64  }
65  return $this;
66  }
withOccasionFailed()
Set message mode to failed.
withOccasionCompleted()
Set message mode to complete.
Edit the record of a user, set LP.
withReceiver(ilIndividualAssessmentMember $member)
Define the member, that should receive the message.
+ Here is the call graph for this function:

◆ name()

ilIndividualAssessmentMember::name ( )

Definition at line 211 of file class.ilIndividualAssessmentMember.php.

211  : string
212  {
213  return $this->usr->getFullname();
214  }

◆ notificationTS()

ilIndividualAssessmentMember::notificationTS ( )

Definition at line 83 of file class.ilIndividualAssessmentMember.php.

References $notification_ts.

Referenced by ilIndividualAssessmentMembersStorageDB\updateMember().

83  : int
84  {
86  }
+ Here is the caller graph for this function:

◆ notify()

ilIndividualAssessmentMember::notify ( )

Definition at line 171 of file class.ilIndividualAssessmentMember.php.

Referenced by maybeSendNotification(), and ilIndividualAssessmentMembersStorageDB\updateMember().

171  : bool
172  {
173  return $this->grading->isNotify();
174  }
+ Here is the caller graph for this function:

◆ place()

ilIndividualAssessmentMember::place ( )

Definition at line 161 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentMembersTableGUI\getFurtherFields(), and ilIndividualAssessmentMembersStorageDB\updateMember().

161  : string
162  {
163  return $this->grading->getPlace();
164  }
+ Here is the caller graph for this function:

◆ record()

ilIndividualAssessmentMember::record ( )

Definition at line 136 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentMembersTableGUI\getContent(), and ilIndividualAssessmentMembersStorageDB\updateMember().

136  : string
137  {
138  return $this->grading->getRecord();
139  }
+ Here is the caller graph for this function:

◆ viewFile()

ilIndividualAssessmentMember::viewFile ( )

Definition at line 151 of file class.ilIndividualAssessmentMember.php.

Referenced by ilIndividualAssessmentMembersStorageDB\updateMember().

151  : bool
152  {
153  return $this->grading->isFileVisible();
154  }
+ Here is the caller graph for this function:

◆ withChangerId()

ilIndividualAssessmentMember::withChangerId ( int  $changer_id)

Definition at line 105 of file class.ilIndividualAssessmentMember.php.

References $changer_id.

106  {
107  $clone = clone $this;
108  $clone->changer_id = $changer_id;
109  return $clone;
110  }
Edit the record of a user, set LP.

◆ withChangeTime()

ilIndividualAssessmentMember::withChangeTime ( ?DateTimeImmutable  $change_time = null)

Definition at line 117 of file class.ilIndividualAssessmentMember.php.

References $change_time.

118  {
119  $clone = clone $this;
120  $clone->change_time = $change_time;
121  return $clone;
122  }
Edit the record of a user, set LP.

◆ withExaminerId()

ilIndividualAssessmentMember::withExaminerId ( int  $examiner_id)

Definition at line 93 of file class.ilIndividualAssessmentMember.php.

References $examiner_id.

94  {
95  $clone = clone $this;
96  $clone->examiner_id = $examiner_id;
97  return $clone;
98  }
Edit the record of a user, set LP.

◆ withGrading()

ilIndividualAssessmentMember::withGrading (   $grading)

Definition at line 129 of file class.ilIndividualAssessmentMember.php.

References $grading.

130  {
131  $clone = clone $this;
132  $clone->grading = $grading;
133  return $clone;
134  }
ilIndividualAssessmentUserGrading $grading
Edit the record of a user, set LP.

Field Documentation

◆ $change_time

DateTimeImmutable ilIndividualAssessmentMember::$change_time
protected

Definition at line 32 of file class.ilIndividualAssessmentMember.php.

Referenced by __construct(), changeTime(), and withChangeTime().

◆ $changer_id

int ilIndividualAssessmentMember::$changer_id
protected

Definition at line 31 of file class.ilIndividualAssessmentMember.php.

Referenced by __construct(), changerId(), and withChangerId().

◆ $examiner_id

int ilIndividualAssessmentMember::$examiner_id
protected

Definition at line 30 of file class.ilIndividualAssessmentMember.php.

Referenced by __construct(), examinerId(), and withExaminerId().

◆ $grading

ilIndividualAssessmentUserGrading ilIndividualAssessmentMember::$grading
protected

Definition at line 28 of file class.ilIndividualAssessmentMember.php.

Referenced by __construct(), getGrading(), and withGrading().

◆ $iass

ilObjIndividualAssessment ilIndividualAssessmentMember::$iass
protected

Definition at line 26 of file class.ilIndividualAssessmentMember.php.

Referenced by __construct(), and assessment().

◆ $notification_ts

int ilIndividualAssessmentMember::$notification_ts
protected

Definition at line 29 of file class.ilIndividualAssessmentMember.php.

Referenced by __construct(), and notificationTS().

◆ $usr

ilObjUser ilIndividualAssessmentMember::$usr
protected

Definition at line 27 of file class.ilIndividualAssessmentMember.php.

Referenced by __construct().


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