50 $this->rights_class =
'hrm';
55 $this->module_position =
'50';
57 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
61 $this->version =
'dolibarr';
63 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
70 $this->module_parts = array(
95 'moduleforexternal' => 0,
100 $this->dirs = array(
"/hrm/temp");
103 $this->config_page_url = array(
"hrm.php");
106 $this->hidden =
false;
107 $this->depends = array();
108 $this->requiredby = array();
109 $this->conflictwith = array();
110 $this->phpmin = array(7, 0);
111 $this->need_dolibarr_version = array(11, 0);
112 $this->langfiles = array(
"hrm");
117 $this->
const = array();
121 if (!isset($conf->hrm) || !isset($conf->hrm->enabled)) {
123 $conf->hrm->enabled = 0;
127 $this->tabs = array();
128 $this->tabs[] = array(
'data'=>
'user:+skill_tab:Skills:hrm:1:/hrm/skill_tab.php?id=__ID__&objecttype=user');
158 $this->dictionaries = array();
162 $this->boxes = array(
173 $this->cronjobs = array(
192 $this->rights = array();
196 $this->rights[$r][0] = 4001;
197 $this->rights[$r][1] =
'Read skill/job/position';
198 $this->rights[$r][3] = 0;
199 $this->rights[$r][4] =
'all';
200 $this->rights[$r][5] =
'read';
203 $this->rights[$r][0] = 4002;
204 $this->rights[$r][1] =
'Create/modify skill/job/position';
205 $this->rights[$r][3] = 0;
206 $this->rights[$r][4] =
'all';
207 $this->rights[$r][5] =
'write';
210 $this->rights[$r][0] = 4003;
211 $this->rights[$r][1] =
'Delete skill/job/position';
212 $this->rights[$r][3] = 0;
213 $this->rights[$r][4] =
'all';
214 $this->rights[$r][5] =
'delete';
218 $this->rights[$r][0] = 4021;
219 $this->rights[$r][1] =
'Read evaluations';
220 $this->rights[$r][3] = 0;
221 $this->rights[$r][4] =
'evaluation';
222 $this->rights[$r][5] =
'read';
225 $this->rights[$r][0] = 4022;
226 $this->rights[$r][1] =
'Create/modify your evaluation';
227 $this->rights[$r][3] = 0;
228 $this->rights[$r][4] =
'evaluation';
229 $this->rights[$r][5] =
'write';
232 $this->rights[$r][0] = 4023;
233 $this->rights[$r][1] =
'Validate evaluation';
234 $this->rights[$r][3] = 0;
235 $this->rights[$r][4] =
'evaluation_advance';
236 $this->rights[$r][5] =
'validate';
239 $this->rights[$r][0] = 4025;
240 $this->rights[$r][1] =
'Delete evaluations';
241 $this->rights[$r][3] = 0;
242 $this->rights[$r][4] =
'evaluation';
243 $this->rights[$r][5] =
'delete';
247 $this->rights[$r][0] = 4028;
248 $this->rights[$r][1] =
'See comparison menu';
249 $this->rights[$r][3] = 0;
250 $this->rights[$r][4] =
'compare_advance';
251 $this->rights[$r][5] =
'read';
255 $this->rights[$r][0] = 4029;
256 $this->rights[$r][1] =
'Read all evaluations';
257 $this->rights[$r][3] = 0;
258 $this->rights[$r][4] =
'evaluation';
259 $this->rights[$r][5] =
'readall';
263 $this->rights[$r][0] = 4031;
264 $this->rights[$r][1] =
'Read personal/HR information';
265 $this->rights[$r][3] = 0;
266 $this->rights[$r][4] =
'read_personal_information';
267 $this->rights[$r][5] =
'read';
271 $this->rights[$r][0] = 4032;
272 $this->rights[$r][1] =
'Write personal/HR information';
273 $this->rights[$r][3] = 0;
274 $this->rights[$r][4] =
'write_personal_information';
275 $this->rights[$r][5] =
'write';