Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 70 Rev 130
Line 29... Line 29...
29
					$this->chargerOntologies();
29
					$this->chargerOntologies();
30
					break;
30
					break;
31
				case 'test' :
31
				case 'test' :
32
					$this->tester();
32
					$this->tester();
33
					break;
33
					break;
-
 
34
				case 'supprimerTous' :
-
 
35
					$this->supprimerTous();
-
 
36
					break;
34
				default :
37
				default :
35
					$this->traiterErreur('Erreur : la commande "%s" n\'existe pas!', array($cmd));
38
					$this->traiterErreur('Erreur : la commande "%s" n\'existe pas!', array($cmd));
36
			}
39
			}
37
		} catch (Exception $e) {
40
		} catch (Exception $e) {
38
			$this->traiterErreur($e->getMessage());
41
			$this->traiterErreur($e->getMessage());
Line 68... Line 71...
68
				"	ENCLOSED BY '\"' ".
71
				"	ENCLOSED BY '\"' ".
69
				"	ESCAPED BY '\\\' ".
72
				"	ESCAPED BY '\\\' ".
70
				'IGNORE 1 LINES';
73
				'IGNORE 1 LINES';
71
		$this->getBdd()->requeter($requete);
74
		$this->getBdd()->requeter($requete);
72
	}
75
	}
-
 
76
 
-
 
77
	private function supprimerTous() {
-
 
78
		$requete = "DROP TABLE iso_3166_1_meta, iso_3166_1_ontologies_v2006, iso_3166_1_v2006";
-
 
79
		$this->getBdd()->requeter($requete);
-
 
80
	}
73
}
81
}
74
?>
82
?>
75
83