23 $this->usr_id = $a_usr_id;
31 $this->obj_id = $a_obj_id;
44 $query =
"INSERT INTO link_check_report (obj_id,usr_id) ".
46 $ilDB->quote($this->
getObjId(),
'integer').
", ".
47 $ilDB->quote($this->
getUserId(),
'integer').
58 $query =
"DELETE FROM link_check_report ".
59 "WHERE obj_id = ".$ilDB->quote($this->
getObjId(),
'integer').
" ".
60 "AND usr_id = ".$ilDB->quote($this->
getUserId(),
'integer').
" ";
71 $query =
"SELECT * FROM link_check_report ".
72 "WHERE obj_id = ".$ilDB->quote($a_obj_id,
'integer').
" ".
73 "AND usr_id = ".$ilDB->quote($a_usr_id,
'integer');
76 return $res->numRows() ?
true :
false;
83 $query =
"DELETE FROM link_check_report ".
84 "WHERE usr_id = ".$ilDB->quote($a_usr_id,
'integer');
93 $query =
"DELETE FROM link_check_report ".
94 "WHERE obj_id = ".$ilDB->quote($a_obj_id,
'integer').
" ";
104 $query =
"SELECT * FROM link_check_report ".
105 "WHERE obj_id = ".$ilDB->quote($a_obj_id,
'integer').
" ";
110 $usr_ids[] =
$row->usr_id;
113 return $usr_ids ? $usr_ids : array();
120 $query =
"SELECT * FROM link_check_report ";
125 $usr_ids[
$row->usr_id][] =
$row->obj_id;
128 return $usr_ids ? $usr_ids : array();