3 declare(strict_types=1);
39 public function save(): void
43 $query =
'INSERT INTO adv_md_record_obj_ord (record_id, obj_id, position ) ' .
45 $this->db->quote($this->record_id,
'integer') .
', ' .
46 $this->db->quote($this->obj_id,
'integer') .
', ' .
47 $this->db->quote($this->position,
'integer') .
' ' .
50 $this->db->manipulate(
$query);
56 public function delete():
void 58 $query =
'DELETE FROM adv_md_record_obj_ord WHERE ' .
59 'record_id = ' . $this->db->quote($this->record_id,
'integer') .
' ' .
60 'AND obj_id = ' . $this->db->quote($this->obj_id,
'integer');
61 $this->db->manipulate(
$query);
__construct(int $record_id, int $obj_id, ilDBInterface $db)
setPosition(int $position)