28include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
46 $this->family =
"technic";
47 $this->module_position =
'78';
49 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
50 $this->
description =
"Direct mail document generation";
52 $this->version =
'development';
54 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
55 $this->picto =
'email';
58 $this->dirs = array(
"/documentgeneration/temp");
64 $this->depends = array();
65 $this->requiredby = array();
66 $this->conflictwith = array();
67 $this->langfiles = array(
"orders",
"bills",
"companies",
"mails");
71 $this->
const = array();
74 $this->boxes = array();
77 $this->rights = array();
78 $this->rights_class =
'document';
82 $this->rights[$r][0] = 1521;
83 $this->rights[$r][1] =
'Lire les documents';
84 $this->rights[$r][2] =
'r';
85 $this->rights[$r][3] = 0;
86 $this->rights[$r][4] =
'lire';
89 $this->rights[$r][0] = 1522;
90 $this->rights[$r][1] =
'Supprimer les documents clients';
91 $this->rights[$r][2] =
'd';
92 $this->rights[$r][3] = 0;
93 $this->rights[$r][4] =
'supprimer';
105 public function init($options =
'')
110 $this->
remove($options);
114 return $this->
_init($sql, $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.
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.
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.