dolibarr  16.0.5
hrm.lib.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2020 jean-pascal BOUDET <jean-pascal.boudet@atm-consulting.fr>
3  * Copyright (C) 2021 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
4  * Copyright (C) 2021 Greg Rastklan <greg.rastklan@atm-consulting.fr>
5  * Copyright (C) 2021 Jean-Pascal BOUDET <jean-pascal.boudet@atm-consulting.fr>
6  * Copyright (C) 2021 GrĂ©gory BLEMAND <gregory.blemand@atm-consulting.fr>
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20  */
21 
34 {
35  global $langs, $conf;
36 
37  $langs->load("hrm");
38 
39  $h = 0;
40  $head = array();
41  $head[$h][0] = DOL_URL_ROOT . "/admin/hrm.php";
42  $head[$h][1] = $langs->trans("Settings");
43  $head[$h][2] = 'settings';
44  $h++;
45 
46  $head[$h][0] = DOL_URL_ROOT.'/hrm/admin/admin_establishment.php';
47  $head[$h][1] = $langs->trans("Establishments");
48  $head[$h][2] = 'establishments';
49  $h++;
50 
51  $head[$h][0] = DOL_URL_ROOT . '/hrm/admin/evaluation_extrafields.php';
52  $head[$h][1] = $langs->trans("EvaluationsExtraFields");
53  $head[$h][2] = 'evaluationsAttributes';
54  $h++;
55 
56  $head[$h][0] = DOL_URL_ROOT . '/hrm/admin/job_extrafields.php';
57  $head[$h][1] = $langs->trans("JobsExtraFields");
58  $head[$h][2] = 'jobsAttributes';
59  $h++;
60 
61  $head[$h][0] = DOL_URL_ROOT . '/hrm/admin/skill_extrafields.php';
62  $head[$h][1] = $langs->trans("SkillsExtraFields");
63  $head[$h][2] = 'skillsAttributes';
64  $h++;
65 
66  /*
67  $head[$h][0] = dol_buildpath("/workstation/admin/myobject_extrafields.php", 1);
68  $head[$h][1] = $langs->trans("ExtraFields");
69  $head[$h][2] = 'myobject_extrafields';
70  $h++;
71  */
72 
73  /*$head[$h][0] = require_once "/admin/about.php";
74  $head[$h][1] = $langs->trans("About");
75  $head[$h][2] = 'about';
76  $h++;*/
77 
78  // Show more tabs from modules
79  // Entries must be declared in modules descriptor with line
80  //$this->tabs = array(
81  // 'entity:+tabname:Title:@workstation:/workstation/mypage.php?id=__ID__'
82  //); // to add new tab
83  //$this->tabs = array(
84  // 'entity:-tabname:Title:@workstation:/workstation/mypage.php?id=__ID__'
85  //); // to remove a tab
86  complete_head_from_modules($conf, $langs, null, $head, $h, 'hrm_admin');
87 
88  complete_head_from_modules($conf, $langs, null, $head, $h, 'hrm_admin', 'remove');
89 
90  return $head;
91 }
complete_head_from_modules
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add')
Complete or removed entries into a head array (used to build tabs).
Definition: functions.lib.php:9038
hrmAdminPrepareHead
hrmAdminPrepareHead()
Prepare admin pages header.
Definition: hrm.lib.php:33