47 $this->numero = 50330;
49 $this->rights_class =
'zapier';
52 $this->family =
"interface";
54 $this->module_position =
'26';
58 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
62 $this->descriptionlong =
"Zapier description (Long)";
64 $this->version =
'development';
68 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
72 $this->picto =
'zapier';
74 $this->module_parts = array(
108 'moduleforexternal' => 0,
112 $this->dirs = array(
"/zapier/temp");
114 $this->config_page_url = array(
119 $this->hidden =
false;
121 $this->depends = array(
'modApi');
123 $this->requiredby = array();
125 $this->conflictwith = array();
126 $this->langfiles = array(
"zapier");
130 $this->need_dolibarr_version = array(10, 0);
132 $this->warnings_activation = array();
134 $this->warnings_activation_ext = array();
146 $this->
const = array(
154 if (!isset(
$conf->zapier) || !isset(
$conf->zapier->enabled)) {
156 $conf->zapier->enabled = 0;
159 $this->tabs = array();
187 $this->dictionaries = array();
191 $this->boxes = array(
202 $this->cronjobs = array(
224 $this->rights = array();
228 $this->rights[$r][0] = $this->numero + $r;
230 $this->rights[$r][1] =
'Read myobject of Zapier';
232 $this->rights[$r][3] = 0;
234 $this->rights[$r][4] =
'read';
236 $this->rights[$r][5] =
'';
238 $this->rights[$r][0] = $this->numero + $r;
239 $this->rights[$r][1] =
'Create/Update myobject of Zapier';
240 $this->rights[$r][3] = 0;
241 $this->rights[$r][4] =
'write';
242 $this->rights[$r][5] =
'';
244 $this->rights[$r][0] = $this->numero + $r;
245 $this->rights[$r][1] =
'Delete myobject of Zapier';
246 $this->rights[$r][3] = 0;
247 $this->rights[$r][4] =
'delete';
248 $this->rights[$r][5] =
'';
251 $this->menu = array();