23 include_once DOL_DOCUMENT_ROOT.
"/core/modules/DolibarrModules.class.php";
43 $this->rights_class =
'hrm';
46 $this->module_position =
'50';
48 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
49 $this->
description =
"Management of employees carrier and feelings (department, employment contract)";
52 $this->version =
'experimental';
54 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
61 $this->module_parts = array();
64 $this->dirs = array();
67 $this->config_page_url = array(
'admin_hrm.php@hrm');
70 $this->hidden =
false;
71 $this->depends = array();
72 $this->requiredby = array();
73 $this->conflictwith = array();
74 $this->phpmin = array(5, 4);
75 $this->need_dolibarr_version = array(3, 9);
76 $this->langfiles = array(
"hrm");
79 $this->dictionaries = array();
82 $this->
const = array();
86 $this->boxes = array();
89 $this->rights = array();
92 $this->rights[$r][0] = 4001;
93 $this->rights[$r][1] =
'See employees';
94 $this->rights[$r][3] = 0;
95 $this->rights[$r][4] =
'employee';
96 $this->rights[$r][5] =
'read';
99 $this->rights[$r][0] = 4002;
100 $this->rights[$r][1] =
'Create employees';
101 $this->rights[$r][3] = 0;
102 $this->rights[$r][4] =
'employee';
103 $this->rights[$r][5] =
'write';
106 $this->rights[$r][0] = 4003;
107 $this->rights[$r][1] =
'Delete employees';
108 $this->rights[$r][3] = 0;
109 $this->rights[$r][4] =
'employee';
110 $this->rights[$r][5] =
'delete';
113 $this->rights[$r][0] = 4004;
114 $this->rights[$r][1] =
'Export employees';
115 $this->rights[$r][3] = 0;
116 $this->rights[$r][4] =
'employee';
117 $this->rights[$r][5] =
'export';
135 public function init($options =
'')
138 $this->
remove($options);
142 return $this->
_init($sql, $options);
init($options= '')
Function called when module is enabled.
</td > param sortfield sortorder printFieldListOption< tdclass="liste_titremaxwidthsearchright"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration center DesiredStock p desiredstock right StockLimitShort p seuil_stock_alerte right stock_physique right stock_real_warehouse right Ordered right StockToBuy right SupplierRef right param sortfield sortorder printFieldListTitle warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow StockTooLow help help help< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"> stock</td >< td >< inputtype="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.
$conf db
API class for accounts.
__construct($db)
Constructor.
_init($array_sql, $options= '')
Enables a module.