| [ 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 function mci_account_get_array_by_id( $p_user_id ) { 10 $t_result = array(); 11 $t_result['id'] = $p_user_id; 12 13 if( user_exists( $p_user_id ) ) { 14 $t_result['name'] = user_get_field( $p_user_id, 'username' ); 15 $t_dummy = user_get_field( $p_user_id, 'realname' ); 16 17 if( !empty( $t_dummy ) ) { 18 $t_result['real_name'] = $t_dummy; 19 } 20 21 $t_dummy = user_get_field( $p_user_id, 'email' ); 22 23 if( !empty( $t_dummy ) ) { 24 $t_result['email'] = $t_dummy; 25 } 26 } 27 return $t_result; 28 } 29 30 function mci_account_get_array_by_ids ( $p_user_ids ) { 31 32 $t_result = array(); 33 34 foreach ( $p_user_ids as $t_user_id ) { 35 $t_result[] = mci_account_get_array_by_id( $t_user_id ); 36 } 37 38 return $t_result; 39 }
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 |