dolibarr  13.0.2
modClickToDial.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2005-2008 Laurent Destailleur <eldy@users.sourceforge.org>
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 <https://www.gnu.org/licenses/>.
17  */
18 
27 include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
28 
29 
34 {
35 
41  public function __construct($db)
42  {
43  $this->db = $db;
44  $this->numero = 58;
45 
46  $this->family = "interface";
47  // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
48  $this->name = preg_replace('/^mod/i', '', get_class($this));
49  $this->description = "Gestion du Click To Dial";
50 
51  $this->version = 'dolibarr'; // 'development' or 'experimental' or 'dolibarr' or version
52 
53  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
54  $this->picto = 'phoning';
55 
56  // Data directories to create when module is enabled
57  $this->dirs = array();
58 
59  // Dependencies
60  $this->depends = array();
61  $this->requiredby = array();
62 
63  // Config pages
64  $this->config_page_url = array("clicktodial.php");
65 
66  // Constants
67  $this->const = array();
68 
69  // Boxes
70  $this->boxes = array();
71 
72  // Permissions
73  $this->rights = array();
74  $this->rights_class = 'clicktodial';
75  }
76 }
Class DolibarrModules.
</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
Class to describe and enable module Click to Dial.
__construct($db)
Constructor.