51 $this->rights_class =
'hrm';
56 $this->module_position =
'50';
58 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
62 $this->version =
'dolibarr';
64 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
71 $this->module_parts = array(
96 'moduleforexternal' => 0,
101 $this->dirs = array(
"/hrm/temp");
104 $this->config_page_url = array(
"hrm.php");
107 $this->hidden =
false;
108 $this->depends = array();
109 $this->requiredby = array();
110 $this->conflictwith = array();
111 $this->phpmin = array(7, 0);
112 $this->need_dolibarr_version = array(11, 0);
113 $this->langfiles = array(
"hrm");
118 $this->
const = array();
122 if (!isset(
$conf->hrm) || !isset(
$conf->hrm->enabled)) {
124 $conf->hrm->enabled = 0;
128 $this->tabs = array();
129 $this->tabs[] = array(
'data' =>
'user:+skill_tab:Skills:hrm:1:/hrm/skill_tab.php?id=__ID__&objecttype=user');
159 $this->dictionaries = array();
163 $this->boxes = array(
174 $this->cronjobs = array(
193 $this->rights = array();
197 $this->rights[$r][0] = 4001;
198 $this->rights[$r][1] =
'Read skill/job/position';
199 $this->rights[$r][3] = 0;
200 $this->rights[$r][4] =
'all';
201 $this->rights[$r][5] =
'read';
204 $this->rights[$r][0] = 4002;
205 $this->rights[$r][1] =
'Create/modify skill/job/position';
206 $this->rights[$r][3] = 0;
207 $this->rights[$r][4] =
'all';
208 $this->rights[$r][5] =
'write';
211 $this->rights[$r][0] = 4003;
212 $this->rights[$r][1] =
'Delete skill/job/position';
213 $this->rights[$r][3] = 0;
214 $this->rights[$r][4] =
'all';
215 $this->rights[$r][5] =
'delete';
219 $this->rights[$r][0] = 4021;
220 $this->rights[$r][1] =
'Read evaluations';
221 $this->rights[$r][3] = 0;
222 $this->rights[$r][4] =
'evaluation';
223 $this->rights[$r][5] =
'read';
226 $this->rights[$r][0] = 4022;
227 $this->rights[$r][1] =
'Create/modify your evaluation';
228 $this->rights[$r][3] = 0;
229 $this->rights[$r][4] =
'evaluation';
230 $this->rights[$r][5] =
'write';
233 $this->rights[$r][0] = 4023;
234 $this->rights[$r][1] =
'Validate evaluation';
235 $this->rights[$r][3] = 0;
236 $this->rights[$r][4] =
'evaluation_advance';
237 $this->rights[$r][5] =
'validate';
240 $this->rights[$r][0] = 4025;
241 $this->rights[$r][1] =
'Delete evaluations';
242 $this->rights[$r][3] = 0;
243 $this->rights[$r][4] =
'evaluation';
244 $this->rights[$r][5] =
'delete';
248 $this->rights[$r][0] = 4028;
249 $this->rights[$r][1] =
'See comparison menu';
250 $this->rights[$r][3] = 0;
251 $this->rights[$r][4] =
'compare_advance';
252 $this->rights[$r][5] =
'read';
256 $this->rights[$r][0] = 4029;
257 $this->rights[$r][1] =
'Read all evaluations';
258 $this->rights[$r][3] = 0;
259 $this->rights[$r][4] =
'evaluation';
260 $this->rights[$r][5] =
'readall';
264 $this->rights[$r][0] = 4031;
265 $this->rights[$r][1] =
'Read personal/HR information';
266 $this->rights[$r][3] = 0;
267 $this->rights[$r][4] =
'read_personal_information';
268 $this->rights[$r][5] =
'read';
272 $this->rights[$r][0] = 4032;
273 $this->rights[$r][1] =
'Write personal/HR information';
274 $this->rights[$r][3] = 0;
275 $this->rights[$r][4] =
'write_personal_information';
276 $this->rights[$r][5] =
'write';