ryxeo-glpi-git / inc / relation.constant.php @ b67d8923
Historique | Voir | Annoter | Télécharger (11,3 ko)
1 | b67d8923 | Eric Seigne | <?php
|
---|---|---|---|
2 | /*
|
||
3 | * @version $Id: relation.constant.php 7763 2009-01-06 18:44:50Z moyo $
|
||
4 | -------------------------------------------------------------------------
|
||
5 | GLPI - Gestionnaire Libre de Parc Informatique
|
||
6 | Copyright (C) 2003-2009 by the INDEPNET Development Team.
|
||
7 | |||
8 | http://indepnet.net/ http://glpi-project.org
|
||
9 | -------------------------------------------------------------------------
|
||
10 | |||
11 | LICENSE
|
||
12 | |||
13 | This file is part of GLPI.
|
||
14 | |||
15 | GLPI is free software; you can redistribute it and/or modify
|
||
16 | it under the terms of the GNU General Public License as published by
|
||
17 | the Free Software Foundation; either version 2 of the License, or
|
||
18 | (at your option) any later version.
|
||
19 | |||
20 | GLPI is distributed in the hope that it will be useful,
|
||
21 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
23 | GNU General Public License for more details.
|
||
24 | |||
25 | You should have received a copy of the GNU General Public License
|
||
26 | along with GLPI; if not, write to the Free Software
|
||
27 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
28 | --------------------------------------------------------------------------
|
||
29 | */
|
||
30 | |||
31 | |||
32 | if (!defined('GLPI_ROOT')){ |
||
33 | die("Sorry. You can't access directly to this file"); |
||
34 | } |
||
35 | |||
36 | // _ before the link table name => no clean cache on this relation
|
||
37 | |||
38 | $RELATION=array( |
||
39 | |||
40 | "glpi_auth_ldap" => array("glpi_config"=>"extra_ldap_server", |
||
41 | "glpi_auth_ldap_replicate"=>"server_id"), |
||
42 | |||
43 | "glpi_cartridges_type" => array("glpi_cartridges"=>"FK_glpi_cartridges_type", |
||
44 | "glpi_cartridges_assoc"=>"FK_glpi_cartridges_type"), |
||
45 | |||
46 | "glpi_computers" => array("glpi_computer_device"=>"FK_computers", |
||
47 | "glpi_connect_wire"=>"end2", |
||
48 | "glpi_inst_software"=>"cID", |
||
49 | "glpi_licenses"=>"oem_computer", |
||
50 | "glpi_ocs_link"=>"glpi_id", |
||
51 | "glpi_registry"=>"computer_id"), |
||
52 | |||
53 | "glpi_consumables_type" => array("glpi_consumables"=>"FK_glpi_consumables_type"), |
||
54 | |||
55 | "glpi_contacts" => array("glpi_contact_enterprise"=>"FK_contact"), |
||
56 | |||
57 | "glpi_contracts" => array("glpi_contract_device"=>"FK_contract", |
||
58 | "glpi_contract_enterprise"=>"FK_contract"), |
||
59 | |||
60 | "glpi_docs" => array("glpi_doc_device"=>"FK_doc"), |
||
61 | |||
62 | "glpi_dropdown_auto_update" => array("glpi_computers"=>"auto_update"), |
||
63 | |||
64 | "glpi_dropdown_budget" => array("glpi_infocoms"=>"budget"), |
||
65 | |||
66 | "glpi_dropdown_cartridge_type" => array("glpi_cartridges_type"=>"type"), |
||
67 | |||
68 | "glpi_dropdown_case_type" => array("glpi_device_case"=>"type"), |
||
69 | |||
70 | "glpi_dropdown_consumable_type" =>array("glpi_consumables_type"=>"type"), |
||
71 | |||
72 | "glpi_dropdown_contact_type"=>array("glpi_contacts"=>"type"), |
||
73 | |||
74 | "glpi_dropdown_contract_type" =>array("glpi_contracts"=>"contract_type"), |
||
75 | |||
76 | "glpi_dropdown_domain" => array("glpi_computers"=>"domain", |
||
77 | "glpi_printers"=>"domain", |
||
78 | "glpi_networking"=>"domain"), |
||
79 | |||
80 | "glpi_dropdown_enttype" =>array("glpi_enterprises"=>"type"), |
||
81 | |||
82 | "glpi_dropdown_firmware" =>array("glpi_networking"=>"firmware"), |
||
83 | |||
84 | "glpi_dropdown_iface" =>array("glpi_networking_ports"=>"iface"), |
||
85 | |||
86 | "glpi_dropdown_interface" =>array("glpi_device_hdd"=>"interface", |
||
87 | "glpi_device_drive"=>"interface", |
||
88 | "glpi_device_control"=>"interface"), |
||
89 | |||
90 | "glpi_dropdown_kbcategories" =>array("glpi_dropdown_kbcategories"=>"parentID", |
||
91 | "glpi_kbitems" =>"categoryID"), |
||
92 | |||
93 | "glpi_dropdown_locations" =>array( |
||
94 | "glpi_cartridges_type"=>"location", |
||
95 | "glpi_consumables_type"=>"location", |
||
96 | "glpi_computers"=>"location", |
||
97 | "glpi_dropdown_netpoint"=>"location", |
||
98 | "glpi_dropdown_locations"=>"parentID", |
||
99 | "glpi_monitors"=>"location", |
||
100 | "glpi_printers"=>"location", |
||
101 | "glpi_networking"=>"location", |
||
102 | "glpi_peripherals"=>"location", |
||
103 | "glpi_phones"=>"location", |
||
104 | "glpi_software"=>"location", |
||
105 | "glpi_users"=>"location", |
||
106 | ), |
||
107 | |||
108 | "glpi_dropdown_manufacturer" =>array("glpi_cartridges_type"=>"FK_glpi_enterprise", |
||
109 | "glpi_computers"=>"FK_glpi_enterprise", |
||
110 | "glpi_consumables_type"=>"FK_glpi_enterprise", |
||
111 | "glpi_device_case"=>"FK_glpi_enterprise", |
||
112 | "glpi_device_control"=>"FK_glpi_enterprise", |
||
113 | "glpi_device_drive"=>"FK_glpi_enterprise", |
||
114 | "glpi_device_gfxcard"=>"FK_glpi_enterprise", |
||
115 | "glpi_device_hdd"=>"FK_glpi_enterprise", |
||
116 | "glpi_device_iface"=>"FK_glpi_enterprise", |
||
117 | "glpi_device_moboard"=>"FK_glpi_enterprise", |
||
118 | "glpi_device_pci"=>"FK_glpi_enterprise", |
||
119 | "glpi_device_power"=>"FK_glpi_enterprise", |
||
120 | "glpi_device_processor"=>"FK_glpi_enterprise", |
||
121 | "glpi_device_ram"=>"FK_glpi_enterprise", |
||
122 | "glpi_device_sndcard"=>"FK_glpi_enterprise", |
||
123 | "glpi_monitors"=>"FK_glpi_enterprise", |
||
124 | "glpi_networking"=>"FK_glpi_enterprise", |
||
125 | "glpi_peripherals"=>"FK_glpi_enterprise", |
||
126 | "glpi_phones"=>"FK_glpi_enterprise", |
||
127 | "glpi_printers"=>"FK_glpi_enterprise", |
||
128 | "glpi_software"=>"FK_glpi_enterprise", |
||
129 | "glpi_rule_cache_model_computer"=>"manufacturer", |
||
130 | "glpi_rule_cache_model_monitor"=>"manufacturer", |
||
131 | "glpi_rule_cache_model_networking"=>"manufacturer", |
||
132 | "glpi_rule_cache_model_peripheral"=>"manufacturer", |
||
133 | "glpi_rule_cache_model_phone"=>"manufacturer", |
||
134 | "glpi_rule_cache_model_printer"=>"manufacturer", |
||
135 | "glpi_rule_cache_software"=>array("manufacturer","new_manufacturer"), |
||
136 | ), |
||
137 | |||
138 | "glpi_dropdown_model" =>array("glpi_computers"=>"model"), |
||
139 | |||
140 | "glpi_dropdown_model_monitors" =>array("glpi_monitors"=>"model"), |
||
141 | |||
142 | "glpi_dropdown_model_networking" =>array("glpi_networking"=>"model"), |
||
143 | |||
144 | "glpi_dropdown_model_peripherals" =>array("glpi_peripherals"=>"model"), |
||
145 | |||
146 | "glpi_dropdown_model_phones" =>array("glpi_phones"=>"model"), |
||
147 | |||
148 | "glpi_dropdown_model_printers" =>array("glpi_printers"=>"model", |
||
149 | "glpi_cartridges_assoc" =>"FK_glpi_dropdown_model_printers"), |
||
150 | |||
151 | "glpi_dropdown_netpoint" =>array("glpi_networking_ports"=>"netpoint"), |
||
152 | |||
153 | "glpi_dropdown_network" =>array("glpi_computers"=>"network", |
||
154 | "glpi_printers"=>"network", |
||
155 | "glpi_networking"=>"network",), |
||
156 | |||
157 | "glpi_dropdown_os" =>array("glpi_computers"=>"os", |
||
158 | "glpi_software"=>"platform"), |
||
159 | |||
160 | "glpi_dropdown_os_sp" =>array("glpi_computers"=>"os_sp"), |
||
161 | |||
162 | "glpi_dropdown_os_version" =>array("glpi_computers"=>"os_version"), |
||
163 | |||
164 | "glpi_dropdown_phone_power" =>array("glpi_phones"=>"power"), |
||
165 | |||
166 | "glpi_dropdown_ram_type" =>array("glpi_device_ram"=>"type"), |
||
167 | |||
168 | "glpi_dropdown_rubdocs" =>array("glpi_config"=>"default_rubdoc_tracking", |
||
169 | "glpi_docs"=>"rubrique"), |
||
170 | |||
171 | "glpi_dropdown_software_category" =>array("glpi_software"=>"category", |
||
172 | "glpi_config"=>"category_on_software_delete",), |
||
173 | |||
174 | "glpi_dropdown_state" =>array("glpi_computers"=>"state", |
||
175 | "glpi_monitors"=>"state", |
||
176 | "glpi_networking"=>"state", |
||
177 | "glpi_peripherals"=>"state", |
||
178 | "glpi_phones"=>"state", |
||
179 | "glpi_printers"=>"state", |
||
180 | "glpi_software"=>"state", |
||
181 | ), |
||
182 | |||
183 | "glpi_dropdown_tracking_category" =>array("glpi_tracking"=>"category"), |
||
184 | |||
185 | "glpi_dropdown_vlan" =>array("glpi_networking_vlan"=>"FK_vlan"), |
||
186 | |||
187 | "glpi_enterprises" =>array("glpi_contact_enterprise"=>"FK_enterprise", |
||
188 | "glpi_contract_enterprise"=>"FK_enterprise", |
||
189 | "glpi_infocoms" =>"FK_enterprise", |
||
190 | "glpi_tracking"=>"assign_ent", |
||
191 | ), |
||
192 | "glpi_entities" => array("glpi_bookmark"=>"FK_entities", |
||
193 | "glpi_cartridges_type"=>"FK_entities", |
||
194 | "glpi_computers"=>"FK_entities", |
||
195 | "glpi_consumables_type"=>"FK_entities", |
||
196 | "glpi_contacts"=>"FK_entities", |
||
197 | "glpi_contracts"=>"FK_entities", |
||
198 | "glpi_docs"=>"FK_entities", |
||
199 | "glpi_dropdown_locations"=>"FK_entities", |
||
200 | "glpi_dropdown_netpoint"=>"FK_entities", |
||
201 | "glpi_enterprises"=>"FK_entities", |
||
202 | "glpi_entities"=>"parentID", |
||
203 | "_glpi_entities_data"=>"FK_entities", |
||
204 | "glpi_groups"=>"FK_entities", |
||
205 | "glpi_kbitems"=>"FK_entities", |
||
206 | "glpi_mailgate"=>"FK_entities", |
||
207 | "glpi_monitors"=>"FK_entities", |
||
208 | "glpi_networking"=>"FK_entities", |
||
209 | "glpi_peripherals"=>"FK_entities", |
||
210 | "glpi_phones"=>"FK_entities", |
||
211 | "glpi_printers"=>"FK_entities", |
||
212 | "glpi_reminder"=>"FK_entities", |
||
213 | "glpi_rules_descriptions"=>"FK_entities", |
||
214 | "glpi_software"=>"FK_entities", |
||
215 | "glpi_tracking"=>"FK_entities", |
||
216 | "glpi_users"=>"FK_entities", |
||
217 | "glpi_users_profiles"=>"FK_entities"), |
||
218 | "glpi_followups" =>array("glpi_tracking_planning"=>"id_followup"), |
||
219 | |||
220 | "glpi_groups" =>array("glpi_computers"=>"FK_groups", |
||
221 | "glpi_monitors"=>"FK_groups", |
||
222 | "glpi_networking"=>"FK_groups", |
||
223 | "glpi_peripherals"=>"FK_groups", |
||
224 | "glpi_phones"=>"FK_groups", |
||
225 | "glpi_printers"=>"FK_groups", |
||
226 | "glpi_software"=>"FK_groups", |
||
227 | "glpi_tracking"=>array("FK_group","assign_group"), |
||
228 | "glpi_users_groups"=>"FK_groups", |
||
229 | ), |
||
230 | |||
231 | "glpi_licenses" =>array("glpi_inst_software"=>"license"), |
||
232 | |||
233 | "glpi_links" =>array("glpi_links_device"=>"FK_links"), |
||
234 | |||
235 | "glpi_networking_ports"=>array("glpi_networking_vlan"=>"FK_port", |
||
236 | "glpi_networking_wire"=>array("end1","end2") |
||
237 | ), |
||
238 | |||
239 | "glpi_ocs_config" => array("glpi_ocs_link"=>"ocs_server_id"), |
||
240 | |||
241 | "glpi_printers" =>array("glpi_cartridges"=>"FK_glpi_printers"), |
||
242 | |||
243 | "glpi_profiles" =>array("glpi_users"=>"FK_profiles", |
||
244 | "glpi_users_profiles"=>"FK_profiles", |
||
245 | ), |
||
246 | |||
247 | "glpi_reservation_item" => array("glpi_reservation_resa"=>"id_item"), |
||
248 | |||
249 | "glpi_rules_descriptions" => array("glpi_rules_actions"=>"FK_rules", |
||
250 | "glpi_rules_criterias"=>"FK_rules", |
||
251 | "glpi_rule_cache_manufacturer"=>"rule_id", |
||
252 | "glpi_rule_cache_model_computer"=>"rule_id", |
||
253 | "glpi_rule_cache_model_monitor"=>"rule_id", |
||
254 | "glpi_rule_cache_model_printer"=>"rule_id", |
||
255 | "glpi_rule_cache_model_peripheral"=>"rule_id", |
||
256 | "glpi_rule_cache_model_phone"=>"rule_id", |
||
257 | "glpi_rule_cache_model_networking"=>"rule_id", |
||
258 | "glpi_rule_cache_type_computer"=>"rule_id", |
||
259 | "glpi_rule_cache_type_monitor"=>"rule_id", |
||
260 | "glpi_rule_cache_type_printer"=>"rule_id", |
||
261 | "glpi_rule_cache_type_peripheral"=>"rule_id", |
||
262 | "glpi_rule_cache_type_phone"=>"rule_id", |
||
263 | "glpi_rule_cache_type_networking"=>"rule_id", |
||
264 | "glpi_rule_cache_software"=>"rule_id", |
||
265 | "glpi_rule_cache_os"=>"rule_id", |
||
266 | "glpi_rule_cache_os_sp"=>"rule_id", |
||
267 | "glpi_rule_cache_os_version"=>"rule_id"), |
||
268 | "glpi_software" =>array("glpi_licenses"=>"sID", |
||
269 | "glpi_software"=>"update_software"), |
||
270 | |||
271 | "glpi_tracking" => array("_glpi_docs"=>"FK_tracking", |
||
272 | "glpi_followups"=>"tracking"), |
||
273 | |||
274 | "glpi_type_computers"=>array("glpi_computers"=>"type"), |
||
275 | |||
276 | "glpi_type_monitors"=>array("glpi_monitors"=>"type"), |
||
277 | |||
278 | "glpi_type_docs"=>array("glpi_monitors"=>"type"), |
||
279 | |||
280 | "glpi_type_networking"=>array("glpi_networking"=>"type"), |
||
281 | |||
282 | "glpi_type_peripherals"=>array("glpi_peripherals"=>"type"), |
||
283 | |||
284 | "glpi_type_phones"=>array("glpi_phones"=>"type"), |
||
285 | |||
286 | "glpi_type_printers"=>array("glpi_printers"=>"type"), |
||
287 | |||
288 | "glpi_users"=> array("glpi_bookmark"=>"FK_users", |
||
289 | "glpi_cartridges_type"=>"tech_num", |
||
290 | "glpi_computers"=>array("tech_num","FK_users"), |
||
291 | "glpi_consumables"=>"id_user", |
||
292 | "glpi_consumables_type"=>"tech_num", |
||
293 | "glpi_display"=>"FK_users", |
||
294 | "glpi_docs"=>"FK_users", |
||
295 | "glpi_followups"=>"author", |
||
296 | "glpi_groups"=>"FK_users", |
||
297 | "glpi_kbitems"=>"author", |
||
298 | "glpi_monitors"=>array("tech_num","FK_users"), |
||
299 | "glpi_networking"=>array("tech_num","FK_users"), |
||
300 | "glpi_peripherals"=>array("tech_num","FK_users"), |
||
301 | "glpi_phones"=>array("tech_num","FK_users"), |
||
302 | "glpi_printers"=>array("tech_num","FK_users"), |
||
303 | "glpi_reminder"=>"FK_users", |
||
304 | "glpi_reservation_resa"=>"id_user", |
||
305 | "glpi_software"=>array("tech_num","FK_users"), |
||
306 | "glpi_tracking"=>array("author","assign","recipient"), |
||
307 | "glpi_tracking_planning"=>"id_assign", |
||
308 | "glpi_users_groups"=>"FK_users", |
||
309 | "glpi_users_profiles"=>"FK_users", |
||
310 | |||
311 | ), |
||
312 | |||
313 | ); |