Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 1259 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1259 Rev 1280
Line 32... Line 32...
32
				case 'chargerTous' :
32
				case 'chargerTous' :
33
					$this->chargerStructureSql();
33
					$this->chargerStructureSql();
34
					$this->chargerBdtfx();
34
					$this->chargerBdtfx();
35
					$this->genererChpNomSciHtml();
35
					$this->genererChpNomSciHtml();
36
					$this->genererChpFamille();
36
					$this->genererChpFamille();
37
					$this->genererDonneesTestMultiVersion();
37
					//$this->genererDonneesTestMultiVersion();
38
					$this->genererChpHierarchie();
38
					$this->genererChpHierarchie();
39
					$this->genererBDTFXReduit();
39
					$this->genererBDTFXReduit();
40
					break;
40
					break;
41
				case 'chargerStructureSql' :
41
				case 'chargerStructureSql' :
42
					$this->chargerStructureSql();
42
					$this->chargerStructureSql();
Line 74... Line 74...
74
	}
74
	}
Line 75... Line 75...
75
 
75
 
76
	private function chargerBdtfx() {
76
	private function chargerBdtfx() {
77
		$chemin = Config::get('chemins.bdtfx');
77
		$chemin = Config::get('chemins.bdtfx');
78
		$table = Config::get('tables.bdtfx');
78
		$table = Config::get('tables.bdtfx');
79
		$requete = "LOAD DATA INFILE '$chemin' ".
79
		$requete = "LOAD DATA LOCAL INFILE '$chemin' ".
80
				"REPLACE INTO TABLE $table ".
80
				"REPLACE INTO TABLE $table ".
81
				'CHARACTER SET utf8 '.
81
				'CHARACTER SET utf8 '.
82
				'FIELDS '.
82
				'FIELDS '.
83
				"	TERMINATED BY '\t' ".
83
				"	TERMINATED BY '\t' ".