3 declare(strict_types=1);
28 protected \ilDBInterface
$db;
43 $and_hist =
" AND usage_hist_nr > 0 AND usage_hist_nr <= " . $db->
quote($a_usage_hist_nr,
"integer");
46 $set = $db->query(
"SELECT DISTINCT(id) FROM mob_usage" .
47 " WHERE usage_type = " . $db->quote($a_type,
"text") .
48 " AND usage_id = " . $db->quote($a_id,
"integer") .
49 " AND usage_lang = " . $db->quote($a_lang,
"text") .
52 while ($row = $db->fetchAssoc($set)) {
53 $mob_ids[] = $row[
"id"];
66 $and_hist =
" AND usage_hist_nr > 0 AND usage_hist_nr <= " . $db->
quote($a_usage_hist_nr,
"integer");
67 $q =
"DELETE FROM mob_usage WHERE usage_type = " .
68 $db->quote($a_type,
"text") .
69 " AND usage_id= " . $db->quote($a_id,
"integer") .
70 " AND usage_lang = " . $db->quote($a_lang,
"text") .
quote($value, string $type)