dolibarr 21.0.0-alpha
modSocialNetworks.class.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2013 Alexandre Spangaro <aspangaro@open-dsi.fr>
3 * Copyright (C) 2014 Laurent Destailleur <eldy@users.sourceforge.net>
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
26include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
27
32{
38 public function __construct($db)
39 {
40 $this->db = $db;
41 $this->numero = 3400;
42
43 // Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
44 // It is used to group modules in module setup page
45 $this->family = "interface";
46 // Module position in the family on 2 digits ('01', '10', '20', ...)
47 $this->module_position = '20';
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 Social Networks fields into third parties and addresses (skype, twitter, facebook, ...)";
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 // Name of image file used for this module.
56 $this->picto = 'share-alt';
57
58 // Data directories to create when module is enabled
59 $this->dirs = array();
60
61 // Config pages
62 $this->config_page_url = array(DOL_URL_ROOT.'/admin/dict.php?id=38&from=socialnetworksetup');
63
64 // Dependencies
65 $this->hidden = getDolGlobalInt('MODULE_SOCIALNETWORKS_DISABLED'); // A condition to hide module
66 $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled
67 $this->requiredby = array(); // List of module ids to disable if this one is disabled
68 $this->conflictwith = array(); // List of module class names as string this module is in conflict with
69 $this->phpmin = array(7, 0); // Minimum version of PHP required by module
70 $this->langfiles = array();
71
72 // Constants
73
74
75 // New pages on tabs
76 $this->tabs = array();
77
78 // Boxes
79 $this->boxes = array();
80
81 // Main menu entries
82 $this->menu = array();
83 }
84}
Class DolibarrModules.
Class to describe a SocialNetworks module.
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.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:140