|
@@ -230,37 +230,4 @@ class modAdherent extends DolibarrModules
|
|
|
$this->import_regex_array[$r]=array('a.civility'=>'code@'.MAIN_DB_PREFIX.'c_civility','a.fk_adherent_type'=>'rowid@'.MAIN_DB_PREFIX.'adherent_type','a.morphy'=>'(phy|mor)','a.statut'=>'^[0|1]','a.datec'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$','a.datefin'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$');
|
|
|
$this->import_examplevalues_array[$r]=array('a.civility'=>"MR",'a.lastname'=>'Smith','a.firstname'=>'John','a.login'=>'jsmith','a.pass'=>'passofjsmith','a.fk_adherent_type'=>'1','a.morphy'=>'"mor" or "phy"','a.societe'=>'JS company','a.address'=>'21 jump street','a.zip'=>'55000','a.town'=>'New York','a.country'=>'1','a.email'=>'jsmith@example.com','a.birth'=>'1972-10-10','a.statut'=>"0 or 1",'a.note_public'=>"This is a public comment on member",'a.note_private'=>"This is private comment on member",'a.datec'=>dol_print_date($now,'%Y-%m-%d'),'a.datefin'=>dol_print_date(dol_time_plus_duree($now, 1, 'y'),'%Y-%m-%d'));
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * Function called when module is enabled.
|
|
|
- * The init function add constants, boxes, permissions and menus (defined in constructor) into Dolibarr database.
|
|
|
- * It also creates data directories
|
|
|
- *
|
|
|
- * @param string $options Options when enabling module ('', 'noboxes')
|
|
|
- * @return int 1 if OK, 0 if KO
|
|
|
- */
|
|
|
- function init($options='')
|
|
|
- {
|
|
|
-
|
|
|
- $sql = array();
|
|
|
-
|
|
|
- return $this->_init($sql,$options);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Function called when module is disabled.
|
|
|
- * Remove from database constants, boxes and permissions from Dolibarr database.
|
|
|
- * Data directories are not deleted
|
|
|
- *
|
|
|
- * @param string $options Options when enabling module ('', 'noboxes')
|
|
|
- * @return int 1 if OK, 0 if KO
|
|
|
- */
|
|
|
- function remove($options='')
|
|
|
- {
|
|
|
- $sql = array();
|
|
|
-
|
|
|
- return $this->_remove($sql,$options);
|
|
|
- }
|
|
|
-
|
|
|
}
|