47 $this->numero = 68305;
50 $this->rights_class =
'webhook';
54 $this->family =
"interface";
57 $this->module_position =
'90';
62 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
67 $this->descriptionlong =
"WebhookDescription";
70 $this->version =
'dolibarr';
75 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
81 $this->picto =
'webhook';
84 $this->module_parts = array(
120 'moduleforexternal' => 0,
125 $this->dirs = array(
"/webhook/temp");
128 $this->config_page_url = array(
"webhook.php");
132 $this->hidden =
false;
134 $this->depends = array();
135 $this->requiredby = array();
136 $this->conflictwith = array();
139 $this->langfiles = array();
142 $this->phpmin = array(7, 0);
143 $this->need_dolibarr_version = array(11, -3);
146 $this->warnings_activation = array();
147 $this->warnings_activation_ext = array();
156 $this->
const = array();
164 if (!isset($conf->webhook) || !isset($conf->webhook->enabled)) {
165 $conf->webhook =
new stdClass();
166 $conf->webhook->enabled = 0;
170 $this->tabs = array();
198 $this->dictionaries = array();
225 $this->boxes = array(
236 $this->cronjobs = array(
258 $this->rights = array();
262 $this->rights[$r][0] = $this->numero . sprintf(
"%02d", $r + 1);
263 $this->rights[$r][1] =
'Read Webhooks';
264 $this->rights[$r][4] =
'webhook_target';
265 $this->rights[$r][5] =
'read';
267 $this->rights[$r][0] = $this->numero . sprintf(
"%02d", $r + 1);
268 $this->rights[$r][1] =
'Create/Update Webhooks';
269 $this->rights[$r][4] =
'webhook_target';
270 $this->rights[$r][5] =
'write';
272 $this->rights[$r][0] = $this->numero . sprintf(
"%02d", $r + 1);
273 $this->rights[$r][1] =
'Delete Webhooks';
274 $this->rights[$r][4] =
'webhook_target';
275 $this->rights[$r][5] =
'delete';
280 $this->menu = array();