MantisBT: master b1fe6a00

Author Committer Branch Timestamp Parent
dregad dregad master 2024-09-25 19:00 master deea5279
Affected Issues  0034824: Multiple execution of the same query with Profile API functions
Changeset

Refactor Profile API - new ProfileData class

Using an object to handle Profiles avoids repeated SQL queries to
retrieve the same Profile information from the database.

This initial implementation only supports read-only operations for now;
add, update and delete are still managed with legacy functions.

These 3 functions have been replaced by ProfileData methods, which they
are now simple proxies for. They have been marked as deprecated, and
will be removed in a future release.

  • profile_get_row()
  • profile_get_name()
  • profile_is_global()

Fixes 0034824

mod - account_prof_edit_page.php Diff File
mod - account_prof_update.php Diff File
mod - api/soap/mc_api.php Diff File
mod - core/commands/IssueAddCommand.php Diff File
mod - core/filter_form_api.php Diff File
mod - core/profile_api.php Diff File
mod - core/user_api.php Diff File
mod - print_all_bug_page_word.php Diff File