48 $this->item_id = $item_id;
49 $this->user_id = $a_usr_id;
56 return $this->user_id;
60 return $this->item_id;
69 $this->start = $a_time;
82 include_once
'Modules/Course/classes/class.ilCourseItems.php';
103 $query =
"INSERT INTO crs_timings_planed ".
104 "SET item_id = ".$ilDB->quote($this->
getItemId()).
", ".
105 "usr_id = ".$ilDB->quote($this->
getUserId()).
", ".
108 $this->db->query($query);
120 $query =
"DELETE FROM crs_timings_planed ".
121 "WHERE item_id = ".$ilDB->quote($a_item_id).
" ".
122 "AND usr_id = ".$ilDB->quote($a_usr_id).
" ";
123 $ilDB->query($query);
131 $query =
"SELECT * FROM crs_timings_planed ".
132 "WHERE item_id = ".$ilDB->quote($a_item_id).
" ".
133 "AND usr_id = ".$a_usr_id.
" ";
134 $res = $ilDB->query($query);
137 $data[
'planed_start'] = $row->planed_start;
138 $data[
'planed_end'] = $row->planed_end;
148 $query =
"SELECT * FROM crs_timings_planed ".
149 "WHERE item_id = ".$ilDB->quote($a_item_id).
" ";
150 $res = $ilDB->query($query);
153 $data[$row->usr_id][
'start'] = $row->planed_start;
154 $data[$row->usr_id][
'end'] = $row->planed_end;
163 $query =
"DELETE FROM crs_timings_planed ".
164 "WHERE item_id = ".$ilDB->quote($a_item_id).
" ";
165 $ilDB->query($query);
172 $query =
"DELETE FROM crs_timings_planed ".
173 "WHERE usr_id = ".$ilDB->quote($a_usr_id).
" ";
174 $ilDB->query($query);
181 $query =
"SELECT * FROM crs_timings_planed ".
182 "WHERE item_id = ".$ilDB->quote($this->
getItemId()).
" ".
183 "AND usr_id = ".$ilDB->quote($this->
getUserId()).
" ";
184 $res = $this->db->query($query);