dolibarr  16.0.5
modWebServices.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2009 Laurent Destailleur <eldy@users.sourceforge.net>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <https://www.gnu.org/licenses/>.
16  */
17 
25 include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
26 
31 {
32 
38  public function __construct($db)
39  {
40  $this->db = $db;
41  $this->numero = 2600;
42 
43  $this->family = "interface";
44  $this->module_position = '25';
45  // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
46  $this->name = preg_replace('/^mod/i', '', get_class($this));
47  $this->description = "Enable the Dolibarr web services server";
48  // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
49  $this->version = 'dolibarr';
50  // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
51  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
52  // Name of image file used for this module.
53  $this->picto = 'technic';
54 
55  // Data directories to create when module is enabled
56  $this->dirs = array();
57 
58  // Config pages
59  $this->config_page_url = array("index.php@webservices");
60 
61  // Dependencies
62  $this->hidden = false; // A condition to hide module
63  $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled
64  $this->requiredby = array(); // List of module ids to disable if this one is disabled
65  $this->conflictwith = array(); // List of module class names as string this module is in conflict with
66  $this->phpmin = array(5, 6); // Minimum version of PHP required by module
67  $this->langfiles = array("other");
68 
69  // Constants
70  $this->const = array();
71 
72  // New pages on tabs
73  $this->tabs = array();
74 
75  // Boxes
76  $this->boxes = array();
77 
78  // Permissions
79  $this->rights = array();
80  $this->rights_class = 'webservices';
81  $r = 0;
82  }
83 }
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
name
$conf db name
Definition: repair.php:122
modWebServices
Class to describe a WebServices module.
Definition: modWebServices.class.php:30
modWebServices\__construct
__construct($db)
Constructor.
Definition: modWebServices.class.php:38
DolibarrModules
Class DolibarrModules.
Definition: DolibarrModules.class.php:37