dolibarr  7.0.0-beta
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 <http://www.gnu.org/licenses/>.
16  */
17 
25 include_once DOL_DOCUMENT_ROOT .'/core/modules/DolibarrModules.class.php';
26 
31 {
32 
38  function __construct($db)
39  {
40  $this->db = $db;
41  $this->numero = 2600;
42 
43  $this->family = "technic";
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' or version
48  $this->version = 'dolibarr';
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  // Where to store the module in setup page (0=common,1=interface,2=others,3=very specific)
52  $this->special = 1;
53  // Name of image file used for this module.
54  $this->picto='technic';
55 
56  // Data directories to create when module is enabled
57  $this->dirs = array();
58 
59  // Config pages
60  //-------------
61  $this->config_page_url = array("index.php@webservices");
62 
63  // Dependancies
64  //-------------
65  $this->depends = array();
66  $this->requiredby = array();
67  //$this->phpmax = array(7,1); // Maximum version of PHP required by module
68  $this->langfiles = array("other");
69 
70  // Constants
71  //-----------
72  $this->const = array();
73 
74  // New pages on tabs
75  // -----------------
76  $this->tabs = array();
77 
78  // Boxes
79  //------
80  $this->boxes = array();
81 
82  // Permissions
83  //------------
84  $this->rights = array();
85  $this->rights_class = 'webservices';
86  $r=0;
87  }
88 }
Class DolibarrModules.
</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
__construct($db)
Constructor.
Class to describe a WebServices module.
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition: repair.php:104