| [ 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 custom field id given an object ref. The id is set based on the following algorithm: 11 * - id from objectref (if not zero). 12 * - id corresponding to name in object ref. 13 * - 0, if object ref doesn't contain an id or a name. 14 * 15 * @param ObjectRef $p_object_ref An associate array with "id" and "name" keys. 16 */ 17 function mci_get_custom_field_id_from_objectref( $p_object_ref ) { 18 if( (int) $p_object_ref['id'] != 0 ) { 19 $t_id = (int) $p_object_ref['id']; 20 } else { 21 if( !is_blank( $p_object_ref['name'] ) ) { 22 $t_id = custom_field_get_id_from_name( $p_object_ref['name'] ); 23 } else { 24 $t_id = 0; 25 } 26 } 27 28 return $t_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 |