35 $this->obj_id = $a_obj_id;
36 $this->db = $DIC->database();
50 public function save(): void
54 if ($this->obj_id > 0) {
57 array(
"obj_id" => array(
"integer", $this->obj_id)),
58 array(
"noti_mode" => array(
"integer", $this->
getMode()))
63 public function read(): void
68 "SELECT * FROM obj_noti_settings " .
69 " WHERE obj_id = " . $db->
quote($this->obj_id,
"integer")
72 $this->
setMode((
int) ($rec[
"noti_mode"] ?? 0));
75 public function delete():
void 79 $db->
manipulate(
"DELETE FROM obj_noti_settings WHERE " .
80 " obj_id = " . $db->
quote($this->obj_id,
"integer"));
fetchAssoc(ilDBStatement $statement)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
quote($value, string $type)
__construct(int $a_obj_id)
const MODE_DEF_ON_OPT_OUT
query(string $query)
Run a (read-only) Query on the database.
const MODE_DEF_OFF_USER_ACTIVATION
replace(string $table, array $primary_keys, array $other_columns)
Replace into method.
manipulate(string $query)
Run a (write) Query on the database.
const MODE_DEF_ON_NO_OPT_OUT