protected function doAddTagToElement($tagId, $cType, $cId) { $data = ["tagid" => $tagId, "ctype" => $cType, "cid" => $cId]; $this->db->insertOrUpdate("tags_assignment", $data); }