2require_once
'Modules/IndividualAssessment/classes/class.ilObjIndividualAssessment.php';
3require_once
'Services/User/classes/class.ilObjUser.php';
4require_once
'Modules/IndividualAssessment/exceptions/class.ilIndividualAssessmentException.php';
5require_once
'Modules/IndividualAssessment/classes/Members/class.ilIndividualAssessmentMembers.php';
120 $this->notification_ts = time();
132 return $this->usr->getId();
142 return $this->iass->getId();
162 return (
string) $this->
finalized ===
"1" ? true :
false;
172 if ($this->iass->getSettings()->fileRequired() && (
string) $this->file_name ===
'') {
188 assert(
'is_string($record) || $record === null');
189 $clone = clone $this;
202 assert(
'is_string($internal_note) || $internal_note === null');
203 $clone = clone $this;
216 assert(
'is_string($place) || is_null($place)');
217 $clone = clone $this;
230 assert(
'$event_time instanceof ilDateTime || is_null($event_time)');
231 $clone = clone $this;
244 assert(
'is_numeric($examiner_id)');
245 assert(
'ilObjUser::_exists($examiner_id)');
246 $clone = clone $this;
259 assert(
'is_numeric($changer_id)');
260 assert(
'ilObjUser::_exists($changer_id)');
261 $clone = clone $this;
274 assert(
'$change_time instanceof ilDateTime || is_null($change_time)');
275 $clone = clone $this;
288 assert(
'is_bool($notify)');
289 $clone = clone $this;
290 $clone->notify = (bool)
$notify;
311 $clone = clone $this;
325 return $this->usr->getLastname();
335 return $this->usr->getFirstname();
345 return $this->usr->getLogin();
355 return $this->usr->getFullname();
376 $clone = clone $this;
377 $clone->finalized = 1;
419 return $this->file_name;
431 assert(
'is_string($file_name)');
432 $clone = clone $this;
433 $clone->file_name = $file_name;
444 return $this->view_file;
456 assert(
'is_bool($view_file)');
457 $clone = clone $this;
458 $clone->view_file = $view_file;
An exception for terminatinating execution or to throw for unit testing.
@classDescription Date and time handling
Edit the record of a user, set LP.
examinerId()
Get the user id of the examiner.
maybeSendNotification(ilIndividualAssessmentNotificator $notificator)
Notify a user, if he is supposed to be notified, using some notificator object.
viewFile()
Can user see the uploaded file.
lastname()
Get the examinee lastname corresponding to this membership.
withInternalNote($internal_note)
Clone this object and set an internal note.
assessmentId()
Get the ilObjIndividualAssessment id corresponding to this membership.
finalized()
Is this membership allready finalized?
place()
Get place where ia was held.
changeTime()
Get the datetime of change.
__construct(ilObjIndividualAssessment $iass, ilObjUser $usr, array $data)
withExaminerId($examiner_id)
Clone this object and set an examiner_id.
eventTime()
Get date when ia was.
withViewFile($view_file)
Set user can view uploaded file.
LPStatus()
Get the LP-status corresponding to this membership.
id()
Get the user id corresponding to this membership.
fileName()
Get the name of the uploaded file.
changerId()
Get the user id of the changer.
withLPStatus($lp_status)
Clone this object and set LP-status.
withEventTime($event_time)
Clone this object and set an internal note.
notify()
Will the user be notified after finalization?
withRecord($record)
Clone this object and set a record.
withNotify($notify)
Clone this object and set wether the examinee should be notified.
LPStatusValid($lp_status)
login()
Get the examinee login corresponding to this membership.
withChangeTime($change_time)
Clone this object and set an change time.
assessment()
Get the ilObjIndividualAssessment corresponding to this membership.
withFinalized()
Clone this object and finalize.
withChangerId($changer_id)
Clone this object and set an changer_id.
withFileName($file_name)
Set the name of the file.
notificationTS()
Get the timestamp, at which the notification was sent.
name()
Get the examinee name corresponding to this membership.
mayBeFinalized()
Can this membership be finalized?
withPlace($place)
Clone this object and set an internal note.
firstname()
Get the examinee firstname corresponding to this membership.
const FIELD_INTERNAL_NOTE
const FIELD_USER_VIEW_FILE
const FIELD_NOTIFICATION_TS
const FIELD_LEARNING_PROGRESS
For the purpose of streamlining the grading and learning-process status definition outside of tests,...
Basic method collection should be implemented by a notificator used by Individual assessment.
withOccasionFailed()
Set message mode to failed.
withOccasionCompleted()
Set message mode to completed.
withReciever(ilIndividualAssessmentMember $member)
Define the member, that should recieve the message.