43 $this->usr_id = $a_usr_id;
51 $this->obj_id = $a_obj_id;
64 $query =
"INSERT INTO link_check_report ".
65 "SET obj_id = ".$ilDB->quote($this->
getObjId()).
", ".
66 "usr_id = ".$ilDB->quote($this->
getUserId()).
"";
68 $this->db->query($query);
77 $query =
"DELETE FROM link_check_report ".
78 "WHERE obj_id = ".$ilDB->quote($this->
getObjId()).
" ".
79 "AND usr_id = ".$ilDB->quote($this->
getUserId()).
" ";
81 $this->db->query($query);
91 $query =
"SELECT * FROM link_check_report ".
92 "WHERE obj_id = ".$ilDB->quote($a_obj_id).
" ".
93 "AND usr_id = ".$ilDB->quote($a_usr_id).
" ";
95 $res = $ilDB->query($query);
97 return $res->numRows() ?
true :
false;
104 $query =
"DELETE FROM link_check_report ".
105 "WHERE usr_id = ".$ilDB->quote($a_usr_id).
" ";
107 $ilDB->query($query);
116 $query =
"DELETE FROM link_check_report ".
117 "WHERE obj_id = ".$ilDB->quote($a_obj_id).
" ";
119 $ilDB->query($query);
128 $query =
"SELECT * FROM link_check_report ".
129 "WHERE obj_id = ".$ilDB->quote($a_obj_id).
" ";
131 $res = $ilDB->query($query);
134 $usr_ids[] = $row->usr_id;
137 return $usr_ids ? $usr_ids : array();
144 $query =
"SELECT * FROM link_check_report ";
149 $usr_ids[$row->usr_id][] = $row->obj_id;
152 return $usr_ids ? $usr_ids : array();