48 $this->rights_class =
'hrm';
53 $this->module_position =
'50';
55 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
59 $this->version =
'dolibarr';
61 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
68 $this->module_parts = array(
93 'moduleforexternal' => 0,
98 $this->dirs = array(
"/hrm/temp");
101 $this->config_page_url = array(
"hrm.php");
104 $this->hidden =
false;
105 $this->depends = array();
106 $this->requiredby = array();
107 $this->conflictwith = array();
108 $this->phpmin = array(7, 0);
109 $this->need_dolibarr_version = array(11, 0);
110 $this->langfiles = array(
"hrm");
116 $this->
const = array();
120 if (!isset($conf->hrm) || !isset($conf->hrm->enabled)) {
121 $conf->hrm =
new stdClass();
122 $conf->hrm->enabled = 0;
126 $this->tabs = array();
127 $this->tabs[] = array(
'data'=>
'user:+skill_tab:Skills:hrm:1:/hrm/skill_tab.php?id=__ID__&objecttype=user');
157 $this->dictionaries = array();
161 $this->boxes = array(
172 $this->cronjobs = array(
191 $this->rights = array();
195 $this->rights[$r][0] = 4001;
196 $this->rights[$r][1] =
'Read skill/job/position';
197 $this->rights[$r][3] = 0;
198 $this->rights[$r][4] =
'all';
199 $this->rights[$r][5] =
'read';
202 $this->rights[$r][0] = 4002;
203 $this->rights[$r][1] =
'Create/modify skill/job/position';
204 $this->rights[$r][3] = 0;
205 $this->rights[$r][4] =
'all';
206 $this->rights[$r][5] =
'write';
209 $this->rights[$r][0] = 4003;
210 $this->rights[$r][1] =
'Delete skill/job/position';
211 $this->rights[$r][3] = 0;
212 $this->rights[$r][4] =
'all';
213 $this->rights[$r][5] =
'delete';
217 $this->rights[$r][0] = 4021;
218 $this->rights[$r][1] =
'Read evaluations';
219 $this->rights[$r][3] = 0;
220 $this->rights[$r][4] =
'evaluation';
221 $this->rights[$r][5] =
'read';
224 $this->rights[$r][0] = 4022;
225 $this->rights[$r][1] =
'Create/modify your evaluation';
226 $this->rights[$r][3] = 0;
227 $this->rights[$r][4] =
'evaluation';
228 $this->rights[$r][5] =
'write';
231 $this->rights[$r][0] = 4023;
232 $this->rights[$r][1] =
'Validate evaluation';
233 $this->rights[$r][3] = 0;
234 $this->rights[$r][4] =
'evaluation_advance';
235 $this->rights[$r][5] =
'validate';
238 $this->rights[$r][0] = 4025;
239 $this->rights[$r][1] =
'Delete evaluations';
240 $this->rights[$r][3] = 0;
241 $this->rights[$r][4] =
'evaluation';
242 $this->rights[$r][5] =
'delete';
246 $this->rights[$r][0] = 4028;
247 $this->rights[$r][1] =
'See comparison menu';
248 $this->rights[$r][3] = 0;
249 $this->rights[$r][4] =
'compare_advance';
250 $this->rights[$r][5] =
'read';
254 $this->rights[$r][0] = 4029;
255 $this->rights[$r][1] =
'Read all evaluations';
256 $this->rights[$r][3] = 0;
257 $this->rights[$r][4] =
'evaluation';
258 $this->rights[$r][5] =
'readall';
262 $this->rights[$r][0] = 4031;
263 $this->rights[$r][1] =
'Read personal/HR information';
264 $this->rights[$r][3] = 0;
265 $this->rights[$r][4] =
'read_personal_information';
266 $this->rights[$r][5] =
'read';
270 $this->rights[$r][0] = 4032;
271 $this->rights[$r][1] =
'Write personal/HR information';
272 $this->rights[$r][3] = 0;
273 $this->rights[$r][4] =
'write_personal_information';
274 $this->rights[$r][5] =
'write';