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
'./Services/Object/classes/class.ilObjectActivation.php';
103 $query =
"INSERT INTO crs_timings_planed (item_id,usr_id,planed_start,planed_end) ".
105 $ilDB->quote($this->
getItemId() ,
'integer').
", ".
106 $ilDB->quote($this->
getUserId() ,
'integer').
", ".
122 $query =
"DELETE FROM crs_timings_planed ".
123 "WHERE item_id = ".$ilDB->quote($a_item_id ,
'integer').
" ".
124 "AND usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
" ";
133 $query =
"SELECT * FROM crs_timings_planed ".
134 "WHERE item_id = ".$ilDB->quote($a_item_id ,
'integer').
" ".
135 "AND usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
" ";
139 $data[
'planed_start'] =
$row->planed_start;
140 $data[
'planed_end'] =
$row->planed_end;
142 return $data ? $data : array();
150 $query =
"SELECT * FROM crs_timings_planed ".
151 "WHERE item_id = ".$ilDB->quote($a_item_id ,
'integer').
" ";
155 $data[
$row->usr_id][
'start'] =
$row->planed_start;
156 $data[
$row->usr_id][
'end'] =
$row->planed_end;
158 return $data ? $data : array();
165 $query =
"DELETE FROM crs_timings_planed ".
166 "WHERE item_id = ".$ilDB->quote($a_item_id ,
'integer').
" ";
174 $query =
"DELETE FROM crs_timings_planed ".
175 "WHERE usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
" ";
183 $query =
"SELECT * FROM crs_timings_planed ".
184 "WHERE item_id = ".$ilDB->quote($this->
getItemId() ,
'integer').
" ".
185 "AND usr_id = ".$ilDB->quote($this->
getUserId() ,
'integer').
" ";