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 =
'experimental';
68 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
72 $this->picto =
'zapier.png';
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);
131 $this->warnings_activation = array();
132 $this->warnings_activation_ext = array();
139 $this->
const = array(
147 if (!isset(
$conf->zapier) || !isset(
$conf->zapier->enabled)) {
149 $conf->zapier->enabled = 0;
152 $this->tabs = array();
180 $this->dictionaries = array();
184 $this->boxes = array(
195 $this->cronjobs = array(
217 $this->rights = array();
221 $this->rights[$r][0] = $this->numero + $r;
223 $this->rights[$r][1] =
'Read myobject of Zapier';
225 $this->rights[$r][3] = 0;
227 $this->rights[$r][4] =
'read';
229 $this->rights[$r][5] =
'';
231 $this->rights[$r][0] = $this->numero + $r;
232 $this->rights[$r][1] =
'Create/Update myobject of Zapier';
233 $this->rights[$r][3] = 0;
234 $this->rights[$r][4] =
'write';
235 $this->rights[$r][5] =
'';
237 $this->rights[$r][0] = $this->numero + $r;
238 $this->rights[$r][1] =
'Delete myobject of Zapier';
239 $this->rights[$r][3] = 0;
240 $this->rights[$r][4] =
'delete';
241 $this->rights[$r][5] =
'';
244 $this->menu = array();