2 require_once
'Modules/IndividualAssessment/interfaces/Members/interface.ilIndividualAssessmentMembersStorage.php';
3 require_once
'Modules/IndividualAssessment/classes/Members/class.ilIndividualAssessmentMembers.php';
4 require_once
'Modules/IndividualAssessment/classes/Members/class.ilIndividualAssessmentMember.php';
5 require_once
'Modules/IndividualAssessment/classes/class.ilObjIndividualAssessment.php';
31 $obj_id = $obj->
getId();
33 $res = $this->db->query($sql);
34 while ($rec = $this->db->fetchAssoc(
$res)) {
35 $members = $members->withAdditionalRecord($rec);
45 $obj_id = $obj->
getId();
46 $usr_id = $usr->
getId();
50 .
"iassme.examiner_id," 52 .
"iassme.internal_note," 54 .
"iassme.notification_ts," 55 .
"iassme.learning_progress," 58 .
"iassme.event_time," 59 .
"iassme.user_view_file," 61 .
"iassme.changer_id," 62 .
"iassme.change_time" 63 .
" FROM " . self::MEMBERS_TABLE .
" iassme\n" 64 .
" JOIN usr_data usr ON iassme.usr_id = usr.usr_id\n" 65 .
" LEFT JOIN usr_data ex ON iassme.examiner_id = ex.usr_id\n" 66 .
" WHERE obj_id = " . $this->db->quote($obj_id,
'integer') .
"\n" 67 .
" AND iassme.usr_id = " . $this->db->quote($usr_id,
'integer');
69 $rec = $this->db->fetchAssoc($this->db->query($sql));
84 ,
"usr_id" =>
array(
"integer", $member->
id())
102 $this->db->update(self::MEMBERS_TABLE, $values, $where);
110 $sql =
"DELETE FROM " . self::MEMBERS_TABLE .
" WHERE obj_id = " . $this->db->quote($obj->
getId(),
'integer');
111 $this->db->manipulate($sql);
127 .
" ,iassme.obj_id, iassme.usr_id, iassme.examiner_id, iassme.record, iassme.internal_note, iassme.notify" 128 .
" ,iassme.notification_ts, iassme.learning_progress, iassme.finalized,iassme.place" 129 .
" ,iassme.event_time, iassme.changer_id, iassme.change_time\n" 130 .
" FROM iass_members iassme" 131 .
" JOIN usr_data usr ON iassme.usr_id = usr.usr_id" 132 .
" LEFT JOIN usr_data ex ON iassme.examiner_id = ex.usr_id" 133 .
" LEFT JOIN usr_data ud ON iassme.changer_id = ud.usr_id" 134 .
" WHERE obj_id = " . $this->db->quote($obj_id,
'integer');
159 $this->db->insert(self::MEMBERS_TABLE, $values);
167 $sql =
"DELETE FROM " . self::MEMBERS_TABLE .
"\n" 168 .
" WHERE obj_id = " . $this->db->quote($iass->
getId(),
'integer') .
"\n" 171 $this->db->manipulate($sql);
For the purpose of streamlining the grading and learning-process status definition outside of tests...
const FIELD_INTERNAL_NOTE
examinerId()
Get the user id of the examiner.
eventTime()
Get date when ia was.
const FIELD_LEARNING_PROGRESS
notificationTS()
Get the timestamp, at which the notification was sent.
finalized()
Is this membership allready finalized?
changerId()
Get the user id of the changer.
const FIELD_CHANGER_FIRSTNAME
const FIELD_USER_VIEW_FILE
foreach($_POST as $key=> $value) $res
getId()
get object id public
const FIELD_EXAMINER_FIRSTNAME
place()
Get place where ia was held.
const FIELD_NOTIFICATION_TS
Create styles array
The data for the language used.
viewFile()
Can user see the uploaded file.
Edit the record of a user, set LP.
notify()
Will the user be notified after finalization?
fileName()
Get the name of the uploaded file.
const FIELD_EXAMINER_LASTNAME
const FIELD_CHANGER_LASTNAME
assessmentId()
Get the ilObjIndividualAssessment id corresponding to this membership.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
id()
Get the user id corresponding to this membership.
Member administration related logic, add and remove members, get the list of all members, etc.
LPStatus()
Get the LP-status corresponding to this membership.