48 $this->numero = 68305;
51 $this->rights_class =
'webhook';
55 $this->family =
"interface";
58 $this->module_position =
'90';
63 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
68 $this->descriptionlong =
"Interface to catch dolibarr triggers and send data of the event to an external URL";
71 $this->version =
'dolibarr';
76 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
82 $this->picto =
'webhook';
85 $this->module_parts = array(
121 'moduleforexternal' => 0,
126 $this->dirs = array(
"/webhook/temp");
129 $this->config_page_url = array(
"webhook.php");
133 $this->hidden =
false;
135 $this->depends = array();
136 $this->requiredby = array();
137 $this->conflictwith = array();
140 $this->langfiles = array();
143 $this->phpmin = array(7, 0);
144 $this->need_dolibarr_version = array(11, -3);
147 $this->warnings_activation = array();
148 $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();
263 $this->rights[$r][0] = $this->numero . sprintf(
"%02d", $r + 1);
264 $this->rights[$r][1] =
'Read Webhooks';
265 $this->rights[$r][4] =
'webhook_target';
266 $this->rights[$r][5] =
'read';
268 $this->rights[$r][0] = $this->numero . sprintf(
"%02d", $r + 1);
269 $this->rights[$r][1] =
'Create/Update Webhooks';
270 $this->rights[$r][4] =
'webhook_target';
271 $this->rights[$r][5] =
'write';
273 $this->rights[$r][0] = $this->numero . sprintf(
"%02d", $r + 1);
274 $this->rights[$r][1] =
'Delete Webhooks';
275 $this->rights[$r][4] =
'webhook_target';
276 $this->rights[$r][5] =
'delete';
281 $this->menu = array();