Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 105 Rev 130
Line 40... Line 40...
40
					$this->chargerBiblioLien();
40
					$this->chargerBiblioLien();
41
					break;
41
					break;
42
				case 'chargerOntologies' :
42
				case 'chargerOntologies' :
43
					$this->chargerOntologies();
43
					$this->chargerOntologies();
44
					break;
44
					break;
-
 
45
				case 'supprimerTous' :
-
 
46
					$this->supprimerTous();
-
 
47
					break;
45
				default :
48
				default :
46
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
49
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
47
			}
50
			}
48
		} catch (Exception $e) {
51
		} catch (Exception $e) {
49
			$this->traiterErreur($e->getMessage());
52
			$this->traiterErreur($e->getMessage());
Line 166... Line 169...
166
				"	ENCLOSED BY '' ".
169
				"	ENCLOSED BY '' ".
167
				"	ESCAPED BY '\\\' ".
170
				"	ESCAPED BY '\\\' ".
168
				'IGNORE 1 LINES';
171
				'IGNORE 1 LINES';
169
		$this->getBdd()->requeter($requete);
172
		$this->getBdd()->requeter($requete);
170
	}
173
	}
-
 
174
 
-
 
175
	private function supprimerTous() {
-
 
176
		$requete = "DROP TABLE nvjfl_biblio_v2007, nvjfl_lien_biblio_v2007, nvjfl_meta, nvjfl_ontologies_v2007, nvjfl_v2007";
-
 
177
		$this->getBdd()->requeter($requete);
-
 
178
	}
171
}
179
}
172
?>
180
?>
173
181