2require_once
'Modules/IndividualAssessment/interfaces/Members/interface.ilIndividualAssessmentMembersStorage.php';
3require_once
'Modules/IndividualAssessment/classes/Members/class.ilIndividualAssessmentMembers.php';
4require_once
'Modules/IndividualAssessment/classes/Members/class.ilIndividualAssessmentMember.php';
5require_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));
83 $where = array(
"obj_id" => array(
"integer", $member->
assessmentId())
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');
142 $values = array(
"obj_id" => array(
"integer", $iass->
getId())
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);
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.
viewFile()
Can user see the uploaded file.
assessmentId()
Get the ilObjIndividualAssessment id corresponding to this membership.
finalized()
Is this membership allready finalized?
place()
Get place where ia was held.
eventTime()
Get date when ia was.
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.
notify()
Will the user be notified after finalization?
notificationTS()
Get the timestamp, at which the notification was sent.
Member administration related logic, add and remove members, get the list of all members,...
const FIELD_INTERNAL_NOTE
const FIELD_CHANGER_LASTNAME
const FIELD_USER_VIEW_FILE
const FIELD_CHANGER_FIRSTNAME
const FIELD_EXAMINER_FIRSTNAME
const FIELD_NOTIFICATION_TS
const FIELD_LEARNING_PROGRESS
const FIELD_EXAMINER_LASTNAME
For the purpose of streamlining the grading and learning-process status definition outside of tests,...
getId()
get object id @access public
foreach($_POST as $key=> $value) $res