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';
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);
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.
assessmentId()
Get the ilObjIndividualAssessment id corresponding to this membership.
finalized()
Is this membership allready finalized?
LPStatus()
Get the LP-status corresponding to this membership.
id()
Get the user id corresponding to this membership.
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_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