dolibarr 20.0.2
modGeoIPMaxmind.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
26include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php';
27
28
33{
39 public function __construct($db)
40 {
41 $this->db = $db;
42 $this->numero = 2900;
43
44 // Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
45 // It is used to group modules in module setup page
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 // Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
50 $this->description = "GeoIP Maxmind conversions capabilities";
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 // If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue'
57 // If file is in module/images directory, use this->picto=DOL_URL_ROOT.'/module/images/file.png'
58 $this->picto = 'geoip';
59
60 // Data directories to create when module is enabled
61 $this->dirs = array("/geoipmaxmind");
62
63 // Config pages
64 $this->config_page_url = array("geoipmaxmind.php");
65
66 // Dependencies
67 $this->hidden = false; // A condition to hide module
68 $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled
69 $this->requiredby = array(); // List of module ids to disable if this one is disabled
70 $this->conflictwith = array(); // List of module class names as string this module is in conflict with
71 $this->phpmin = array(7, 0);
72 $this->phpmax = array();
73 $this->need_dolibarr_version = array(2, 7, -1); // Minimum version of Dolibarr required by module
74 $this->need_javascript_ajax = 1;
75
76 // Constants
77 $this->const = array();
78
79 // Boxes
80 $this->boxes = array();
81
82 // Permissions
83 $this->rights = array();
84 $this->rights_class = 'geoipmaxmind';
85 $r = 0;
86 }
87}
Class DolibarrModules.
Class to describe and enable module Import.
__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