23 protected \ilDBInterface
$db;
37 if (!$this->db->tableColumnExists(
'note',
'recipient')) {
38 $this->db->addTableColumn(
'note',
'recipient', array(
51 "SELECT * FROM note_settings " .
52 " WHERE obj_type = %s AND obj_id = %s",
56 while ($rec1 = $db->fetchAssoc($set1)) {
59 "SELECT type FROM object_data " .
60 " WHERE obj_id = %s ",
64 if ($rec2 = $db->fetchAssoc($set2)) {
68 "SELECT rep_obj_id FROM note_settings " .
69 " WHERE rep_obj_id = " . $db->quote($rec1[
"rep_obj_id"],
"integer") .
70 " AND activated = " . $db->quote(1,
"integer")
73 if ($db->fetchAssoc($set3)) {
79 "rep_obj_id" => [
"integer", $rec1[
"rep_obj_id"]],
80 "obj_id" => [
"integer", $rec1[
"obj_id"]]
83 "obj_type" => [
"text", $rec2[
"type"]],
84 "activated" => [
"integer", $active],
88 "DELETE FROM note_settings WHERE " .
89 " rep_obj_id = %s AND obj_id = %s AND obj_type = %s",
90 [
"integer",
"integer",
"text"],
91 [$rec1[
"rep_obj_id"], $rec1[
"obj_id"], $rec1[
"obj_type"]]
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
queryF(string $query, array $types, array $values)