Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 77 Rev 130
Line 22... Line 22...
22
					$this->chargerOntologies();
22
					$this->chargerOntologies();
23
					break;
23
					break;
24
				case 'test' :
24
				case 'test' :
25
					$this->tester();
25
					$this->tester();
26
					break;
26
					break;
-
 
27
				case 'supprimerTous' :
-
 
28
					$this->supprimerTous();
-
 
29
					break;
27
				default :
30
				default :
28
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
31
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
29
			}
32
			}
30
		} catch (Exception $e) {
33
		} catch (Exception $e) {
31
			$this->traiterErreur($e->getMessage());
34
			$this->traiterErreur($e->getMessage());
Line 47... Line 50...
47
			"	ENCLOSED BY '' ".
50
			"	ENCLOSED BY '' ".
48
			"	ESCAPED BY '\\\' ".
51
			"	ESCAPED BY '\\\' ".
49
			'IGNORE 0 LINES';
52
			'IGNORE 0 LINES';
50
		$this->getBdd()->requeter($requete);
53
		$this->getBdd()->requeter($requete);
51
	}
54
	}
-
 
55
 
-
 
56
	private function supprimerTous() {
-
 
57
		$requete = "DROP TABLE bdnt_meta, bdnt_ontologies_v4_30";
-
 
58
		$this->getBdd()->requeter($requete);
-
 
59
	}
52
}
60
}
53
?>
61
?>
54
62