Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 1208 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1208 Rev 1209
Line 18... Line 18...
18
					break;
18
					break;
19
				case 'chargerStructureSql' :
19
				case 'chargerStructureSql' :
20
					$this->chargerStructureSql();
20
					$this->chargerStructureSql();
21
					break;
21
					break;
22
				case 'chargerDonnees' :
22
				case 'chargerDonnees' :
23
					$this->chargerDonnees();
23
					$this->chargerDonneesObs();
24
					$this->ajouterOntologie();
24
					$this->ajouterOntologie();
25
					break;
25
					break;
26
				case 'ajouterOntologie' :
26
				case 'ajouterOntologie' :
27
					$this->ajouterOntologie();
27
					$this->ajouterOntologie();
28
					break;
28
					break;
Line 35... Line 35...
35
		} catch (Exception $e) {
35
		} catch (Exception $e) {
36
			$this->traiterErreur($e->getMessage());
36
			$this->traiterErreur($e->getMessage());
37
		}
37
		}
38
	}
38
	}
Line 39... Line 39...
39
 
39
 
40
	protected function chargerDonnees() {
40
	protected function chargerDonneesObs() {
41
		$chemin = Config::get('chemins.donnees');
41
		$chemin = Config::get('chemins.donnees');
42
		$table = Config::get('tables.donnees');
42
		$table = Config::get('tables.donnees');
43
		$requete = "LOAD DATA INFILE '$chemin' ".
43
		$requete = "LOAD DATA INFILE '$chemin' ".
44
			"REPLACE INTO TABLE $table ".
44
			"REPLACE INTO TABLE $table ".