dolibarr  7.0.0-beta
modNotification.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2005-2007 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 <http://www.gnu.org/licenses/>.
17  */
18 
26 include_once DOL_DOCUMENT_ROOT .'/core/modules/DolibarrModules.class.php';
27 
32 {
33 
39  function __construct($db)
40  {
41  $this->db = $db;
42  $this->numero = 600;
43 
44  $this->family = "technic";
45  // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
46  $this->name = preg_replace('/^mod/i','',get_class($this));
47  $this->description = "EMail notifications (push) on business Dolibarr events";
48  $this->descriptionlong = 'Module600Long';
49  // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
50  $this->version = 'dolibarr';
51  $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
52  $this->special = 1;
53  $this->picto='email';
54 
55  // Data directories to create when module is enabled.
56  $this->dirs = array();
57 
58  // Dependencies
59  $this->depends = array();
60  $this->requiredby = array();
61  $this->langfiles = array("mails");
62 
63  // Config pages
64  $this->config_page_url = array("notification.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 = 'notification';
75  }
76 
77 
86  function init($options='')
87  {
88  // Permissions
89  $this->remove($options);
90 
91  $sql = array();
92 
93  return $this->_init($sql,$options);
94  }
95 }
Class DolibarrModules.
Class to describe and enable module Mailing.
</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
_init($array_sql, $options='')
Enables a module.
init($options='')
Function called when module is enabled.