Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 74 Rev 130
Line 25... Line 25...
25
					$this->chargerIso6391();
25
					$this->chargerIso6391();
26
					break;
26
					break;
27
				case 'test' :
27
				case 'test' :
28
					$this->tester();
28
					$this->tester();
29
					break;
29
					break;
-
 
30
				case 'supprimerTous' :
-
 
31
					$this->supprimerTous();
-
 
32
					break;
30
				default :
33
				default :
31
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
34
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
32
			}
35
			}
33
		} catch (Exception $e) {
36
		} catch (Exception $e) {
34
			$this->traiterErreur($e->getMessage());
37
			$this->traiterErreur($e->getMessage());
Line 50... Line 53...
50
			"	ENCLOSED BY '\"' ".
53
			"	ENCLOSED BY '\"' ".
51
			"	ESCAPED BY '\\\' ".
54
			"	ESCAPED BY '\\\' ".
52
			'IGNORE 0 LINES';
55
			'IGNORE 0 LINES';
53
		$this->getBdd()->requeter($requete);
56
		$this->getBdd()->requeter($requete);
54
	}
57
	}
-
 
58
 
-
 
59
	private function supprimerTous() {
-
 
60
		$requete = "DROP TABLE iso_639_1_meta, iso_639_1_v2002";
-
 
61
		$this->getBdd()->requeter($requete);
-
 
62
	}
55
}
63
}
56
?>
64
?>
57
65