Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 262 Rev 289
Line 7... Line 7...
7
     *
7
     *
8
     */
8
     */
9
    function getElement($param = array()) {
9
    function getElement($param = array()) {
Line 10... Line 10...
10
    	    	    	
10
    	    	    	
11
    	$abreviation_demandee = $param[0];
-
 
12
    	
11
    	$abreviation_demandee = $param[0];
13
    	$abreviation = $this->transformerParametreEnAbreviation($abreviation_demandee);
-
 
14
    	
12
    	$abreviation = $this->transformerParametreEnAbreviation($abreviation_demandee);
15
        $info = $this->obtenirValeursListeParAbreviation($abreviation);
-
 
16
        
13
        $info = $this->obtenirValeursListeParAbreviation($abreviation);
Line 17... Line 14...
17
        $info = $this->formaterListeTripleEnTableauCleValeur($info);
14
        $info = $this->formaterListeTripleEnTableauCleValeur($info);
18
       
15
       
19
        // Envoi sur la sortie standard
16
        // Envoi sur la sortie standard
Line 51... Line 48...
51
	
48
	
Line 52... Line 49...
52
	protected function obtenirValeursListeParAbreviation($abreviation_triple) {
49
	protected function obtenirValeursListeParAbreviation($abreviation_triple) {
53
		
50
		
54
		$requete = 'SELECT * FROM ods_triples WHERE ot_ce_parent = (SELECT ot_id_triple FROM ods_triples WHERE ot_cle ='.$this->proteger($abreviation_triple).')';		
-
 
55
		$resultat = $this->executerRequete($requete);
51
		$requete = 'SELECT * FROM ods_triples WHERE ot_ce_parent = (SELECT ot_id_triple FROM ods_triples WHERE ot_cle ='.$this->proteger($abreviation_triple).')';		
Line 56... Line 52...
56
		
52
		$resultat = $this->executerRequete($requete);
Line 57... Line 53...
57
		return $this->grouperResultat($resultat);
53
		return $this->grouperResultat($resultat);