25 $this->appointment_id = $a_appointment_id;
39 $query =
"DELETE FROM cal_registrations ".
40 "WHERE usr_id = ".$ilDB->quote($a_usr_id,
'integer');
48 $query =
"DELETE FROM cal_registrations ".
49 "WHERE cal_id = ".$ilDB->quote($a_cal_id,
'integer');
68 foreach($this->registered as $reg_data)
70 if($reg_data[
'usr_id'] == $a_usr_id)
88 foreach($this->registered as $reg_data)
90 if($reg_data[
'usr_id'] == $a_usr_id)
111 $query =
"INSERT INTO cal_registrations (cal_id,usr_id,dstart,dend) ".
114 $ilDB->quote($a_usr_id,
'integer').
", ".
115 $ilDB->quote($start->get(
IL_CAL_UNIX),
'integer').
", ".
118 $ilDB->manipulate(
$query);
120 $this->registered[] = $a_usr_id;
133 $query =
"DELETE FROM cal_registrations ".
135 "AND usr_id = ".$ilDB->quote($a_usr_id,
'integer').
' '.
136 "AND dstart = ".$ilDB->quote($start->
get(
IL_CAL_UNIX),
'integer').
' '.
155 $query =
"SELECT * FROM cal_registrations WHERE cal_id = ".$ilDB->quote($this->
getAppointmentId(),
'integer');
159 $this->registered[] = array(
160 'usr_id'=>
$row->usr_id,
161 'dstart' =>
$row->dstart,