11 |
aurelien |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
class GestionTriple extends JRestService {
|
|
|
4 |
|
|
|
5 |
protected function obtenirValeursListeParId($id_liste) {
|
|
|
6 |
|
|
|
7 |
$requete = 'SELECT * FROM ods_triple WHERE ot_ce_parent ='.$this->proteger($id_liste);
|
|
|
8 |
$resultat = $this->executerRequete($requete);
|
|
|
9 |
|
|
|
10 |
return $resultat;
|
|
|
11 |
|
|
|
12 |
}
|
|
|
13 |
|
|
|
14 |
protected function obtenirValeursListeParAbreviation($abreviation_triple) {
|
|
|
15 |
|
|
|
16 |
$requete = 'SELECT * FROM ods_triple WHERE ot_ce_parent = (SELECT ot_id_triple WHERE ot_cle ='.$this->proteger($abreviation_triple).')';
|
|
|
17 |
$resultat = $this->executerRequete($requete);
|
|
|
18 |
|
|
|
19 |
return $resultat;
|
|
|
20 |
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
protected function obtenirValeurTripleParId($id_triple) {
|
|
|
24 |
|
|
|
25 |
$requete = 'SELECT * FROM ods_triple WHERE ot_id_triple = '.$this->proteger($id_triple);
|
|
|
26 |
$resultat = $this->executerRequete($requete);
|
|
|
27 |
|
|
|
28 |
return $resultat['ot_valeur'];
|
|
|
29 |
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
protected function obtenirValeurTripleParAbreviation($abreviation_triple) {
|
|
|
33 |
|
|
|
34 |
$requete = 'SELECT * FROM ods_triple WHERE ot_cle = '.$this->proteger($abreviation_triple);
|
|
|
35 |
$resultat = $this->executerRequete($requete);
|
|
|
36 |
|
|
|
37 |
return $resultat['ot_valeur'];
|
|
|
38 |
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
}
|
|
|
42 |
|
|
|
43 |
?>
|