47 $this->family =
"technic";
49 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
53 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
54 $this->picto =
'barcode';
57 $this->dirs = array(
"/barcode/temp");
60 $this->depends = array();
61 $this->requiredby = array();
64 $this->config_page_url = array(
"barcode.php");
71 0 => array(
'BARCODE_USE_ON_PRODUCT',
'chaine',
'1',
'Constant to activate barcode for products', 0)
75 $this->boxes = array();
78 $this->rights = array();
79 $this->rights_class =
'barcode';
82 $this->rights[$r][0] = 301;
83 $this->rights[$r][1] =
'Generate PDF sheets of barcodes';
84 $this->rights[$r][2] =
'r';
85 $this->rights[$r][3] = 0;
86 $this->rights[$r][4] =
'read';
89 $this->rights[$r][0] = 304;
90 $this->rights[$r][1] =
'Read barcodes';
91 $this->rights[$r][2] =
'r';
92 $this->rights[$r][3] = 0;
93 $this->rights[$r][4] =
'lire_advance';
96 $this->rights[$r][0] = 305;
97 $this->rights[$r][1] =
'Create/modify barcodes';
98 $this->rights[$r][2] =
'w';
99 $this->rights[$r][3] = 0;
100 $this->rights[$r][4] =
'creer_advance';
107 $this->menu[$r] = array(
108 'fk_menu'=>
'fk_mainmenu=tools',
110 'leftmenu'=>
'barcodeprint',
112 'titre'=>
'BarCodePrintsheet',
113 'prefix' => img_picto(
'', $this->picto,
'class="paddingright pictofixedwidth"'),
114 'url'=>
'/barcode/printsheet.php?mainmenu=tools&leftmenu=barcodeprint',
117 'enabled'=>
'isModEnabled("barcode")',
118 'perms'=>
'$user->hasRight("barcode", "read")',
125 $this->menu[$r] = array(
126 'fk_menu'=>
'fk_mainmenu=home,fk_leftmenu=admintools',
128 'titre'=>
'MassBarcodeInit',
129 'url'=>
'/barcode/codeinit.php?mainmenu=home&leftmenu=admintools',
132 'enabled'=>
'isModEnabled("barcode") && preg_match(\'/^(admintools|all)/\', $leftmenu)',
133 'perms'=>
'$user->admin',