28 require_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
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)) {
155 $conf->zapier =
new stdClass();
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] = 1;
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] = 1;
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] = 1;
247 $this->rights[$r][4] =
'delete';
248 $this->rights[$r][5] =
'';
251 $this->menu = array();
263 public function init($options =
'')
265 $result = $this->
_load_tables(
'/install/mysql/',
'zapier');
281 return $this->
_init($sql, $options);
292 public function remove($options =
'')
295 return $this->
_remove($sql, $options);
_init($array_sql, $options='')
Enables a module.
_remove($array_sql, $options='')
Disable function.
_load_tables($reldir, $onlywithsuffix='')
Create tables and keys required by module:
Description and activation class for module Zapier.
__construct($db)
Constructor.
init($options='')
Function called when module is enabled.
print *****$script_file(".$version.") pid cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.