27 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
45 $this->family =
"technic";
46 $this->module_position =
'75';
48 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
51 $this->version =
'development';
52 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
53 $this->picto =
'generic';
56 $this->dirs = array(
"/label/temp");
59 $this->hidden =
false;
60 $this->depends = array();
61 $this->requiredby = array();
62 $this->conflictwith = array();
63 $this->phpmin = array(7, 0);
69 $this->
const = array();
72 $this->boxes = array();
75 $this->rights = array();
76 $this->rights_class =
'label';
78 $this->rights[1][0] = 601;
79 $this->rights[1][1] =
'Read stickers';
80 $this->rights[1][3] = 0;
81 $this->rights[1][4] =
'lire';
83 $this->rights[2][0] = 602;
84 $this->rights[2][1] =
'Create/modify stickers';
85 $this->rights[2][3] = 0;
86 $this->rights[2][4] =
'creer';
88 $this->rights[4][0] = 609;
89 $this->rights[4][1] =
'Delete stickers';
90 $this->rights[4][3] = 0;
91 $this->rights[4][4] =
'supprimer';
102 public function init($options =
'')
105 $this->
remove($options);
_init($array_sql, $options='')
Enables a module.
Class to describe and enable module Label.
__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.
$conf db name
Only used if Module[ID]Name translation string is not found.