71 $query =
'INSERT INTO adv_md_record_obj_ord (record_id, obj_id, position ) ' .
73 $this->db->quote($this->record_id,
'integer') .
', ' .
74 $this->db->quote($this->obj_id,
'integer') .
', ' .
75 $this->db->quote($this->position,
'integer') .
' ' .
78 $this->db->manipulate(
$query);
84 public function delete()
86 $query =
'DELETE FROM adv_md_record_obj_ord WHERE ' .
87 'record_id = ' . $this->db->quote($this->record_id,
'integer') .
' ' .
88 'AND obj_id = ' . $this->db->quote($this->obj_id,
'integer');
89 $this->db->manipulate(
$query);
__construct(int $record_id, int $obj_id, ilDBInterface $db)
ilAdvancedMDRecordObjectOrdering constructor.
setPosition(int $position)