. /** * @package CoreAPI * @subpackage XMLHttpRequestAPI * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org * @copyright Copyright (C) 2002 - 2012 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org */ /** * requires bug_api */ require_once( 'bug_api.php' ); /** * requires profile_api */ require_once( 'profile_api.php' ); /** * requires logging_api */ require_once( 'logging_api.php' ); /** * requires projax_api */ require_once( 'projax_api.php' ); /** * * @return null * @access public */ function xmlhttprequest_issue_reporter_combobox() { $f_bug_id = gpc_get_int( 'issue_id' ); access_ensure_bug_level( config_get( 'update_bug_threshold' ), $f_bug_id ); $t_reporter_id = bug_get_field( $f_bug_id, 'reporter_id' ); $t_project_id = bug_get_field( $f_bug_id, 'project_id' ); echo ''; } /** * Print a generic combobox with a list of users above a given access level. */ function xmlhttprequest_user_combobox() { $f_user_id = gpc_get_int( 'user_id' ); $f_user_access = gpc_get_int( 'access_level' ); echo ''; } /** * Echos a serialized list of platforms starting with the prefix specified in the $_POST * @return null * @access public */ function xmlhttprequest_platform_get_with_prefix() { $f_platform = gpc_get_string( 'platform' ); $t_unique_entries = profile_get_field_all_for_user( 'platform' ); $t_matching_entries = projax_array_filter_by_prefix( $t_unique_entries, $f_platform ); echo projax_array_serialize_for_autocomplete( $t_matching_entries ); } /** * Echos a serialized list of OSes starting with the prefix specified in the $_POST * @return null * @access public */ function xmlhttprequest_os_get_with_prefix() { $f_os = gpc_get_string( 'os' ); $t_unique_entries = profile_get_field_all_for_user( 'os' ); $t_matching_entries = projax_array_filter_by_prefix( $t_unique_entries, $f_os ); echo projax_array_serialize_for_autocomplete( $t_matching_entries ); } /** * Echos a serialized list of OS Versions starting with the prefix specified in the $_POST * @return null * @access public */ function xmlhttprequest_os_build_get_with_prefix() { $f_os_build = gpc_get_string( 'os_build' ); $t_unique_entries = profile_get_field_all_for_user( 'os_build' ); $t_matching_entries = projax_array_filter_by_prefix( $t_unique_entries, $f_os_build ); echo projax_array_serialize_for_autocomplete( $t_matching_entries ); }