public static function getClariNoteObject($entity, $entity_key_value, $fieldName, $vocab_number, $value) { $clari_note_object = new ClariNotes(); $clari_note_object->Load($entity, $entity_key_value, $fieldName, $vocab_number); $clari_note_object->entity = $entity; $clari_note_object->record_number = $entity_key_value; $clari_note_object->field_name = $fieldName; $clari_note_object->vocab_number = $vocab_number; //iterate this array to get clari notes for each multi value $clari_note_object->value = $value; return $clari_note_object; }
private function saveClarifyingNotes() { ClariNotes::deleteExistingNotes($this->entity, $this->{$this->keyName}); foreach ($this->clari_notes as $clari_note) { $clari_note->Save(); } }