29 include_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);
421 public function remove($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.
if(isModEnabled('invoice') && $user->hasRight('facture', 'lire')) if((isModEnabled('fournisseur') &&!getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD') && $user->hasRight("fournisseur", "facture", "lire"))||(isModEnabled('supplier_invoice') && $user->hasRight("supplier_invoice", "lire"))) if(isModEnabled('don') && $user->hasRight('don', 'lire')) if(isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) if(isModEnabled('invoice') &&isModEnabled('order') && $user->hasRight("commande", "lire") &&!getDolGlobalString('WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER')) $sql
Social contributions to pay.
print *****$script_file(".$version.") pid 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.
$conf db name
Only used if Module[ID]Name translation string is not found.