28 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
47 $this->family =
"technic";
48 $this->module_position =
'78';
50 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
51 $this->
description =
"Direct mail document generation";
53 $this->version =
'development';
55 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
56 $this->picto =
'email';
59 $this->dirs = array(
"/documentgeneration/temp");
65 $this->depends = array();
66 $this->requiredby = array();
67 $this->conflictwith = array();
68 $this->langfiles = array(
"orders",
"bills",
"companies",
"mails");
72 $this->
const = array();
75 $this->boxes = array();
78 $this->rights = array();
79 $this->rights_class =
'document';
83 $this->rights[$r][0] = 1521;
84 $this->rights[$r][1] =
'Lire les documents';
85 $this->rights[$r][2] =
'r';
86 $this->rights[$r][3] = 0;
87 $this->rights[$r][4] =
'lire';
90 $this->rights[$r][0] = 1522;
91 $this->rights[$r][1] =
'Supprimer les documents clients';
92 $this->rights[$r][2] =
'd';
93 $this->rights[$r][3] = 0;
94 $this->rights[$r][4] =
'supprimer';
106 public function init($options =
'')
111 $this->
remove($options);
_init($array_sql, $options='')
Enables a module.
Class to describe and enable module Document.
init($options='')
Function called when module is enabled.
__construct($db)
Constructor.
if(isModEnabled('facture') && $user->hasRight('facture', 'lire')) if((isModEnabled('fournisseur') &&empty($conf->global->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') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->hasRight("commande", "lire") &&empty($conf->global->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.
$conf db name
Only used if Module[ID]Name translation string is not found.