Subversion Repositories Applications.dictionnaire

Rev

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

Rev 1 Rev 2
Line 1... Line 1...
1
<?php
1
<?php
2
 
-
 
3
class Dictionnaire extends RestService {
2
class Dictionnaire extends RestService {
Line 4... Line 3...
4
 
3
 
5
//+----------------------------------------------------------------------------------------------------------------+	
4
//+----------------------------------------------------------------------------------------------------------------+	
6
// Consulter
5
// Consulter
Line 39... Line 38...
39
			
38
			
40
    	} else {
39
    	} else {
41
    		$entete_http = RestServeur::HTTP_CODE_CONTENU_REQUIS;
40
    		$entete_http = RestServeur::HTTP_CODE_CONTENU_REQUIS;
Line 42... Line 41...
42
    	}
41
    	}
43
    	
42
    	
44
    	//RestServeur::envoyerEnteteStatutHttp($entete_http);
43
    	RestServeur::envoyerEnteteStatutHttp($entete_http);
45
    	header('Content-type : application/json; charset=UTF-8');
44
    	header('Content-type : application/json; charset=UTF-8');
46
    	echo $corps_http; 
45
    	echo $corps_http; 
Line 47... Line 46...
47
    	exit;
46
    	exit;
Line 48... Line 47...
48
    }
47
    }
49
    
48
    
Line 50... Line 49...
50
    private function getDefinition($mot) {
49
    private function getDefinition($mot) {
51
    	
50
    	
Line 52... Line 51...
52
    	$requete_selection_definition = 'SELECT valeur FROM onto_triples WHERE cle = "'.$this->simplifier($mot).'"';   
51
    	$requete_selection_definition = 'SELECT valeur FROM definitions WHERE cle = "'.$this->simplifier($mot).'"';   
Line 53... Line 52...
53
    	$definition = $this->bdd->recuperer($requete_selection_definition);
52
    	$definition = $this->bdd->recuperer($requete_selection_definition);
54
    	
-
 
55
		return $definition; 
53
    	
Line 56... Line 54...
56
    }
54
		return $definition; 
57
    
55
    }
Line 58... Line 56...
58
    private function getToutesDefinitions() {
56
    
59
    	
-
 
60
    	$requete_selection_toutes_definitions = 'SELECT valeur FROM onto_triples';
-
 
Line -... Line 57...
-
 
57
    private function getToutesDefinitions() {
61
    	
58
    	
62
    	$definitions = $this->bdd->recupererTous($requete_selection_toutes_definitions);
-
 
63
    	
59
    	$requete_selection_toutes_definitions = 'SELECT valeur FROM definitions';
64
		return $definitions; 
60
    	$definitions = $this->bdd->recupererTous($requete_selection_toutes_definitions);
65
    }
61
    	
66
    
62
		return $definitions; 
67
    private function getMots() {
-
 
68
    	
63
    }
69
    	$requete_selection_mots = 'SELECT cle FROM onto_triples';
64
    
Line 70... Line 65...
70
    	
65
    private function getMots() {	
Line 86... Line 81...
86
		$en_minuscule = strtolower($sans_accent);
81
		$en_minuscule = strtolower($sans_accent);
Line 87... Line 82...
87
		
82
		
88
		return $en_minuscule;
83
		return $en_minuscule;
89
	}
84
	}
90
}
85
}
91
?>
86
?>