51 $this->rights_class =
'datapolicy';
55 $this->family =
"technic";
57 $this->module_position =
'78';
61 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
63 $this->
description =
"Module to manage Data policy (for compliance with GDPR in Europe or other Data policy rules)";
65 $this->descriptionlong =
"";
68 $this->version =
'dolibarr';
70 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
74 $this->picto =
'lock';
80 $this->module_parts = array();
84 $this->dirs = array(
"/datapolicy/temp");
87 $this->config_page_url = array(
"setup.php@datapolicy");
90 $this->hidden =
false;
91 $this->depends = array(
'always' =>
'modCron');
92 $this->requiredby = array();
93 $this->conflictwith = array();
94 $this->langfiles = array(
"datapolicy");
95 $this->phpmin = array(7, 1);
96 $this->warnings_activation = array();
97 $this->warnings_activation_ext = array();
104 $this->
const = array(
105 array(
'DATAPOLICY_TIERS_CLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
106 array(
'DATAPOLICY_TIERS_PROSPECT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
107 array(
'DATAPOLICY_TIERS_PROSPECT_CLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
108 array(
'DATAPOLICY_TIERS_NIPROSPECT_NICLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
109 array(
'DATAPOLICY_TIERS_FOURNISSEUR',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
110 array(
'DATAPOLICY_CONTACT_CLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
111 array(
'DATAPOLICY_CONTACT_PROSPECT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
112 array(
'DATAPOLICY_CONTACT_PROSPECT_CLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
113 array(
'DATAPOLICY_CONTACT_NIPROSPECT_NICLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
114 array(
'DATAPOLICY_CONTACT_FOURNISSEUR',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
115 array(
'DATAPOLICY_ADHERENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
116 array(
'DATAPOLICY_RECRUITMENT_CANDIDATURE',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
121 $conf->datapolicy->enabled = 0;
126 $this->tabs = array();
155 $this->dictionaries = array();
160 $this->boxes = array();
165 $this->cronjobs = array(
166 0 => array(
'label' =>
'DATAPOLICYJob',
'jobtype' =>
'method',
'class' =>
'datapolicy/class/datapolicycron.class.php',
'objectname' =>
'DataPolicyCron',
'method' =>
'cleanDataForDataPolicy',
'parameters' =>
'',
'comment' =>
'Clean data',
'frequency' => 1,
'unitfrequency' => 86400,
'status' => 1,
'test' =>
'isModEnabled("datapolicy")'),
173 $this->rights = array();
176 $this->menu = array();