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 (crs_id,usr_id,visible,accept,remark) ".
100 $ilDB->quote($this->
getCourseId() ,
'integer').
", ".
101 $ilDB->quote($this->
getUserId() ,
'integer').
", ".
102 $ilDB->quote($this->
isVisible() ,
'integer').
", ".
103 $ilDB->quote($this->
isAccepted() ,
'integer').
", ".
104 $ilDB->quote($this->
getRemark() ,
'text').
" ".
118 $query =
"DELETE FROM crs_timings_usr_accept ".
119 "WHERE crs_id = ".$ilDB->quote($a_crs_id ,
'integer').
" ".
120 "AND usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
" ";
128 $query =
"DELETE FROM crs_timings_usr_accept ".
129 "WHERE crs_id = ".$ilDB->quote($a_crs_id ,
'integer').
" ";
137 $query =
"DELETE FROM crs_timings_usr_accept ".
138 "WHERE usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
"";
146 $query =
"SELECT * FROM crs_timings_usr_accept ".
147 "WHERE crs_id = ".$ilDB->quote($this->
getCourseId() ,
'integer').
" ".
148 "AND usr_id = ".$ilDB->quote($this->
getUserId() ,
'integer').
"";