55 $this->rights_class =
'datapolicy';
59 $this->family =
"technic";
61 $this->module_position =
'78';
65 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
67 $this->
description =
"Module to manage Data policy (for compliance with GDPR in Europe or other Data policy rules)";
69 $this->descriptionlong =
"";
72 $this->version =
'experimental';
74 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
78 $this->picto =
'lock';
84 $this->module_parts = array();
88 $this->dirs = array(
"/datapolicy/temp");
91 $this->config_page_url = array(
"setup.php@datapolicy");
94 $this->hidden =
false;
95 $this->depends = array(
'always'=>
'modCron');
96 $this->requiredby = array();
97 $this->conflictwith = array();
98 $this->langfiles = array(
"datapolicy");
99 $this->phpmin = array(5, 3);
100 $this->need_dolibarr_version = array(7, 0);
101 $this->warnings_activation = array();
102 $this->warnings_activation_ext = array();
110 $this->
const = array(
111 array(
'DATAPOLICY_TIERS_CLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
112 array(
'DATAPOLICY_TIERS_PROSPECT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
113 array(
'DATAPOLICY_TIERS_PROSPECT_CLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
114 array(
'DATAPOLICY_TIERS_NIPROSPECT_NICLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
115 array(
'DATAPOLICY_TIERS_FOURNISSEUR',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
116 array(
'DATAPOLICY_CONTACT_CLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
117 array(
'DATAPOLICY_CONTACT_PROSPECT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
118 array(
'DATAPOLICY_CONTACT_PROSPECT_CLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
119 array(
'DATAPOLICY_CONTACT_NIPROSPECT_NICLIENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
120 array(
'DATAPOLICY_CONTACT_FOURNISSEUR',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
121 array(
'DATAPOLICY_ADHERENT',
'chaine',
'', $langs->trans(
'NUMBER_MONTH_BEFORE_DELETION'), 0),
132 if (!isset($conf->datapolicy) || !isset($conf->datapolicy->enabled)) {
134 $conf->datapolicy->enabled = 0;
139 $this->tabs = array();
168 $this->dictionaries = array();
173 $this->boxes = array();
178 $this->cronjobs = array(
179 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")'),
185 $this->rights = array();
187 $this->menu = array();