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';
83 $this->notification_ts = time();
93 public function id() {
94 return $this->usr->getId();
103 return $this->iass->getId();
121 return (
string)$this->
finalized ===
"1" ? true :
false;
142 assert(
'is_string($record) || $record === null');
144 $clone = clone $this;
158 assert(
'is_string($internal_note) || $internal_note === null');
160 $clone = clone $this;
174 assert(
'is_numeric($examiner_id)');
176 assert(
'ilObjUser::_exists($examiner_id)');
177 $clone = clone $this;
191 assert(
'is_bool($notify)');
193 $clone = clone $this;
194 $clone->notify = (bool)
$notify;
215 $clone = clone $this;
228 return $this->usr->getLastname();
237 return $this->usr->getFirstname();
246 return $this->usr->getLogin();
255 return $this->usr->getFullname();
274 $clone = clone $this;
275 $clone->finalized = 1;
An exception for terminatinating execution or to throw for unit testing.
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.
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?
__construct(ilObjIndividualAssessment $iass, ilObjUser $usr, array $data)
withExaminerId($examiner_id)
Clone this object and set an examiner_id.
LPStatus()
Get the LP-status corresponding to this membership.
id()
Get the user id corresponding to this membership.
withLPStatus($lp_status)
Clone this object and set LP-status.
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.
assessment()
Get the ilObjIndividualAssessment corresponding to this membership.
withFinalized()
Clone this object and finalize.
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?
firstname()
Get the examinee firstname corresponding to this membership.
const FIELD_INTERNAL_NOTE
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.