29include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
49 $this->numero = 68305;
52 $this->rights_class =
'webhook';
56 $this->family =
"interface";
59 $this->module_position =
'90';
64 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
69 $this->descriptionlong =
"Interface to catch dolibarr triggers and send data of the event to an external URL";
72 $this->version =
'dolibarr';
77 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
83 $this->picto =
'webhook';
86 $this->module_parts = array(
122 'moduleforexternal' => 0,
127 $this->dirs = array(
"/webhook/temp");
130 $this->config_page_url = array(
"webhook.php");
134 $this->hidden =
false;
136 $this->depends = array();
137 $this->requiredby = array();
138 $this->conflictwith = array();
141 $this->langfiles = array();
144 $this->phpmin = array(7, 0);
145 $this->need_dolibarr_version = array(11, -3);
148 $this->warnings_activation = array();
149 $this->warnings_activation_ext = array();
157 $this->
const = array();
165 if (!isset(
$conf->webhook) || !isset(
$conf->webhook->enabled)) {
167 $conf->webhook->enabled = 0;
171 $this->tabs = array();
199 $this->dictionaries = array();
226 $this->boxes = array(
237 $this->cronjobs = array(
259 $this->rights = array();
266 $this->menu = array();
277 public function init($options =
'')
279 $result = $this->
_load_tables(
'/install/mysql/',
'webhook');
286 $this->
remove($options);
290 return $this->
_init($sql, $options);
301 public function remove($options =
'')
304 return $this->
_remove($sql, $options);
_init($array_sql, $options='')
Enables a module.
_remove($array_sql, $options='')
Disable function.
_load_tables($reldir, $onlywithsuffix='')
Create tables and keys required by module:
Description and activation class for module Webhook.
__construct($db)
Constructor.
init($options='')
Function called when module is enabled.
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.