[ Index ] |
|
Code source de Mantis 1.1.0rc3 |
1 <?php 2 # MantisConnect - A webservice interface to Mantis Bug Tracker 3 # Copyright (C) 2004-2007 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 # $Id: mc_custom_field_api.php,v 1.1 2007-07-18 06:52:52 vboctor Exp $ 11 # -------------------------------------------------------- 12 13 /** 14 * Get the custom field id given an object ref. The id is set based on the following algorithm: 15 * - id from objectref (if not zero). 16 * - id corresponding to name in object ref. 17 * - 0, if object ref doesn't contain an id or a name. 18 * 19 * @param ObjectRef $p_object_ref An associate array with "id" and "name" keys. 20 */ 21 function mci_get_custom_field_id_from_objectref( $p_object_ref ) { 22 if ( (int)$p_object_ref['id'] != 0 ) { 23 $t_id = (int)$p_object_ref['id']; 24 } else { 25 if ( !is_blank( $p_object_ref['name'] ) ) { 26 $t_id = custom_field_get_id_from_name( $p_object_ref['name'] ); 27 } else { 28 $t_id = 0; 29 } 30 } 31 32 return $t_id; 33 } 34 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |