Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 130 Rev 175
Line 19... Line 19...
19
	    			$this->chargerStructureSql();
19
	    			$this->chargerStructureSql();
20
	    			break;
20
	    			break;
21
				case 'chargerOntologies' :
21
				case 'chargerOntologies' :
22
					$this->chargerOntologies();
22
					$this->chargerOntologies();
23
					break;
23
					break;
24
				case 'test' :
-
 
25
					$this->tester();
-
 
26
					break;
-
 
27
				case 'supprimerTous' :
24
				case 'supprimerTous' :
28
					$this->supprimerTous();
25
					$this->supprimerTous();
29
					break;
26
					break;
30
				default :
27
				default :
31
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
28
					throw new Exception("Erreur : la commande '$cmd' n'existe pas!");
Line 33... Line 30...
33
		} catch (Exception $e) {
30
		} catch (Exception $e) {
34
			$this->traiterErreur($e->getMessage());
31
			$this->traiterErreur($e->getMessage());
35
		}
32
		}
36
    }
33
    }
Line 37... Line -...
37
 
-
 
38
    private function tester() {
-
 
39
    	echo Config::get('test');
-
 
40
    }
-
 
41
 
34
 
42
	private function chargerOntologies() {
35
	private function chargerOntologies() {
43
		$chemin = Config::get('chemins.ontologies');
36
		$chemin = Config::get('chemins.ontologies');
44
		$table = Config::get('tables.ontologies');
37
		$table = Config::get('tables.ontologies');
45
		$requete = "LOAD DATA INFILE '$chemin' ".
38
		$requete = "LOAD DATA INFILE '$chemin' ".