| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 # MantisConnect - A webservice interface to Mantis Bug Tracker 3 # Copyright (C) 2004-2011 Victor Boctor - vboctor@users.sourceforge.net 4 # This program is distributed under dual licensing. These include 5 # GPL and a commercial licenses. Victor Boctor reserves the right to 6 # change the license of future releases. 7 # See docs/ folder for more details 8 9 /** 10 * Get the value for the specified user preference. 11 * 12 * @param string $p_username The user's username 13 * @param string $p_password The user's password 14 * @param int $p_project_id Project ID (0 = ALL_PROJECTS (mantisbt/core/constant_inc.php)) 15 * @param string $p_pref_name The name of the preference 16 * @return string $t_user_pref The requested preference value 17 */ 18 function mc_user_pref_get_pref( $p_username, $p_password, $p_project_id, $p_pref_name ) { 19 $t_user_id = mci_check_login( $p_username, $p_password ); 20 if ( $t_user_id === false ) { 21 return mci_soap_fault_login_failed(); 22 } 23 24 if ( !mci_has_readonly_access( $t_user_id ) ) { 25 return mci_soap_fault_access_denied( $t_user_id ); 26 } 27 28 return user_pref_get_pref( $t_user_id, $p_pref_name, $p_project_id ); 29 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |