26 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
45 $this->numero = 50330;
47 $this->rights_class =
'zapier';
50 $this->family =
"interface";
52 $this->module_position =
'26';
56 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
60 $this->descriptionlong =
"Zapier description (Long)";
62 $this->version =
'development';
66 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
70 $this->picto =
'zapier';
72 $this->module_parts = array(
106 'moduleforexternal' => 0,
110 $this->dirs = array(
"/zapier/temp");
112 $this->config_page_url = array(
117 $this->hidden =
false;
119 $this->depends = array(
'modApi');
121 $this->requiredby = array();
123 $this->conflictwith = array();
124 $this->langfiles = array(
"zapier");
128 $this->need_dolibarr_version = array(10, 0);
130 $this->warnings_activation = array();
132 $this->warnings_activation_ext = array();
144 $this->
const = array(
152 if (!isset($conf->zapier) || !isset($conf->zapier->enabled)) {
153 $conf->zapier =
new stdClass();
154 $conf->zapier->enabled = 0;
157 $this->tabs = array();
185 $this->dictionaries = array();
189 $this->boxes = array(
200 $this->cronjobs = array(
222 $this->rights = array();
226 $this->rights[$r][0] = $this->numero + $r;
228 $this->rights[$r][1] =
'Read myobject of Zapier';
230 $this->rights[$r][3] = 1;
232 $this->rights[$r][4] =
'read';
234 $this->rights[$r][5] =
'';
236 $this->rights[$r][0] = $this->numero + $r;
237 $this->rights[$r][1] =
'Create/Update myobject of Zapier';
238 $this->rights[$r][3] = 1;
239 $this->rights[$r][4] =
'write';
240 $this->rights[$r][5] =
'';
242 $this->rights[$r][0] = $this->numero + $r;
243 $this->rights[$r][1] =
'Delete myobject of Zapier';
244 $this->rights[$r][3] = 1;
245 $this->rights[$r][4] =
'delete';
246 $this->rights[$r][5] =
'';
249 $this->menu = array();
261 public function init($options =
'')
263 $result = $this->
_load_tables(
'/install/mysql/',
'zapier');
279 return $this->
_init($sql, $options);
290 public function remove($options =
'')
293 return $this->
_remove($sql, $options);