ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables 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 $examiner_id, int $notification_ts, ?int $changer_id, ?DateTime $change_time)
 
 record ()
 
 internalNote ()
 
 examinerId ()
 
 changerId ()
 
 changeTime ()
 
 notify ()
 
 maybeSendNotification (ilIndividualAssessmentNotificator $notificator)
 
 id ()
 
 assessmentId ()
 
 assessment ()
 
 finalized ()
 
 mayBeFinalized ()
 
 withExaminerId (int $examiner_id)
 
 withChangerId (int $changer_id)
 
 withChangeTime (DateTime $change_time=null)
 
 lastname ()
 
 firstname ()
 
 login ()
 
 name ()
 
 LPStatus ()
 
 notificationTS ()
 
 place ()
 
 eventTime ()
 
 fileName ()
 
 viewFile ()
 
 getGrading ()
 
 withGrading ($grading)
 

Protected Member Functions

 LPStatusValid ($lp_status)
 

Protected Attributes

 $iass
 
 $usr
 
 $grading
 
 $examiner_id
 
 $notification_ts
 
 $changer_id
 
 $change_time
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ assessment()

ilIndividualAssessmentMember::assessment ( )

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

References $iass.

Referenced by ilIndividualAssessmentPrimitiveInternalNotificator\withReciever().

122  {
123  return $this->iass;
124  }
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 116 of file class.ilIndividualAssessmentMember.php.

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

116  : int
117  {
118  return (int) $this->iass->getId();
119  }
+ Here is the caller graph for this function:

◆ changerId()

ilIndividualAssessmentMember::changerId ( )

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

References $changer_id.

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

+ Here is the caller graph for this function:

◆ changeTime()

ilIndividualAssessmentMember::changeTime ( )

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

References $change_time.

Referenced by ilIndividualAssessmentMembersTableGUI\importantInfos().

85  : ?DateTime
86  {
87  return $this->change_time;
88  }
+ Here is the caller graph for this function:

◆ eventTime()

ilIndividualAssessmentMember::eventTime ( )

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

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

211  {
212  return $this->grading->getEventTime();
213  }
+ Here is the caller graph for this function:

◆ examinerId()

◆ fileName()

ilIndividualAssessmentMember::fileName ( )

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

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

215  : ?string
216  {
217  return $this->grading->getFile();
218  }
+ Here is the caller graph for this function:

◆ finalized()

◆ firstname()

ilIndividualAssessmentMember::firstname ( )

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

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

180  : string
181  {
182  return $this->usr->getFirstname();
183  }
+ Here is the caller graph for this function:

◆ getGrading()

◆ id()

ilIndividualAssessmentMember::id ( )

◆ internalNote()

ilIndividualAssessmentMember::internalNote ( )

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

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

70  : string
71  {
72  return $this->grading->getInternalNote();
73  }
+ Here is the caller graph for this function:

◆ lastname()

ilIndividualAssessmentMember::lastname ( )

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

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

175  : string
176  {
177  return $this->usr->getLastname();
178  }
+ Here is the caller graph for this function:

◆ login()

ilIndividualAssessmentMember::login ( )

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

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

185  : string
186  {
187  return $this->usr->getLogin();
188  }
+ Here is the caller graph for this function:

◆ LPStatus()

ilIndividualAssessmentMember::LPStatus ( )

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

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

195  : int
196  {
197  return $this->grading->getLearningProgress();
198  }
+ Here is the caller graph for this function:

◆ LPStatusValid()

◆ mayBeFinalized()

ilIndividualAssessmentMember::mayBeFinalized ( )

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

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

131  : bool
132  {
133  if ($this->iass->getSettings()->isFileRequired() && (string) $this->fileName() === '') {
134  return false;
135  }
136  return in_array(
137  $this->LPStatus(),
138  [
141  ]
142  ) &&
143  !$this->finalized();
144  }
+ Here is the call graph for this function:

◆ maybeSendNotification()

ilIndividualAssessmentMember::maybeSendNotification ( ilIndividualAssessmentNotificator  $notificator)

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

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

98  if (!$this->finalized()) {
99  throw new ilIndividualAssessmentException('must finalize before notification');
100  }
101  if ($this->notify()) {
102  $notificator = (string) $this->LPStatus() === (string) ilIndividualAssessmentMembers::LP_COMPLETED ?
103  $notificator->withOccasionCompleted() :
104  $notificator->withOccasionFailed();
105  $notificator->withReciever($this)->send();
106  $this->notification_ts = time();
107  }
108  return $this;
109  }
withReciever(ilIndividualAssessmentMember $member)
Define the member, that should recieve the message.
withOccasionFailed()
Set message mode to failed.
withOccasionCompleted()
Set message mode to completed.
Edit the record of a user, set LP.
+ Here is the call graph for this function:

◆ name()

ilIndividualAssessmentMember::name ( )

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

190  : string
191  {
192  return $this->usr->getFullname();
193  }

◆ notificationTS()

ilIndividualAssessmentMember::notificationTS ( )

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

References $notification_ts.

Referenced by ilIndividualAssessmentMembersStorageDB\updateMember().

200  : int
201  {
202  return $this->notification_ts;
203  }
+ Here is the caller graph for this function:

◆ notify()

ilIndividualAssessmentMember::notify ( )

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

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

90  : bool
91  {
92  return $this->grading->isNotify();
93  }
+ Here is the caller graph for this function:

◆ place()

ilIndividualAssessmentMember::place ( )

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

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

205  : string
206  {
207  return $this->grading->getPlace();
208  }
+ Here is the caller graph for this function:

◆ record()

ilIndividualAssessmentMember::record ( )

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

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

65  : string
66  {
67  return $this->grading->getRecord();
68  }
+ Here is the caller graph for this function:

◆ viewFile()

ilIndividualAssessmentMember::viewFile ( )

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

Referenced by ilIndividualAssessmentMembersStorageDB\updateMember().

220  : bool
221  {
222  return $this->grading->isFileVisible();
223  }
+ Here is the caller graph for this function:

◆ withChangerId()

ilIndividualAssessmentMember::withChangerId ( int  $changer_id)

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

References $changer_id.

154  {
155  $clone = clone $this;
156  $clone->changer_id = $changer_id;
157  return $clone;
158  }
Edit the record of a user, set LP.

◆ withChangeTime()

ilIndividualAssessmentMember::withChangeTime ( DateTime  $change_time = null)

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

References $change_time.

161  {
162  $clone = clone $this;
163  $clone->change_time = $change_time;
164  return $clone;
165  }
Edit the record of a user, set LP.

◆ withExaminerId()

ilIndividualAssessmentMember::withExaminerId ( int  $examiner_id)

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

References $examiner_id.

147  {
148  $clone = clone $this;
149  $clone->examiner_id = $examiner_id;
150  return $clone;
151  }
Edit the record of a user, set LP.

◆ withGrading()

ilIndividualAssessmentMember::withGrading (   $grading)

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

References $grading.

231  {
232  $clone = clone $this;
233  $clone->grading = $grading;
234  return $clone;
235  }
Edit the record of a user, set LP.

Field Documentation

◆ $change_time

ilIndividualAssessmentMember::$change_time
protected

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

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

◆ $changer_id

ilIndividualAssessmentMember::$changer_id
protected

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

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

◆ $examiner_id

ilIndividualAssessmentMember::$examiner_id
protected

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

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

◆ $grading

ilIndividualAssessmentMember::$grading
protected

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

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

◆ $iass

ilIndividualAssessmentMember::$iass
protected

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

Referenced by __construct(), and assessment().

◆ $notification_ts

ilIndividualAssessmentMember::$notification_ts
protected

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

Referenced by __construct(), and notificationTS().

◆ $usr

ilIndividualAssessmentMember::$usr
protected

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

Referenced by __construct().


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