dolibarr  13.0.2
modIntracommreport.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
4  * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
5  * Copyright (C) 2019 Open-DSI <support@open-dsi.fr>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
26 include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
27 
28 
33 {
39  public function __construct($db)
40  {
41  global $conf, $langs;
42 
43  $this->db = $db;
44  $this->numero = 68000;
45 
46  $this->family = "financial";
47  $this->module_position = '100';
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 = "Intracomm report management (Support for French DEB/DES format)";
51 
52  // Possible values for version are: 'development', 'experimental', 'dolibarr' or 'dolibarr_deprecated' or version
53  $this->version = 'development';
54 
55  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
56  $this->picto = 'intracommreport';
57 
58  // Data directories to create when module is enabled
59  $this->dirs = array('/intracommreport/temp');
60 
61  // Config pages
62  $this->config_page_url = array("intracommreport.php@intracommreport");
63 
64  // Dependencies
65  $this->depends = array("modFacture", "modTax", "modCategorie"); // List of modules id that must be enabled if this module is enabled
66  $this->requiredby = array(); // List of modules id to disable if this one is disabled
67  $this->conflictwith = array(); // List of modules id this module is in conflict with
68  $this->phpmin = array(5, 6); // Minimum version of PHP required by module
69  $this->need_dolibarr_version = array(13, 0, -5); // Minimum version of Dolibarr required by module
70  $this->langfiles = array("intracommreport");
71 
72  // Constants
73  // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 'current' or 'allentities', deleteonunactive)
74  // Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',1),
75  // 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0, 'current', 1)
76  // );
77  $this->const = array();
78 
79  // Tabs
80  $this->tabs = array();
81 
82  // Css
83  $this->module_parts = array();
84 
85  // Boxes
86  $this->boxes = array();
87 
88  // Dictionaries
89  if (!isset($conf->intracommreport->enabled))
90  {
91  $conf->intracommreport = new stdClass();
92  $conf->intracommreport->enabled = 0;
93  }
94  $this->dictionaries = array();
95 
96  // Permissions
97  $this->rights = array();
98  $this->rights_class = 'intracommreport';
99  $r = 0;
100 
101  $r++;
102  $this->rights[$r][0] = 68001;
103  $this->rights[$r][1] = 'Read intracomm report';
104  $this->rights[$r][2] = 'r';
105  $this->rights[$r][3] = 0;
106  $this->rights[$r][4] = 'read';
107 
108  $r++;
109  $this->rights[$r][0] = 68002;
110  $this->rights[$r][1] = 'Create/modify intracomm report';
111  $this->rights[$r][2] = 'w';
112  $this->rights[$r][3] = 0;
113  $this->rights[$r][4] = 'write';
114 
115  $r++;
116  $this->rights[$r][0] = 68004;
117  $this->rights[$r][1] = 'Delete intracomm report';
118  $this->rights[$r][2] = 'd';
119  $this->rights[$r][3] = 0;
120  $this->rights[$r][4] = 'delete';
121 
122  // Main menu entries
123  $this->menu = array(); // List of menus to add
124  $r = 0;
125 
126  // Exports
127  $r = 1;
128  }
129 }
Class DolibarrModules.
__construct($db)
Constructor.
Description and activation class for module intracommreport.
</td > param sortfield sortorder printFieldListOption< tdclass="liste_titremaxwidthsearchright"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration center DesiredStock p desiredstock right StockLimitShort p seuil_stock_alerte right stock_physique right stock_real_warehouse right Ordered right StockToBuy right SupplierRef right param sortfield sortorder printFieldListTitle warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow StockTooLow help help help< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"> stock</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:750
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition: repair.php:108
$conf db
API class for accounts.
Definition: inc.php:54