dolibarr  19.0.0-dev
modExport.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2005-2007 Laurent Destailleur <eldy@users.sourceforge.net>
3  * Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <https://www.gnu.org/licenses/>.
17  */
18 
28 include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
29 
30 
35 {
36 
42  public function __construct($db)
43  {
44  $this->db = $db;
45  $this->numero = 240;
46 
47  $this->family = "technic";
48  $this->module_position = '72';
49  // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
50  $this->name = preg_replace('/^mod/i', '', get_class($this));
51  $this->description = "Outils d'exports de donnees Dolibarr (via un assistant)";
52  // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
53  $this->version = 'dolibarr';
54  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
55  $this->picto = 'technic';
56 
57  // Data directories to create when module is enabled
58  $this->dirs = array("/export/temp");
59 
60  // Config pages
61  $this->config_page_url = array("export.php");
62 
63  // Dependencies
64  $this->depends = array();
65  $this->requiredby = array();
66  $this->phpmin = array(7, 0);
67  $this->phpmax = array();
68  $this->enabled_bydefault = true; // Will be enabled during install
69 
70  // Constants
71  $this->const = array();
72 
73  // Boxes
74  $this->boxes = array();
75 
76  // Permissions
77  $this->rights = array();
78  $this->rights_class = 'export';
79  $r = 0;
80 
81  $r++;
82  $this->rights[$r][0] = 1201;
83  $this->rights[$r][1] = 'Read exports';
84  $this->rights[$r][2] = 'r';
85  $this->rights[$r][3] = 0;
86  $this->rights[$r][4] = 'lire';
87 
88  $r++;
89  $this->rights[$r][0] = 1202;
90  $this->rights[$r][1] = 'Creeate/modify export';
91  $this->rights[$r][2] = 'w';
92  $this->rights[$r][3] = 0;
93  $this->rights[$r][4] = 'creer';
94 
95 
96  // Menus
97  //-------
98  $this->menu = 1; // This module add menu entries. They are coded into menu manager.
99  }
100 }
Class DolibarrModules.
Class to describe and enable module export.
__construct($db)
Constructor.
print *****$script_file(".$version.") pid cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition: repair.php:123