29include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
52 $this->rights_class =
'ai';
56 $this->family =
"technic";
59 $this->module_position =
'50';
64 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
69 $this->descriptionlong =
"AiDescriptionLong";
72 $this->version =
'experimental';
75 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
81 $this->picto =
'fa-magic';
84 $this->module_parts = array(
120 'moduleforexternal' => 0,
125 $this->dirs = array(
"/ai/temp");
128 $this->config_page_url = array(
"setup.php@ai");
132 $this->hidden =
false;
134 $this->depends = array();
135 $this->requiredby = array();
136 $this->conflictwith = array();
139 $this->langfiles = array(
"ai");
142 $this->phpmin = array(7, 0);
145 $this->warnings_activation = array();
146 $this->warnings_activation_ext = array();
155 $this->
const = array();
163 if (!isset(
$conf->ai) || !isset(
$conf->ai->enabled)) {
165 $conf->ai->enabled = 0;
169 $this->tabs = array();
197 $this->dictionaries = array();
226 $this->boxes = array(
237 $this->cronjobs = array(
259 $this->rights = array();
266 $this->menu = array();
353 public function init($options =
'')
355 global
$conf, $langs;
372 $this->
remove($options);
378 $myTmpObjects = array();
379 $myTmpObjects[
'Availabilities'] = array(
'includerefgeneration' => 0,
'includedocgeneration' => 0);
407 return $this->
_init($sql, $options);
418 public function remove($options =
'')
421 return $this->
_remove($sql, $options);
_init($array_sql, $options='')
Enables a module.
_remove($array_sql, $options='')
Disable function.
Description and activation class for module Ai.
__construct($db)
Constructor.
init($options='')
Function called when module is enabled.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1)
Clean a string to use it as a file name.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
$conf db name
Only used if Module[ID]Name translation string is not found.