19 declare(strict_types=1);
53 public function save(): void
57 $query =
'INSERT INTO adv_md_record_obj_ord (record_id, obj_id, position ) ' .
59 $this->db->quote($this->record_id,
'integer') .
', ' .
60 $this->db->quote($this->obj_id,
'integer') .
', ' .
61 $this->db->quote($this->position,
'integer') .
' ' .
64 $this->db->manipulate($query);
70 public function delete():
void 72 $query =
'DELETE FROM adv_md_record_obj_ord WHERE ' .
73 'record_id = ' . $this->db->quote($this->record_id,
'integer') .
' ' .
74 'AND obj_id = ' . $this->db->quote($this->obj_id,
'integer');
75 $this->db->manipulate($query);
__construct(int $record_id, int $obj_id, ilDBInterface $db)
setPosition(int $position)