ILIAS  release_7 Revision v7.30-3-g800a261c036
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.

122 {
123 return $this->iass;
124 }
For the purpose of streamlining the grading and learning-process status definition outside of tests,...

Referenced by ilIndividualAssessmentPrimitiveInternalNotificator\withReciever().

+ Here is the caller graph for this function:

◆ assessmentId()

ilIndividualAssessmentMember::assessmentId ( )

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

116 : int
117 {
118 return (int) $this->iass->getId();
119 }

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

+ Here is the caller graph for this function:

◆ changerId()

ilIndividualAssessmentMember::changerId ( )

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

80 : ?int
81 {
82 return $this->changer_id;
83 }

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.

85 : ?DateTime
86 {
87 return $this->change_time;
88 }

References $change_time.

Referenced by ilIndividualAssessmentMembersTableGUI\importantInfos().

+ Here is the caller graph for this function:

◆ eventTime()

ilIndividualAssessmentMember::eventTime ( )

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

210 : ?DateTimeImmutable
211 {
212 return $this->grading->getEventTime();
213 }

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

+ Here is the caller graph for this function:

◆ examinerId()

◆ fileName()

ilIndividualAssessmentMember::fileName ( )

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

215 : ?string
216 {
217 return $this->grading->getFile();
218 }

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

+ Here is the caller graph for this function:

◆ finalized()

◆ firstname()

ilIndividualAssessmentMember::firstname ( )

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

180 : string
181 {
182 return $this->usr->getFirstname();
183 }

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

+ Here is the caller graph for this function:

◆ getGrading()

ilIndividualAssessmentMember::getGrading ( )

◆ id()

◆ internalNote()

ilIndividualAssessmentMember::internalNote ( )

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

70 : string
71 {
72 return $this->grading->getInternalNote();
73 }

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

+ Here is the caller graph for this function:

◆ lastname()

ilIndividualAssessmentMember::lastname ( )

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

175 : string
176 {
177 return $this->usr->getLastname();
178 }

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

+ Here is the caller graph for this function:

◆ login()

ilIndividualAssessmentMember::login ( )

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

185 : string
186 {
187 return $this->usr->getLogin();
188 }

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

+ Here is the caller graph for this function:

◆ LPStatus()

ilIndividualAssessmentMember::LPStatus ( )

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

195 : int
196 {
197 return $this->grading->getLearningProgress();
198 }

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

+ Here is the caller graph for this function:

◆ LPStatusValid()

◆ mayBeFinalized()

ilIndividualAssessmentMember::mayBeFinalized ( )

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

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 }

References ilIndividualAssessmentMembers\LP_COMPLETED, and ilIndividualAssessmentMembers\LP_FAILED.

◆ maybeSendNotification()

ilIndividualAssessmentMember::maybeSendNotification ( ilIndividualAssessmentNotificator  $notificator)

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

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 }
Edit the record of a user, set LP.
withOccasionFailed()
Set message mode to failed.
withOccasionCompleted()
Set message mode to completed.
withReciever(ilIndividualAssessmentMember $member)
Define the member, that should recieve the message.

◆ 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.

200 : int
201 {
203 }

Referenced by ilIndividualAssessmentMembersStorageDB\updateMember().

+ Here is the caller graph for this function:

◆ notify()

ilIndividualAssessmentMember::notify ( )

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

90 : bool
91 {
92 return $this->grading->isNotify();
93 }

Referenced by ilIndividualAssessmentMembersStorageDB\updateMember().

+ Here is the caller graph for this function:

◆ place()

ilIndividualAssessmentMember::place ( )

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

205 : string
206 {
207 return $this->grading->getPlace();
208 }

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

+ Here is the caller graph for this function:

◆ record()

ilIndividualAssessmentMember::record ( )

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

65 : string
66 {
67 return $this->grading->getRecord();
68 }

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

+ Here is the caller graph for this function:

◆ viewFile()

ilIndividualAssessmentMember::viewFile ( )

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

220 : bool
221 {
222 return $this->grading->isFileVisible();
223 }

Referenced by ilIndividualAssessmentMembersStorageDB\updateMember().

+ Here is the caller graph for this function:

◆ withChangerId()

ilIndividualAssessmentMember::withChangerId ( int  $changer_id)

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

154 {
155 $clone = clone $this;
156 $clone->changer_id = $changer_id;
157 return $clone;
158 }

◆ withChangeTime()

ilIndividualAssessmentMember::withChangeTime ( DateTime  $change_time = null)

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

161 {
162 $clone = clone $this;
163 $clone->change_time = $change_time;
164 return $clone;
165 }

◆ withExaminerId()

ilIndividualAssessmentMember::withExaminerId ( int  $examiner_id)

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

147 {
148 $clone = clone $this;
149 $clone->examiner_id = $examiner_id;
150 return $clone;
151 }

◆ withGrading()

ilIndividualAssessmentMember::withGrading (   $grading)

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

231 {
232 $clone = clone $this;
233 $clone->grading = $grading;
234 return $clone;
235 }

Field Documentation

◆ $change_time

ilIndividualAssessmentMember::$change_time
protected

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

Referenced by __construct(), and changeTime().

◆ $changer_id

ilIndividualAssessmentMember::$changer_id
protected

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

Referenced by __construct(), and changerId().

◆ $examiner_id

ilIndividualAssessmentMember::$examiner_id
protected

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

Referenced by __construct(), and examinerId().

◆ $grading

ilIndividualAssessmentMember::$grading
protected

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

Referenced by __construct().

◆ $iass

ilIndividualAssessmentMember::$iass
protected

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

Referenced by __construct().

◆ $notification_ts

ilIndividualAssessmentMember::$notification_ts
protected

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

Referenced by __construct().

◆ $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: