| Line 103... |
Line 103... |
| 103 |
}
|
103 |
}
|
| Line 104... |
Line 104... |
| 104 |
|
104 |
|
| 105 |
/**
|
105 |
/**
|
| 106 |
* Lance l'importation d'un référentiel au format taxref dans une table bdnt_taxref
|
106 |
* Lance l'importation d'un référentiel au format taxref dans une table bdnt_taxref
|
| 107 |
*/
|
107 |
*/
|
| 108 |
public function importerReferentiel() {print_r($_FILES['nom_fichier']);
|
108 |
public function importerReferentiel() {
|
| 109 |
if (isset($_FILES['nom_fichier']) && $_FILES['nom_fichier']['name'] != '') {
|
109 |
if (isset($_FILES['nom_fichier']) && $_FILES['nom_fichier']['name'] != '') {
|
| 110 |
$destination = Config::get('chemin_tmp').$_FILES['nom_fichier']['name'];
|
110 |
$destination = Config::get('chemin_tmp').$_FILES['nom_fichier']['name'];
|
| 111 |
move_uploaded_file($_FILES['nom_fichier']['tmp_name'], $destination);
|
111 |
move_uploaded_file($_FILES['nom_fichier']['tmp_name'], $destination);
|
| 112 |
$this->ajouterTraitementParametre($this->referentiel, $destination, 'importation');
|
112 |
$this->ajouterTraitementParametre($this->referentiel, $destination, 'importation');
|