48 $this->crs_id = $crs_id;
49 $this->user_id = $a_usr_id;
56 return $this->user_id;
64 $this->accepted = $a_status;
68 return $this->accepted ?
true :
false;
72 $this->remark = $a_remark;
80 $this->visible = $a_visible;
84 return $this->visible ?
true :
false;
98 $query =
"INSERT INTO crs_timings_usr_accept ".
99 "SET crs_id = ".$ilDB->quote($this->
getCourseId()).
", ".
100 "usr_id = ".$ilDB->quote($this->
getUserId()).
", ".
101 "visible = ".$ilDB->quote($this->
isVisible()).
", ".
102 "accept = ".$ilDB->quote($this->
isAccepted()).
", ".
103 "remark = ".$ilDB->quote($this->
getRemark()).
" ";
104 $this->db->query($query);
116 $query =
"DELETE FROM crs_timings_usr_accept ".
117 "WHERE crs_id = ".$ilDB->quote($a_crs_id).
" ".
118 "AND usr_id = ".$ilDB->quote($a_usr_id).
" ";
119 $ilDB->query($query);
126 $query =
"DELETE FROM crs_timings_usr_accept ".
127 "WHERE crs_id = ".$ilDB->quote($a_crs_id).
" ";
128 $ilDB->query($query);
135 $query =
"DELETE FROM crs_timings_usr_accept ".
136 "WHERE usr_id = ".$ilDB->quote($a_usr_id).
"";
137 $ilDB->query($query);
144 $query =
"SELECT * FROM crs_timings_usr_accept ".
145 "WHERE crs_id = ".$ilDB->quote($this->
getCourseId()).
" ".
146 "AND usr_id = ".$this->getUserId().
"";
147 $res = $this->db->query($query);
152 $this->
accept($row->accept);