Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 31 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31 Rev 33
Line 11... Line 11...
11
		
11
		
Line 12... Line 12...
12
	}
12
	}
Line 13... Line 13...
13
	
13
	
14
	protected function obtenirValeursListeParAbreviation($abreviation_triple) {
14
	protected function obtenirValeursListeParAbreviation($abreviation_triple) {
Line 15... Line 15...
15
		
15
		
Line 16... Line 16...
16
		$requete = 'SELECT * FROM ods_triple WHERE ot_ce_parent = (SELECT ot_id_triple WHERE ot_cle ='.$this->proteger($abreviation_triple).')';
16
		$requete = 'SELECT * FROM ods_triples WHERE ot_ce_parent = (SELECT ot_id_triple FROM ods_triples WHERE ot_cle ='.$this->proteger($abreviation_triple).')';		
Line 17... Line 17...
17
		$resultat = $this->executerRequete($requete);
17
		$resultat = $this->executerRequete($requete);
Line 36... Line 36...
36
		
36
		
Line 37... Line 37...
37
		return $resultat['ot_valeur'];
37
		return $resultat['ot_valeur'];
Line -... Line 38...
-
 
38
		
-
 
39
	}
-
 
40
	
-
 
41
	private function grouperResultat($tableau_resultat_requete_triple) {
-
 
42
		
-
 
43
		$tableau_resultat_requete_triple_ordonne = array();
-
 
44
		
-
 
45
		foreach($tableau_resultat_requete_triple as $valeur_triple) {
-
 
46
			$tableau_resultat_requete_triple_ordonne[$valeur_triple['ot_id_triple']] = $valeur_triple;
-
 
47
		}
-
 
48
		
38
		
49
		return $tableau_resultat_requete_triple_ordonne;
Line 39... Line 50...
39
	}
50
	}
40
	
51