45 $this->numero = 64000;
48 $this->family =
"interface";
49 $this->module_position =
'52';
51 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
53 $this->
description =
"Enable Direct Printing System.";
54 $this->version =
'dolibarr';
55 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
59 $this->picto =
'printer';
62 $this->dirs = array();
65 $this->config_page_url = array(
"printing.php@printing");
68 $this->hidden =
false;
69 $this->depends = array();
70 $this->requiredby = array();
71 $this->conflictwith = array();
72 $this->phpmin = array(7, 0);
73 $this->need_dolibarr_version = array(3, 7, -2);
74 $this->conflictwith = array();
75 $this->langfiles = array(
"printing");
78 $this->
const = array();
81 $this->boxes = array();
84 $this->rights = array();
85 $this->rights_class =
'printing';
96 $this->rights[$r][0] = 64001;
97 $this->rights[$r][1] =
'DirectPrint';
98 $this->rights[$r][2] =
'r';
99 $this->rights[$r][3] = 0;
100 $this->rights[$r][4] =
'read';
103 $this->menu = array();
107 $this->menu[$r] = array(
'fk_menu'=>
'fk_mainmenu=home,fk_leftmenu=admintools',
109 'titre'=>
'MenuDirectPrinting',
110 'url'=>
'/printing/index.php?mainmenu=home&leftmenu=admintools',
113 'enabled'=>
'$conf->printing->enabled && preg_match(\'/^(admintools|all)/\', $leftmenu)',
114 'perms'=>
'$user->rights->printing->read',