19 declare(strict_types=1);
28 protected \ilDBInterface
$db;
47 "SELECT rep_obj_id FROM note_settings " .
48 " WHERE rep_obj_id = " . $db->quote($obj_id,
"integer") .
49 " AND activated = " . $db->quote(1,
"integer")
51 if ($db->fetchAssoc($set)) {
62 $set = $db->
query(
"SELECT * FROM note_settings " .
63 " WHERE " . $db->in(
"rep_obj_id", $obj_ids,
false,
"integer") .
66 while ($rec = $db->fetchAssoc($set)) {
67 if ($rec[
"activated"]) {
68 $activations[$rec[
"rep_obj_id"]] =
true;
83 bool $a_activate =
true 87 if ($obj_type ===
"") {
94 "rep_obj_id" => [
"integer", $obj_id],
95 "obj_id" => [
"integer", $sub_obj_id],
96 "obj_type" => [
"string", $obj_type],
99 "activated" => [
"integer", (
int) $a_activate]
__construct(InternalDataService $data, \ilDBInterface $db)
InternalDataService $data
commentsActive(int $obj_id)
Are comments activated for object?
Repository internal data service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
query(string $query)
Run a (read-only) Query on the database.
replace(string $table, array $primary_keys, array $other_columns)
Replace into method.
commentsActiveMultiple(array $obj_ids)
activateComments(int $obj_id, int $sub_obj_id, string $obj_type, bool $a_activate=true)
Activate notes feature.