ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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

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

Member Function Documentation

◆ assessment()

ilIndividualAssessmentMember::assessment ( )

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

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

◆ assessmentId()

ilIndividualAssessmentMember::assessmentId ( )

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

186 : int
187 {
188 return $this->iass->getId();
189 }

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

+ Here is the caller graph for this function:

◆ changerId()

ilIndividualAssessmentMember::changerId ( )

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

100 : ?int
101 {
102 return $this->changer_id;
103 }

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

+ Here is the caller graph for this function:

◆ changeTime()

ilIndividualAssessmentMember::changeTime ( )

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

112 : ?DateTimeImmutable
113 {
114 return $this->change_time;
115 }

Referenced by ilIndividualAssessmentMembersTableGUI\getImportantInfos().

+ Here is the caller graph for this function:

◆ eventTime()

ilIndividualAssessmentMember::eventTime ( )

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

166 : ?DateTimeImmutable
167 {
168 return $this->grading->getEventTime();
169 }

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

+ Here is the caller graph for this function:

◆ examinerId()

◆ fileName()

ilIndividualAssessmentMember::fileName ( )

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

146 : ?string
147 {
148 return $this->grading->getFile();
149 }

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

+ Here is the caller graph for this function:

◆ finalized()

◆ firstname()

ilIndividualAssessmentMember::firstname ( )

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

201 : string
202 {
203 return $this->usr->getFirstname();
204 }

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

+ Here is the caller graph for this function:

◆ getGrading()

ilIndividualAssessmentMember::getGrading ( )

◆ id()

◆ internalNote()

ilIndividualAssessmentMember::internalNote ( )

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

141 : string
142 {
143 return $this->grading->getInternalNote();
144 }

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

+ Here is the caller graph for this function:

◆ lastname()

ilIndividualAssessmentMember::lastname ( )

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

196 : string
197 {
198 return $this->usr->getLastname();
199 }

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

+ Here is the caller graph for this function:

◆ login()

ilIndividualAssessmentMember::login ( )

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

206 : string
207 {
208 return $this->usr->getLogin();
209 }

Referenced by ilIndividualAssessmentMembersTableGUI\getHeadline().

+ Here is the caller graph for this function:

◆ LPStatus()

ilIndividualAssessmentMember::LPStatus ( )

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

156 : int
157 {
158 return $this->grading->getLearningProgress();
159 }

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

+ Here is the caller graph for this function:

◆ mayBeFinalized()

ilIndividualAssessmentMember::mayBeFinalized ( )

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

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 }

References ilIndividualAssessmentMembers\LP_COMPLETED, and ilIndividualAssessmentMembers\LP_FAILED.

◆ maybeSendNotification()

ilIndividualAssessmentMember::maybeSendNotification ( ilIndividualAssessmentNotificator  $notificator)

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

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

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

83 : int
84 {
86 }

Referenced by ilIndividualAssessmentMembersStorageDB\updateMember().

+ Here is the caller graph for this function:

◆ notify()

ilIndividualAssessmentMember::notify ( )

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

171 : bool
172 {
173 return $this->grading->isNotify();
174 }

Referenced by ilIndividualAssessmentMembersStorageDB\updateMember().

+ Here is the caller graph for this function:

◆ place()

ilIndividualAssessmentMember::place ( )

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

161 : string
162 {
163 return $this->grading->getPlace();
164 }

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

+ Here is the caller graph for this function:

◆ record()

ilIndividualAssessmentMember::record ( )

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

136 : string
137 {
138 return $this->grading->getRecord();
139 }

Referenced by ILIAS\UI\Implementation\Component\Table\DataRow\getCellContent(), ilIndividualAssessmentMembersTableGUI\getContent(), and ilIndividualAssessmentMembersStorageDB\updateMember().

+ Here is the caller graph for this function:

◆ viewFile()

ilIndividualAssessmentMember::viewFile ( )

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

151 : bool
152 {
153 return $this->grading->isFileVisible();
154 }

Referenced by ilIndividualAssessmentMembersStorageDB\updateMember().

+ Here is the caller graph for this function:

◆ withChangerId()

ilIndividualAssessmentMember::withChangerId ( int  $changer_id)

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

106 {
107 $clone = clone $this;
108 $clone->changer_id = $changer_id;
109 return $clone;
110 }

◆ withChangeTime()

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

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

118 {
119 $clone = clone $this;
120 $clone->change_time = $change_time;
121 return $clone;
122 }

◆ withExaminerId()

ilIndividualAssessmentMember::withExaminerId ( int  $examiner_id)

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

94 {
95 $clone = clone $this;
96 $clone->examiner_id = $examiner_id;
97 return $clone;
98 }

◆ withGrading()

ilIndividualAssessmentMember::withGrading (   $grading)

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

130 {
131 $clone = clone $this;
132 $clone->grading = $grading;
133 return $clone;
134 }

Field Documentation

◆ $change_time

DateTimeImmutable ilIndividualAssessmentMember::$change_time
protected

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

Referenced by __construct().

◆ $changer_id

int ilIndividualAssessmentMember::$changer_id
protected

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

Referenced by __construct().

◆ $examiner_id

int ilIndividualAssessmentMember::$examiner_id
protected

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

Referenced by __construct().

◆ $grading

ilIndividualAssessmentUserGrading ilIndividualAssessmentMember::$grading
protected

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

Referenced by __construct().

◆ $iass

ilObjIndividualAssessment ilIndividualAssessmentMember::$iass
protected

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

Referenced by __construct().

◆ $notification_ts

int ilIndividualAssessmentMember::$notification_ts
protected

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

Referenced by __construct().

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