public function markAsFinal($annoId, $ceHim) { $annotationTable = new Annotations(); $partId = $this->getParticipantId(); //mark all Annos. from part an cehim_id as not final $data = array(Annotations::COL_FINAL => 0); $where[] = Annotations::COL_CE_HAS_IMAGE_ID . "='" . $ceHim . "'"; $where[] = Annotations::COL_PART_ID . "='" . $partId . "'"; $annotationTable->update($data, $where); // mark the final one $data = array(Annotations::COL_FINAL => 1); $annotationTable->update($data, Annotations::COL_ID . " = '" . $annoId . "'"); return $annoId; }