53 $this->item_id = $item_id;
54 $this->user_id = $a_usr_id;
61 return $this->user_id;
65 return $this->item_id;
74 $this->start = $a_time;
87 include_once
'./Services/Object/classes/class.ilObjectActivation.php';
108 $query =
"INSERT INTO crs_timings_planed (item_id,usr_id,planed_start,planed_end) ".
110 $ilDB->quote($this->
getItemId() ,
'integer').
", ".
111 $ilDB->quote($this->
getUserId() ,
'integer').
", ".
123 public static function _delete($a_item_id,$a_usr_id)
127 $query =
"DELETE FROM crs_timings_planed ".
128 "WHERE item_id = ".$ilDB->quote($a_item_id ,
'integer').
" ".
129 "AND usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
" ";
138 $query =
"SELECT * FROM crs_timings_planed ".
139 "WHERE item_id = ".$ilDB->quote($a_item_id ,
'integer').
" ".
140 "AND usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
" ";
144 $data[
'planed_start'] =
$row->planed_start;
155 $query =
"SELECT * FROM crs_timings_planed ".
156 "WHERE item_id = ".$ilDB->quote($a_item_id ,
'integer').
" ";
170 $query =
"DELETE FROM crs_timings_planed ".
171 "WHERE item_id = ".$ilDB->quote($a_item_id ,
'integer').
" ";
179 $query =
"DELETE FROM crs_timings_planed ".
180 "WHERE usr_id = ".$ilDB->quote($a_usr_id ,
'integer').
" ";
188 $query =
"SELECT * FROM crs_timings_planed ".
189 "WHERE item_id = ".$ilDB->quote($this->
getItemId() ,
'integer').
" ".
190 "AND usr_id = ".$ilDB->quote($this->
getUserId() ,
'integer').
" ";
__construct($item_id, $a_usr_id)
Constructor.
static getItem($a_ref_id)
Get item data.
static _getPlanedTimingsByItem($a_item_id)
static _deleteByUser($a_usr_id)
setPlanedEndingTime($a_end)
static _delete($a_item_id, $a_usr_id)
Create styles array
The data for the language used.
static _getPlanedTimings($a_usr_id, $a_item_id)
setPlanedStartingTime($a_time)
static _deleteByItem($a_item_id)