30include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
53 $this->rights_class =
'ai';
57 $this->family =
"technic";
60 $this->module_position =
'50';
65 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
70 $this->descriptionlong =
"AiDescriptionLong";
73 $this->version =
'dolibarr';
76 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
82 $this->picto =
'fa-magic';
85 $this->module_parts = array(
121 'moduleforexternal' => 0,
126 $this->dirs = array(
"/ai/temp");
129 $this->config_page_url = array(
"setup.php@ai");
133 $this->hidden =
false;
135 $this->depends = array();
136 $this->requiredby = array();
137 $this->conflictwith = array();
140 $this->langfiles = array(
"ai");
143 $this->phpmin = array(7, 0);
146 $this->warnings_activation = array();
147 $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();
277 $this->rights[$r][0] = $this->numero + 1;
278 $this->rights[$r][1] =
'Use the AI Assistant';
279 $this->rights[$r][3] = 0;
280 $this->rights[$r][4] =
'assistant';
281 $this->rights[$r][5] =
'use';
286 $this->menu = array();
373 public function init($options =
'')
383 $this->
remove($options);
387 return $this->
_init($sql, $options);
398 public function remove($options =
'')
401 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 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.
$conf db name
Only used if Module[ID]Name translation string is not found.