dolibarr  7.0.0-beta
modSkype.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2013 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
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  global $langs,$conf;
41 
42  $this->db = $db;
43  $this->numero = 3100;
44 
45  // Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
46  // It is used to group modules in module setup page
47  $this->family = "crm";
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 = "Enable Skype links into contacts";
51  // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
52  $this->version = 'dolibarr';
53  // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
54  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
55  // Where to store the module in setup page (0=common,1=interface,2=others,3=very specific)
56  $this->special = 1;
57  // Name of image file used for this module.
58  $this->picto='skype';
59 
60  // Data directories to create when module is enabled
61  $this->dirs = array();
62 
63  // Config pages
64  //-------------
65  $this->config_page_url = array();
66 
67  // Dependancies
68  //-------------
69  $this->hidden = ! empty($conf->global->MODULE_SKYPE_DISABLED); // A condition to disable module
70  $this->depends = array('modSociete'); // List of modules id that must be enabled if this module is enabled
71  $this->requiredby = array(); // List of modules id to disable if this one is disabled
72  $this->conflictwith = array(); // List of modules id this module is in conflict with
73  $this->langfiles = array();
74 
75  // Constants
76  //-----------
77 
78 
79  // New pages on tabs
80  // -----------------
81  $this->tabs = array();
82 
83  // Boxes
84  //------
85  $this->boxes = array();
86 
87  // Main menu entries
88  //------------------
89  $this->menu = array();
90  }
91 }
Class DolibarrModules.
Class to describe a Cron module.
</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.
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition: repair.php:104