/**
  * update an existing record in database
  * @param $encoded_key_string string unique identifier of record
  * @param $name_values array array containing new name-values of record
  * @return bool indicates if record has been updated
  */
 function update($encoded_key_string, $name_values_array = array())
 {
     $this->_log->trace("updating record from UserDatabaseTable (encoded_key_string=" . $encoded_key_string . ")");
     # replace decimal marks
     if (count($this->db_field_names_decimal_marks_to_replace) > 0) {
         $name_values_array = $this->_replace_decimal_marks($name_values_array, TRUE);
     }
     # call parent update()
     if (parent::update($encoded_key_string, $this->_user->get_name(), $name_values_array) == FALSE) {
         return FALSE;
     }
     $this->_log->trace("updated record from UserDatabaseTable");
     return TRUE;
 }
 /**
  * update an existing note in database
  * @param $note_id int unique identifier of a specific ListTableNote object
  * @param $note string the updated note
  * @return bool indicates if ListTableNote has been updated
  */
 function update($note_id, $note)
 {
     $this->_log->trace("updating ListTableNote (note_id={$note_id})");
     # create encoded_key_string
     $encoded_key_string = parent::_encode_key_string(DB_ID_FIELD_NAME . "='{$note_id}'");
     # create name_value_array
     $name_values_array = array();
     $name_values_array[LISTTABLENOTE_NOTE_FIELD_NAME] = $note;
     if (parent::update($encoded_key_string, $this->_user->get_name(), $name_values_array) == FALSE) {
         return FALSE;
     }
     $this->_log->trace("updated ListTableNote");
     return TRUE;
 }