dolibarr 20.0.0
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
25include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
26
31{
37 public function __construct($db)
38 {
39 $this->db = $db;
40 $this->numero = 2600;
41
42 $this->family = "interface";
43 $this->module_position = '25';
44 // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
45 $this->name = preg_replace('/^mod/i', '', get_class($this));
46 $this->description = "Enable the Dolibarr web services server";
47 // Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z'
48 $this->version = 'dolibarr_deprecated';
49 // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
50 $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
51 // Name of image file used for this module.
52 $this->picto = 'technic';
53
54 // Data directories to create when module is enabled
55 $this->dirs = array();
56
57 // Config pages
58 $this->config_page_url = array("index.php@webservices");
59
60 // Dependencies
61 $this->hidden = false; // A condition to hide module
62 $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled
63 $this->requiredby = array(); // List of module ids to disable if this one is disabled
64 $this->conflictwith = array(); // List of module class names as string this module is in conflict with
65 $this->phpmin = array(7, 0); // Minimum version of PHP required by module
66 $this->langfiles = array("other");
67
68 // Constants
69 $this->const = array();
70
71 // New pages on tabs
72 $this->tabs = array();
73
74 // Boxes
75 $this->boxes = array();
76
77 // Permissions
78 $this->rights = array();
79 $this->rights_class = 'webservices';
80 $r = 0;
81 }
82}
Class DolibarrModules.
Class to describe a WebServices module.
__construct($db)
Constructor.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after 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:140