|
iTx Technologies offre gratuitement
|
||
[Vue sommaire] [Imprimer] [Vue textuelle]
1 <?php 2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 3 /** 4 * Table definition file for the project_relation table 5 * 6 * SugarCRM is a customer relationship management program developed by 7 * SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc. 8 * 9 * This program is free software; you can redistribute it and/or modify it under 10 * the terms of the GNU General Public License version 3 as published by the 11 * Free Software Foundation with the addition of the following permission added 12 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK 13 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY 14 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS. 15 * 16 * This program is distributed in the hope that it will be useful, but WITHOUT 17 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 18 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 19 * details. 20 * 21 * You should have received a copy of the GNU General Public License along with 22 * this program; if not, see http://www.gnu.org/licenses or write to the Free 23 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 24 * 02110-1301 USA. 25 * 26 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road, 27 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com. 28 * 29 * The interactive user interfaces in modified source and object code versions 30 * of this program must display Appropriate Legal Notices, as required under 31 * Section 5 of the GNU General Public License version 3. 32 * 33 * In accordance with Section 7(b) of the GNU General Public License version 3, 34 * these Appropriate Legal Notices must retain the display of the "Powered by 35 * SugarCRM" logo. If the display of the logo is not reasonably feasible for 36 * technical reasons, the Appropriate Legal Notices must display the words 37 * "Powered by SugarCRM". 38 */ 39 40 41 42 $dictionary['project_relation'] = array( 43 'table' => 'project_relation', 44 'fields' => array( 45 'id' => array( 46 'name' => 'id', 47 'vname' => 'LBL_ID', 48 'required' => true, 49 'type' => 'id', 50 ), 51 'project_id' => array( 52 'name' => 'project_id', 53 'vname' => 'LBL_PROJECT_ID', 54 'required' => true, 55 'type' => 'id', 56 ), 57 'relation_id' => array( 58 'name' => 'relation_id', 59 'vname' => 'LBL_PROJECT_NAME', 60 'required' => true, 61 'type' => 'id', 62 ), 63 'relation_type' => array( 64 'name' => 'relation_type', 65 'vname' => 'LBL_PROJECT_NAME', 66 'required' => true, 67 'type' => 'enum', 68 'options' => 'project_relation_type_options', 69 ), 70 'deleted' => array( 71 'name' => 'deleted', 72 'vname' => 'LBL_DELETED', 73 'type' => 'bool', 74 'required' => true, 75 'default' => '0', 76 ), 77 'date_modified' => array ( 78 'name' => 'date_modified', 79 'vname' => 'LBL_DATE_MODIFIED', 80 'type' => 'datetime', 81 'required'=>true, 82 ), 83 ), 84 'indices' => array( 85 array( 86 'name' =>'proj_rel_pk', 87 'type' =>'primary', 88 'fields'=>array('id') 89 ), 90 ), 91 92 'relationships' => 93 array ('projects_accounts' => array('lhs_module'=> 'Accounts', 'lhs_table'=> 'accounts', 'lhs_key' => 'id', 94 'rhs_module'=> 'Project', 'rhs_table'=> 'project', 'rhs_key' => 'id', 95 'relationship_type'=>'many-to-many', 96 'join_table'=> 'project_relation', 'join_key_lhs'=>'relation_id', 'join_key_rhs'=>'project_id', 97 'relationship_role_column'=>'relation_type','relationship_role_column_value'=>'Accounts'), 98 99 'projects_contacts' => array('lhs_module'=> 'Project', 'lhs_table'=> 'project', 'lhs_key' => 'id', 100 'rhs_module'=> 'Contacts', 'rhs_table'=> 'contacts', 'rhs_key' => 'id', 101 'relationship_type'=>'many-to-many', 102 'join_table'=> 'project_relation', 'join_key_lhs'=>'project_id', 'join_key_rhs'=>'relation_id', 103 'relationship_role_column'=>'relation_type','relationship_role_column_value'=>'Contacts'), 104 105 'projects_opportunities' => array('lhs_module'=> 'Project', 'lhs_table'=> 'project', 'lhs_key' => 'id', 106 'rhs_module'=> 'Opportunities', 'rhs_table'=> 'opportunities', 'rhs_key' => 'id', 107 'relationship_type'=>'many-to-many', 108 'join_table'=> 'project_relation', 'join_key_lhs'=>'project_id', 'join_key_rhs'=>'relation_id', 109 'relationship_role_column'=>'relation_type','relationship_role_column_value'=>'Opportunities'), 110 111 'projects_quotes' => array('lhs_module'=> 'Project', 'lhs_table'=> 'project', 'lhs_key' => 'id', 112 'rhs_module'=> 'Quotes', 'rhs_table'=> 'quotes', 'rhs_key' => 'id', 113 'relationship_type'=>'many-to-many', 114 'join_table'=> 'project_relation', 'join_key_lhs'=>'project_id', 'join_key_rhs'=>'relation_id', 115 'relationship_role_column'=>'relation_type','relationship_role_column_value'=>'Quotes'), 116 117 ), 118 ); 119 120 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
|
|
|
|