dolibarr  7.0.0-beta
modImport.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2005-2009 Laurent Destailleur <eldy@users.sourceforge.net>
3  * Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.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 <http://www.gnu.org/licenses/>.
17  */
18 
27 include_once DOL_DOCUMENT_ROOT .'/core/modules/DolibarrModules.class.php';
28 
29 
34 {
35 
41  function __construct($db)
42  {
43  $this->db = $db;
44  $this->numero = 250;
45 
46  $this->family = "technic";
47  $this->module_position = 70;
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'imports de donnees Dolibarr (via un assistant)";
51  // Possible values for version are: 'development', 'experimental', 'dolibarr' or 'dolibarr_deprecated' or version
52  $this->version = 'dolibarr';
53  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
54  $this->special = 0;
55  $this->picto = 'technic';
56 
57  // Data directories to create when module is enabled
58  $this->dirs = array("/import/temp");
59 
60  // Config pages
61  $this->config_page_url = array();
62 
63  // Dependencies
64  $this->depends = array();
65  $this->requiredby = array();
66  $this->phpmin = array(4,3,0); // Need auto_detect_line_endings php option to solve MAC pbs.
67  $this->phpmax = array();
68  $this->need_dolibarr_version = array(2,7,-1); // Minimum version of Dolibarr required by module
69  $this->need_javascript_ajax = 1;
70 
71  // Constants
72  $this->const = array();
73 
74  // Boxes
75  $this->boxes = array();
76 
77  // Permissions
78  $this->rights = array();
79  $this->rights_class = 'import';
80  $r=0;
81 
82  $r++;
83  $this->rights[$r][0] = 1251;
84  $this->rights[$r][1] = 'Run mass imports of external data (data load)';
85  $this->rights[$r][2] = 'r';
86  $this->rights[$r][3] = 0;
87  $this->rights[$r][4] = 'run';
88 
89 
90  // Menus
91  //-------
92  $this->menu = 1; // This module add menu entries. They are coded into menu manager.
93 
94  }
95 }
Class to describe and enable module Import.
Class DolibarrModules.
__construct($db)
Constructor.
</td >< tdclass="liste_titre"align="right"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow img yes disabled img no img no< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="'.$i.'"'.$disabled.'></td >< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"></td >< td >< inputtype="hidden"name="desc'.$i.'"value="'.dol_escape_htmltag($objp-> description
Only used if Module[ID]Desc translation string is not found.
Definition: replenish.php:554
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition: repair.php:104