23 include_once DOL_DOCUMENT_ROOT .
"/core/modules/DolibarrModules.class.php";
43 $this->rights_class =
'hrm';
47 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
48 $this->
description =
"Management of employees carrier and feelings (department, employment contract)";
51 $this->version =
'development';
53 $this->const_name =
'MAIN_MODULE_' . strtoupper($this->
name);
57 $this->picto=
'generic';
60 $this->module_parts = array();
63 $this->dirs = array();
66 $this->config_page_url = array(
'admin_hrm.php@hrm');
69 $this->hidden =
false;
70 $this->depends = array();
71 $this->requiredby = array();
72 $this->conflictwith = array();
73 $this->phpmin = array(5,4);
74 $this->need_dolibarr_version = array (3,9);
75 $this->langfiles = array (
"hrm");
78 $this->dictionaries=array();
81 $this->
const = array ();
85 $this->boxes = array ();
88 $this->rights = array();
91 $this->rights[$r][0] = 4001;
92 $this->rights[$r][1] =
'See employees';
93 $this->rights[$r][3] = 0;
94 $this->rights[$r][4] =
'employee';
95 $this->rights[$r][5] =
'read';
98 $this->rights[$r][0] = 4002;
99 $this->rights[$r][1] =
'Create employees';
100 $this->rights[$r][3] = 0;
101 $this->rights[$r][4] =
'employee';
102 $this->rights[$r][5] =
'write';
105 $this->rights[$r][0] = 4003;
106 $this->rights[$r][1] =
'Delete employees';
107 $this->rights[$r][3] = 0;
108 $this->rights[$r][4] =
'employee';
109 $this->rights[$r][5] =
'delete';
112 $this->rights[$r][0] = 4004;
113 $this->rights[$r][1] =
'Export employees';
114 $this->rights[$r][3] = 0;
115 $this->rights[$r][4] =
'employee';
116 $this->rights[$r][5] =
'export';
137 $this->
remove($options);
141 return $this->
_init($sql,$options);
</td >< td class="liste_titre" align="right"></td ></tr >< tr class="liste_titre">< input type="checkbox" onClick="toggle(this)"/> Ref p ref Label p label Duration p duration warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow img yes disabled img no img no< tr class="oddeven">< td >< input type="checkbox" class="check" name="' . $i . '"' . $disabled . '></td >< td >< input type="checkbox" class="check" name="choose'.$i.'"></td >< td class="nowrap"></td >< td >< input type="hidden" name="desc' . $i . '" value="' . dol_escape_htmltag($objp-> description
Only used if Module[ID]Desc translation string is not found.
Class to describe and activate the HRM module.
$conf db name
Only used if Module[ID]Name translation string is not found.
__construct($db)
Constructor.
init($options='')
Function called when module is enabled.
_init($array_sql, $options='')
Enables a module.