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';
23 $obj_id = $obj->
getId();
25 $res = $this->db->query($sql);
26 while($rec = $this->db->fetchAssoc(
$res)) {
27 $members = $members->withAdditionalRecord($rec);
36 $obj_id = $obj->
getId();
37 $usr_id = $usr->
getId();
38 $sql =
'SELECT iassme.*' 39 .
' FROM iass_members iassme' 40 .
' JOIN usr_data usr ON iassme.usr_id = usr.usr_id' 41 .
' LEFT JOIN usr_data ex ON iassme.examiner_id = ex.usr_id' 42 .
' WHERE obj_id = '.$this->db->quote($obj_id,
'integer')
43 .
' AND iassme.usr_id = '.$this->db->quote($usr_id,
'integer');
44 $rec = $this->db->fetchAssoc($this->db->query($sql));
57 $sql =
'UPDATE iass_members SET ' 65 .
' WHERE obj_id = '.$this->db->quote($member->
assessmentId(),
'integer')
66 .
' AND usr_id = '.$this->db->quote($member->
id(),
'integer');
67 $this->db->manipulate($sql);
74 $sql =
"DELETE FROM iass_members WHERE obj_id = ".$this->db->quote($obj->
getId(),
'integer');
75 $this->db->manipulate($sql);
82 return 'SELECT ex.firstname as '.ilIndividualAssessmentMembers::FIELD_EXAMINER_FIRSTNAME
88 .
' FROM iass_members iassme' 89 .
' JOIN usr_data usr ON iassme.usr_id = usr.usr_id' 90 .
' LEFT JOIN usr_data ex ON iassme.examiner_id = ex.usr_id' 91 .
' WHERE obj_id = '.$this->db->quote($obj_id,
'integer');
98 $sql =
'INSERT INTO iass_members (obj_id,usr_id,record,learning_progress,notify) ' 100 .
' '.$this->db->quote($iass->
getId(),
'integer')
104 .
' ,'.$this->db->quote(0,
'integer')
106 $this->db->manipulate($sql);
113 $sql =
'DELETE FROM iass_members' 114 .
' WHERE obj_id = '.$this->db->quote($iass->
getId(),
'integer')
116 $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.
const FIELD_LEARNING_PROGRESS
notificationTS()
Get the timestamp, at which the notification was sent.
finalized()
Is this membership allready finalized?
getId()
get object id public
const FIELD_NOTIFICATION_TS
Create styles array
The data for the language used.
Edit the record of a user, set LP.
notify()
Will the user be notified after finalization?
const FIELD_EXAMINER_LASTNAME
assessmentId()
Get the ilObjIndividualAssessment id corresponding to this membership.
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.