/**
  * @desc This private function display form update
  * @param object $member_extended_field MemberExtendedField
  */
 private function display_update_form(FormFieldset $fieldset, $user_id)
 {
     $result = PersistenceContext::get_querier()->select("SELECT exc.name, exc.description, exc.field_type, exc.required, exc.field_name, exc.possible_values, exc.default_value, exc.auth, exc.regex, ex.*\r\n\t\tFROM " . DB_TABLE_MEMBER_EXTENDED_FIELDS_LIST . " exc\r\n\t\tLEFT JOIN " . DB_TABLE_MEMBER_EXTENDED_FIELDS . " ex ON ex.user_id = :user_id\r\n\t\tWHERE exc.display = 1\r\n\t\tORDER BY exc.position", array('user_id' => $user_id));
     while ($extended_field = $result->fetch()) {
         if (AppContext::get_current_user()->check_auth(unserialize($extended_field['auth']), ExtendedField::READ_EDIT_AND_ADD_AUTHORIZATION)) {
             $value = !empty($extended_field[$extended_field['field_name']]) ? $extended_field[$extended_field['field_name']] : $extended_field['default_value'];
             $extended_field['value'] = $value;
             $member_extended_field = new MemberExtendedField();
             $member_extended_field->set_user_id($user_id);
             $member_extended_field->set_fieldset($fieldset);
             $member_extended_field->set_properties($extended_field);
             $member_extended_field->get_instance()->display_field_update($member_extended_field);
         }
     }
     $result->dispose();
 }