Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 33 Rev 41
Line 111... Line 111...
111
       
111
       
112
        // Envoie sur la sortie standard
112
        // Envoie sur la sortie standard
113
        $this->envoyer();
113
        $this->envoyer();
Line -... Line 114...
-
 
114
    }
-
 
115
    
-
 
116
    private function getElementParDefaut($params) {
-
 
117
    	return $this->getInformationsIndividu($params);
114
    }
118
    }
Line 115... Line 119...
115
    
119
    
Line 116... Line 120...
116
    private function getInformationsIndividu($params) {
120
    private function getInformationsIndividu($params) {
117
    	
121
    	
-
 
122
    	$id_individu = $params[0];
118
    	$id_individu = $params[0];
123
 
-
 
124
    	$requete_informations_individu = 'SELECT * FROM ods_individus '. 
-
 
125
								'WHERE oi_id_individu = '.$this->proteger($id_individu);
-
 
126
    	
-
 
127
    	$informations_individu = $this->executerRequete($requete_informations_individu);
-
 
128
    	
-
 
129
    	if(!empty($informations_individu)) {
Line 119... Line 130...
119
 
130
    		$informations_individu_formatees = $this->formaterTableauIndividuPourEnvoi($informations_individu[0]);
Line 120... Line 131...
120
    	$requete_toute_espece = 'SELECT * FROM ods_individus '. 
131
    	}
Line 159... Line 170...
159
    }
170
    }
Line 160... Line 171...
160
    
171
    
Line 161... Line 172...
161
	private function formaterTableauIndividuPourEnvoi($individu) {
172
	private function formaterTableauIndividuPourEnvoi($individu) {
162
    	
173
    	
163
    	return array( 
174
    	return array( 
164
    	    'id_espece' => $individu['oi_id_individu'],
175
    	    'id_individu' => $individu['oi_id_individu'],
165
            'id_espece' => $individu['oi_ce_espece'],
176
            'id_espece' => $individu['oi_ce_espece'],
166
            'id_station' => $individu['oi_ce_station'],
177
            'id_station' => $individu['oi_ce_station'],