dolibarr 19.0.3
modAgenda.class.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2003,2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3 * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
4 * Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
5 * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
6 * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
7 * Copyright (C) 2009-2011 Regis Houssin <regis.houssin@inodbox.com>
8 * Copyright (C) 2013 Cedric Gross <c.gross@kreiz-it.fr>
9 * Copyright (C) 2015 Bahfir Abbes <bafbes@gmail.com>
10 * Copyright (C) 2017 Juanjo Menent <jmenent@2byte.es>
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <https://www.gnu.org/licenses/>.
24 */
25
33include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
34
39{
45 public function __construct($db)
46 {
47 global $conf, $user;
48
49 $this->db = $db;
50 $this->numero = 2400;
51
52 $this->family = "projects";
53 $this->module_position = '16';
54 // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
55 $this->name = preg_replace('/^mod/i', '', get_class($this));
56 $this->description = "Follow events or rendez-vous. Record manual events into Agendas or let application record automatic events for log tracking.";
57 // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
58 $this->version = 'dolibarr';
59 // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
60 $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
61 $this->picto = 'action';
62
63 // Data directories to create when module is enabled
64 $this->dirs = array("/agenda/temp");
65
66 // Config pages
67 $this->config_page_url = array("agenda_other.php");
68
69 // Dependencies
70 $this->hidden = false; // A condition to hide module
71 $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled
72 $this->requiredby = array(); // List of module ids to disable if this one is disabled
73 $this->conflictwith = array(); // List of module class names as string this module is in conflict with
74 $this->langfiles = array("companies");
75 $this->phpmin = array(7, 0); // Minimum version of PHP required by module
76
77 // Module parts
78 $this->module_parts = array();
79
80 // Constants
81 //-----------
82 // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 'current' or 'allentities', deleteonunactive)
83 // Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',1),
84 // 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0, 'current', 1)
85 // );
86 $this->const = array();
87 //$this->const[] = array('AGENDA_DEFAULT_FILTER_TYPE', 'chaine', 'AC_NON_AUTO', 'Default filter for type of event on agenda', 0, 'current');
88 $sqlreadactions = "SELECT code, label, description FROM ".MAIN_DB_PREFIX."c_action_trigger ORDER by rang";
89 $resql = $this->db->query($sqlreadactions);
90 if ($resql) {
91 while ($obj = $this->db->fetch_object($resql)) {
92 //if (preg_match('/_CREATE$/',$obj->code) && (! in_array($obj->code, array('COMPANY_CREATE','PRODUCT_CREATE','TASK_CREATE')))) continue; // We don't track such events (*_CREATE) by default, we prefer validation (except thirdparty/product/task creation because there is no validation).
93 if (preg_match('/^TASK_/', $obj->code)) {
94 continue; // We don't track such events by default.
95 }
96 //if (preg_match('/^_MODIFY/',$obj->code)) continue; // We don't track such events by default.
97 $this->const[] = array('MAIN_AGENDA_ACTIONAUTO_'.$obj->code, "chaine", "1", '', 0, 'current');
98 }
99 } else {
100 dol_print_error($this->db->lasterror());
101 }
102
103 // New pages on tabs
104 // -----------------
105 $this->tabs = array();
106
107 // Boxes
108 //------
109 $this->boxes = array(
110 0=>array('file'=>'box_actions.php', 'enabledbydefaulton'=>'Home'),
111 1=>array('file'=>'box_actions_future.php', 'enabledbydefaulton'=>'Home')
112 );
113
114 // Cronjobs
115 //------------
116 $datestart = dol_now();
117 $this->cronjobs = array(
118 0=>array('label'=>'SendEmailsReminders', 'jobtype'=>'method', 'class'=>'comm/action/class/actioncomm.class.php', 'objectname'=>'ActionComm', 'method'=>'sendEmailsReminder', 'parameters'=>'', 'comment'=>'SendEMailsReminder', 'frequency'=>5, 'unitfrequency'=>60, 'priority'=>10, 'status'=>1, 'test'=>'isModEnabled("agenda")', 'datestart'=>$datestart),
119 );
120
121 // Permissions
122 //------------
123 $this->rights = array();
124 $this->rights_class = 'agenda';
125 $r = 0;
126
127 // $this->rights[$r][0] Id permission (unique tous modules confondus)
128 // $this->rights[$r][1] Libelle par defaut si traduction de cle "PermissionXXX" non trouvee (XXX = Id permission)
129 // $this->rights[$r][2] Non utilise
130 // $this->rights[$r][3] 1=Permis par defaut, 0=Non permis par defaut
131 // $this->rights[$r][4] Niveau 1 pour nommer permission dans code
132 // $this->rights[$r][5] Niveau 2 pour nommer permission dans code
133 // $r++;
134
135 $this->rights[$r][0] = 2401;
136 $this->rights[$r][1] = 'Read actions/tasks linked to his account';
137 $this->rights[$r][2] = 'r';
138 $this->rights[$r][3] = 0;
139 $this->rights[$r][4] = 'myactions';
140 $this->rights[$r][5] = 'read';
141 $r++;
142
143 $this->rights[$r][0] = 2402;
144 $this->rights[$r][1] = 'Create/modify actions/tasks linked to his account';
145 $this->rights[$r][2] = 'w';
146 $this->rights[$r][3] = 0;
147 $this->rights[$r][4] = 'myactions';
148 $this->rights[$r][5] = 'create';
149 $r++;
150
151 $this->rights[$r][0] = 2403;
152 $this->rights[$r][1] = 'Delete actions/tasks linked to his account';
153 $this->rights[$r][2] = 'w';
154 $this->rights[$r][3] = 0;
155 $this->rights[$r][4] = 'myactions';
156 $this->rights[$r][5] = 'delete';
157 $r++;
158
159 $this->rights[$r][0] = 2411;
160 $this->rights[$r][1] = 'Read actions/tasks of others';
161 $this->rights[$r][2] = 'r';
162 $this->rights[$r][3] = 0;
163 $this->rights[$r][4] = 'allactions';
164 $this->rights[$r][5] = 'read';
165 $r++;
166
167 $this->rights[$r][0] = 2412;
168 $this->rights[$r][1] = 'Create/modify actions/tasks of others';
169 $this->rights[$r][2] = 'w';
170 $this->rights[$r][3] = 0;
171 $this->rights[$r][4] = 'allactions';
172 $this->rights[$r][5] = 'create';
173 $r++;
174
175 $this->rights[$r][0] = 2413;
176 $this->rights[$r][1] = 'Delete actions/tasks of others';
177 $this->rights[$r][2] = 'w';
178 $this->rights[$r][3] = 0;
179 $this->rights[$r][4] = 'allactions';
180 $this->rights[$r][5] = 'delete';
181 $r++;
182
183 $this->rights[$r][0] = 2414;
184 $this->rights[$r][1] = 'Export actions/tasks of others';
185 $this->rights[$r][2] = 'w';
186 $this->rights[$r][3] = 0;
187 $this->rights[$r][4] = 'export';
188
189 // Main menu entries
190 $this->menu = array(); // List of menus to add
191 $r = 0;
192
193 // Add here entries to declare new menus
194 // Example to declare the Top Menu entry:
195 // $this->menu[$r]=array( 'fk_menu'=>0, // Put 0 if this is a top menu
196 // 'type'=>'top', // This is a Top menu entry
197 // 'titre'=>'MyModule top menu',
198 // 'mainmenu'=>'mymodule',
199 // 'url'=>'/mymodule/pagetop.php',
200 // 'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
201 // 'position'=>100,
202 // 'enabled'=>'1', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled.
203 // 'perms'=>'1', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
204 // 'target'=>'',
205 // 'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
206 // $r++;
207 $this->menu[$r] = array(
208 'fk_menu'=>0,
209 'type'=>'top',
210 'titre'=>'TMenuAgenda',
211 'prefix' => img_picto('', $this->picto, 'class="pictofixedwidth"'),
212 'mainmenu'=>'agenda',
213 'url'=>'/comm/action/index.php',
214 'langs'=>'agenda',
215 'position'=>86,
216 'perms'=>'$user->hasRight("agenda", "myactions", "read") || $user->hasRight("resource", "read")',
217 'enabled'=>'isModEnabled("agenda") || isModEnabled("resource")',
218 'target'=>'',
219 'user'=>2,
220 );
221 $r++;
222
223 $this->menu[$r] = array(
224 'fk_menu'=>'r=0',
225 'type'=>'left',
226 'titre'=>'Actions',
227 'prefix' => img_picto('', $this->picto, 'class="paddingright pictofixedwidth"'),
228 'mainmenu'=>'agenda',
229 'url'=>'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda',
230 'langs'=>'agenda',
231 'position'=>100,
232 'perms'=>'$user->hasRight("agenda", "myactions", "read")',
233 'enabled'=>'isModEnabled("agenda")',
234 'target'=>'',
235 'user'=>2,
236 );
237 $r++;
238 $this->menu[$r] = array(
239 'fk_menu'=>'r=1',
240 'type'=>'left',
241 'titre'=>'NewAction',
242 'mainmenu'=>'agenda',
243 'url'=>'/comm/action/card.php?mainmenu=agenda&amp;leftmenu=agenda&amp;action=create',
244 'langs'=>'commercial',
245 'position'=>101,
246 'perms'=>'($user->hasRight("agenda", "myactions", "create") || $user->hasRight("agenda", "allactions", "create"))',
247 'enabled'=>'isModEnabled("agenda")',
248 'target'=>'',
249 'user'=>2
250 );
251 $r++;
252 // Calendar
253 $this->menu[$r] = array(
254 'fk_menu'=>'r=1',
255 'type'=>'left',
256 'titre'=>'Calendar',
257 'mainmenu'=>'agenda',
258 'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda',
259 'langs'=>'agenda',
260 'position'=>140,
261 'perms'=>'$user->hasRight("agenda", "myactions", "read")',
262 'enabled'=>'isModEnabled("agenda")',
263 'target'=>'',
264 'user'=>2
265 );
266 $r++;
267 $this->menu[$r] = array(
268 'fk_menu'=>'r=3',
269 'type'=>'left',
270 'titre'=>'MenuToDoMyActions',
271 'mainmenu'=>'agenda',
272 'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine',
273 'langs'=>'agenda',
274 'position'=>141,
275 'perms'=>'$user->hasRight("agenda", "myactions", "read")',
276 'enabled'=>'isModEnabled("agenda")',
277 'target'=>'',
278 'user'=>2
279 );
280 $r++;
281 $this->menu[$r] = array(
282 'fk_menu'=>'r=3',
283 'type'=>'left',
284 'titre'=>'MenuDoneMyActions',
285 'mainmenu'=>'agenda',
286 'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine',
287 'langs'=>'agenda',
288 'position'=>142,
289 'perms'=>'$user->hasRight("agenda", "myactions", "read")',
290 'enabled'=>'isModEnabled("agenda")',
291 'target'=>'',
292 'user'=>2
293 );
294 $r++;
295 $this->menu[$r] = array(
296 'fk_menu'=>'r=3',
297 'type'=>'left',
298 'titre'=>'MenuToDoActions',
299 'mainmenu'=>'agenda',
300 'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filtert=-1',
301 'langs'=>'agenda',
302 'position'=>143,
303 'perms'=>'$user->hasRight("agenda", "allactions", "read")',
304 'enabled'=>'isModEnabled("agenda")',
305 'target'=>'',
306 'user'=>2
307 );
308 $r++;
309 $this->menu[$r] = array(
310 'fk_menu'=>'r=3',
311 'type'=>'left',
312 'titre'=>'MenuDoneActions',
313 'mainmenu'=>'agenda',
314 'url'=>'/comm/action/index.php?action=default&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filtert=-1',
315 'langs'=>'agenda',
316 'position'=>144,
317 'perms'=>'$user->hasRight("agenda", "allactions", "read")',
318 'enabled'=>'isModEnabled("agenda")',
319 'target'=>'',
320 'user'=>2
321 );
322
323 // List
324 $r++;
325 $this->menu[$r] = array(
326 'fk_menu'=>'r=1',
327 'type'=>'left',
328 'titre'=>'List',
329 'mainmenu'=>'agenda',
330 'url'=>'/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda',
331 'langs'=>'agenda',
332 'position'=>110,
333 'perms'=>'$user->hasRight("agenda", "myactions", "read")',
334 'enabled'=>'isModEnabled("agenda")',
335 'target'=>'',
336 'user'=>2
337 );
338 $r++;
339 $this->menu[$r] = array(
340 'fk_menu'=>'r=8',
341 'type'=>'left',
342 'titre'=>'MenuToDoMyActions',
343 'mainmenu'=>'agenda',
344 'url'=>'/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine',
345 'langs'=>'agenda',
346 'position'=>111,
347 'perms'=>'$user->hasRight("agenda", "myactions", "read")',
348 'enabled'=>'isModEnabled("agenda")',
349 'target'=>'',
350 'user'=>2
351 );
352 $r++;
353 $this->menu[$r] = array(
354 'fk_menu'=>'r=8',
355 'type'=>'left',
356 'titre'=>'MenuDoneMyActions',
357 'mainmenu'=>'agenda',
358 'url'=>'/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine',
359 'langs'=>'agenda',
360 'position'=>112,
361 'perms'=>'$user->hasRight("agenda", "myactions", "read")',
362 'enabled'=>'isModEnabled("agenda")',
363 'target'=>'',
364 'user'=>2
365 );
366 $r++;
367 $this->menu[$r] = array(
368 'fk_menu'=>'r=8',
369 'type'=>'left',
370 'titre'=>'MenuToDoActions',
371 'mainmenu'=>'agenda',
372 'url'=>'/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filtert=-1',
373 'langs'=>'agenda',
374 'position'=>113,
375 'perms'=>'$user->hasRight("agenda", "allactions", "read")',
376 'enabled'=>'isModEnabled("agenda")',
377 'target'=>'',
378 'user'=>2
379 );
380 $r++;
381 $this->menu[$r] = array(
382 'fk_menu'=>'r=8',
383 'type'=>'left',
384 'titre'=>'MenuDoneActions',
385 'mainmenu'=>'agenda',
386 'url'=>'/comm/action/list.php?mode=show_list&amp;mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filtert=-1',
387 'langs'=>'agenda',
388 'position'=>114,
389 'perms'=>'$user->hasRight("agenda", "allactions", "read")',
390 'enabled'=>'isModEnabled("agenda")',
391 'target'=>'',
392 'user'=>2
393 );
394 $r++;
395 // Reports
396 $this->menu[$r] = array(
397 'fk_menu'=>'r=1',
398 'type'=>'left',
399 'titre'=>'Reportings',
400 'mainmenu'=>'agenda',
401 'url'=>'/comm/action/rapport/index.php?mainmenu=agenda&amp;leftmenu=agenda',
402 'langs'=>'agenda',
403 'position'=>160,
404 'perms'=>'$user->hasRight("agenda", "allactions", "read")',
405 'enabled'=>'isModEnabled("agenda")',
406 'target'=>'',
407 'user'=>2
408 );
409 $r++;
410 // Categories
411 $this->menu[$r] = array(
412 'fk_menu' => 'r=1',
413 'type' => 'left',
414 'titre' => 'Categories',
415 'mainmenu' => 'agenda',
416 'url'=>'/categories/index.php?mainmenu=agenda&amp;leftmenu=agenda&type=10',
417 'langs' => 'agenda',
418 'position' => 170,
419 'perms' => '$user->hasRight("agenda", "allactions", "read")',
420 'enabled' => 'isModEnabled("categorie")',
421 'target' => '',
422 'user' => 2
423 );
424 $r++;
425
426
427 // Exports
428 //--------
429 $r = 0;
430
431 $r++;
432 $this->export_code[$r] = $this->rights_class.'_'.$r;
433 $this->export_label[$r] = "ExportDataset_event1";
434 $this->export_permission[$r] = array(array("agenda", "export"));
435 $this->export_fields_array[$r] = array('ac.id'=>"IdAgenda", 'ac.ref_ext'=>"ExternalRef", 'ac.datec'=>"DateCreation", 'ac.datep'=>"DateActionBegin",
436 'ac.datep2'=>"DateActionEnd", 'ac.label'=>"Title", 'ac.note'=>"Note", 'ac.percent'=>"Percent", 'ac.durationp'=>"Duration",
437 'cac.libelle'=>"ActionType",
438 's.rowid'=>"IdCompany", 's.nom'=>'CompanyName', 's.address'=>'Address', 's.zip'=>'Zip', 's.town'=>'Town',
439 'co.code'=>'CountryCode', 's.phone'=>'Phone', 's.siren'=>'ProfId1', 's.siret'=>'ProfId2', 's.ape'=>'ProfId3', 's.idprof4'=>'ProfId4', 's.idprof5'=>'ProfId5', 's.idprof6'=>'ProfId6',
440 's.code_compta'=>'CustomerAccountancyCode', 's.code_compta_fournisseur'=>'SupplierAccountancyCode', 's.tva_intra'=>'VATIntra',
441 'p.ref' => 'ProjectRef',
442 );
443 $this->export_TypeFields_array[$r] = array('ac.ref_ext'=>"Text", 'ac.datec'=>"Date", 'ac.datep'=>"Date",
444 'ac.datep2'=>"Date", 'ac.label'=>"Text", 'ac.note'=>"Text", 'ac.percent'=>"Numeric",
445 'ac.durationp'=>"Duree",
446 'cac.libelle'=>"List:c_actioncomm:libelle:libelle",
447 's.nom'=>'Text', 's.address'=>'Text', 's.zip'=>'Text', 's.town'=>'Text',
448 'co.code'=>'Text', 's.phone'=>'Text', 's.siren'=>'Text', 's.siret'=>'Text', 's.ape'=>'Text', 's.idprof4'=>'Text', 's.idprof5'=>'Text', 's.idprof6'=>'Text',
449 's.code_compta'=>'Text', 's.code_compta_fournisseur'=>'Text', 's.tva_intra'=>'Text',
450 'p.ref' => 'Text',
451 );
452 $this->export_entities_array[$r] = array('ac.id'=>"action", 'ac.ref_ext'=>"action", 'ac.datec'=>"action", 'ac.datep'=>"action",
453 'ac.datep2'=>"action", 'ac.label'=>"action", 'ac.note'=>"action", 'ac.percent'=>"action", 'ac.durationp'=>"action",
454 'cac.libelle'=>"action",
455 's.rowid'=>"company", 's.nom'=>'company', 's.address'=>'company', 's.zip'=>'company', 's.town'=>'company',
456 'co.code'=>'company', 's.phone'=>'company', 's.siren'=>'company', 's.siret'=>'company', 's.ape'=>'company', 's.idprof4'=>'company', 's.idprof5'=>'company', 's.idprof6'=>'company',
457 's.code_compta'=>'company', 's.code_compta_fournisseur'=>'company', 's.tva_intra'=>'company',
458 'p.ref' => 'project',
459 );
460
461 $keyforselect = 'actioncomm';
462 $keyforelement = 'action';
463 $keyforaliasextra = 'extra';
464 include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
465
466 $this->export_sql_start[$r] = 'SELECT DISTINCT ';
467 $this->export_sql_end[$r] = ' FROM '.MAIN_DB_PREFIX.'actioncomm as ac';
468 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'actioncomm_extrafields as extra ON ac.id = extra.fk_object';
469 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_actioncomm as cac on ac.fk_action = cac.id';
470 if (!empty($user) && !$user->hasRight('agenda', 'allactions', 'read')) {
471 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'actioncomm_resources acr on ac.id = acr.fk_actioncomm';
472 }
473 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'socpeople as sp on ac.fk_contact = sp.rowid';
474 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'societe as s on ac.fk_soc = s.rowid';
475 if (!empty($user) && !$user->hasRight('societe', 'client', 'voir')) {
476 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'societe_commerciaux as sc ON sc.fk_soc = s.rowid';
477 }
478 $this->export_sql_end[$r] .= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_country as co on s.fk_pays = co.rowid';
479 $this->export_sql_end[$r] .= " LEFT JOIN ".MAIN_DB_PREFIX."projet as p ON p.rowid = ac.fk_project";
480 $this->export_sql_end[$r] .= ' WHERE ac.entity IN ('.getEntity('agenda').')';
481 if (!empty($user) && !$user->hasRight('societe', 'client', 'voir')) {
482 $this->export_sql_end[$r] .= ' AND (sc.fk_user = '.(empty($user) ? 0 : $user->id).' OR ac.fk_soc IS NULL)';
483 }
484 if (!empty($user) && !$user->hasRight('agenda', 'allactions', 'read')) {
485 $this->export_sql_end[$r] .= ' AND acr.fk_element = '.(empty($user) ? 0 : $user->id);
486 }
487 $this->export_sql_order[$r] = ' ORDER BY ac.datep';
488 }
489}
Class DolibarrModules.
Class to describe and enable/disable module Agenda.
__construct($db)
Constructor.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
dol_now($mode='auto')
Return date for now.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:124