Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 123 Rev 130
Line 23... Line 23...
23
			switch ($cmd) {
23
			switch ($cmd) {
24
				case 'chargerTous' :
24
				case 'chargerTous' :
25
					$this->chargerStructureSql();
25
					$this->chargerStructureSql();
26
					$this->chargerCel();
26
					$this->chargerCel();
27
					break;
27
					break;
-
 
28
				case 'supprimerTous' :
-
 
29
					$this->supprimerTous();
-
 
30
					break;
28
				default :
31
				default :
29
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
32
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
30
			}
33
			}
31
		} catch (Exception $e) {
34
		} catch (Exception $e) {
32
			$this->traiterErreur($e->getMessage());
35
			$this->traiterErreur($e->getMessage());
Line 52... Line 55...
52
			"	ENCLOSED BY '' ".
55
			"	ENCLOSED BY '' ".
53
			"	ESCAPED BY '\\\' ".
56
			"	ESCAPED BY '\\\' ".
54
			'IGNORE 1 LINES';
57
			'IGNORE 1 LINES';
55
		$this->getBdd()->requeter($requete);
58
		$this->getBdd()->requeter($requete);
56
	}
59
	}
-
 
60
 
-
 
61
	private function supprimerTous() {
-
 
62
		$requete = "DROP TABLE cel_images, cel_inventory, cel_mots_cles_images, cel_mots_cles_obs, cel_obs_images, locations";
-
 
63
		$this->getBdd()->requeter($requete);
-
 
64
	}
57
}
65
}
58
?>
66
?>
59
67