53 $this->crs_id = $crs_id;
54 $this->user_id = $a_usr_id;
61 return $this->user_id;
69 $this->accepted = $a_status;
73 return $this->accepted ? true :
false;
77 $this->remark = $a_remark;
85 $this->visible = $a_visible;
89 return $this->visible ? true :
false;
103 $query =
"INSERT INTO crs_timings_usr_accept (crs_id,usr_id,visible,accept,remark) ".
105 $ilDB->quote($this->
getCourseId() ,
'integer').
", ".
106 $ilDB->quote($this->
getUserId() ,
'integer').
", ".
107 $ilDB->quote($this->
isVisible() ,
'integer').
", ".
108 $ilDB->quote($this->
isAccepted() ,
'integer').
", ".
109 $ilDB->quote($this->
getRemark() ,
'text').
" ".
123 $query =
"DELETE FROM crs_timings_usr_accept ".
124 "WHERE crs_id = ".$ilDB->quote($a_crs_id ,
'integer').
" ".
125 "AND usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
" ";
133 $query =
"DELETE FROM crs_timings_usr_accept ".
134 "WHERE crs_id = ".$ilDB->quote($a_crs_id ,
'integer').
" ";
142 $query =
"DELETE FROM crs_timings_usr_accept ".
143 "WHERE usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
"";
151 $query =
"SELECT * FROM crs_timings_usr_accept ".
152 "WHERE crs_id = ".$ilDB->quote($this->
getCourseId() ,
'integer').
" ".
153 "AND usr_id = ".$ilDB->quote($this->
getUserId() ,
'integer').
"";
__construct($crs_id, $a_usr_id)
Constructor.
static _deleteByUser($a_usr_id)
_delete($a_crs_id, $a_usr_id)
_deleteByCourse($a_crs_id)