Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 75 Rev 130
Line 26... Line 26...
26
					$this->chargerInseeD();
26
					$this->chargerInseeD();
27
					break;
27
					break;
28
				case 'chargerOntologies' :
28
				case 'chargerOntologies' :
29
					$this->chargerOntologies();
29
					$this->chargerOntologies();
30
					break;
30
					break;
-
 
31
				case 'supprimerTous' :
-
 
32
					$this->supprimerTous();
-
 
33
					break;
31
				default :
34
				default :
32
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
35
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
33
			}
36
			}
34
		} catch (Exception $e) {
37
		} catch (Exception $e) {
35
			$this->traiterErreur($e->getMessage());
38
			$this->traiterErreur($e->getMessage());
Line 61... Line 64...
61
			"	ENCLOSED BY '' ".
64
			"	ENCLOSED BY '' ".
62
			"	ESCAPED BY '\\\' ".
65
			"	ESCAPED BY '\\\' ".
63
			'IGNORE 1 LINES';
66
			'IGNORE 1 LINES';
64
		$this->getBdd()->requeter($requete);
67
		$this->getBdd()->requeter($requete);
65
	}
68
	}
-
 
69
 
-
 
70
	private function supprimerTous() {
-
 
71
		$requete = "DROP TABLE insee_d_meta, insee_d_ontologies_v2011, insee_d_v2011";
-
 
72
		$this->getBdd()->requeter($requete);
-
 
73
	}
66
}
74
}
67
?>
75
?>
68
76