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();
184 $this->dictionaries = array();
210 $this->boxes = array(
221 $this->cronjobs = array(
243 $this->rights = array();
247 $this->rights[$r][0] = $this->numero + $r;
249 $this->rights[$r][1] =
'Read myobject of Zapier';
251 $this->rights[$r][3] = 1;
253 $this->rights[$r][4] =
'read';
255 $this->rights[$r][5] =
'';
257 $this->rights[$r][0] = $this->numero + $r;
258 $this->rights[$r][1] =
'Create/Update myobject of Zapier';
259 $this->rights[$r][3] = 1;
260 $this->rights[$r][4] =
'write';
261 $this->rights[$r][5] =
'';
263 $this->rights[$r][0] = $this->numero + $r;
264 $this->rights[$r][1] =
'Delete myobject of Zapier';
265 $this->rights[$r][3] = 1;
266 $this->rights[$r][4] =
'delete';
267 $this->rights[$r][5] =
'';
270 $this->menu = array();
329 public function init($options =
'')
332 if ($result < 0)
return -1;
343 return $this->
_init($sql, $options);
354 public function remove($options =
'')
357 return $this->
_remove($sql, $options);
</td > param sortfield sortorder printFieldListOption< tdclass="liste_titremaxwidthsearchright"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration center DesiredStock p desiredstock right StockLimitShort p seuil_stock_alerte right stock_physique right stock_real_warehouse right Ordered right StockToBuy right SupplierRef right param sortfield sortorder printFieldListTitle warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow StockTooLow help help help< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"> stock</td >< td >< inputtype="hidden"name="desc'.$i.'"value="'.dol_escape_htmltag($objp-> 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.
__construct($db)
Constructor.
_remove($array_sql, $options= '')
Disable function.
init($options= '')
Function called when module is enabled.
_init($array_sql, $options= '')
Enables a module.
Description and activation class for module Zapier.
_load_tables($reldir)
Create tables and keys required by module.