dolibarr  16.0.5
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 
27 include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
28 
29 
34 {
35 
41  public function __construct($db)
42  {
43  $this->db = $db;
44  $this->numero = 240;
45 
46  $this->family = "technic";
47  $this->module_position = '72';
48  // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
49  $this->name = preg_replace('/^mod/i', '', get_class($this));
50  $this->description = "Outils d'exports de donnees Dolibarr (via un assistant)";
51  // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
52  $this->version = 'dolibarr';
53  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
54  $this->picto = 'technic';
55 
56  // Data directories to create when module is enabled
57  $this->dirs = array("/export/temp");
58 
59  // Config pages
60  $this->config_page_url = array("export.php");
61 
62  // Dependencies
63  $this->depends = array();
64  $this->requiredby = array();
65  $this->phpmin = array(4, 2, 0);
66  $this->phpmax = array();
67 
68  // Constants
69  $this->const = array();
70 
71  // Boxes
72  $this->boxes = array();
73 
74  // Permissions
75  $this->rights = array();
76  $this->rights_class = 'export';
77  $r = 0;
78 
79  $r++;
80  $this->rights[$r][0] = 1201;
81  $this->rights[$r][1] = 'Read exports';
82  $this->rights[$r][2] = 'r';
83  $this->rights[$r][3] = 0;
84  $this->rights[$r][4] = 'lire';
85 
86  $r++;
87  $this->rights[$r][0] = 1202;
88  $this->rights[$r][1] = 'Creeate/modify export';
89  $this->rights[$r][2] = 'w';
90  $this->rights[$r][3] = 0;
91  $this->rights[$r][4] = 'creer';
92 
93 
94  // Menus
95  //-------
96  $this->menu = 1; // This module add menu entries. They are coded into menu manager.
97  }
98 }
db
$conf db
API class for accounts.
Definition: inc.php:41
description
print *****$script_file(".$version.") pid cd cd cd description as description
Definition: email_expire_services_to_customers.php:83
modExport
Class to describe and enable module export.
Definition: modExport.class.php:33
name
$conf db name
Definition: repair.php:122
modExport\__construct
__construct($db)
Constructor.
Definition: modExport.class.php:41
DolibarrModules
Class DolibarrModules.
Definition: DolibarrModules.class.php:37