Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3318 Rev 3334
Line 150... Line 150...
150
			$json = $this->getDao()->consulter($url);
150
			$json = $this->getDao()->consulter($url);
151
			$estProjetDefini = false;
151
			$estProjetDefini = false;
152
		}
152
		}
153
		$tableau = json_decode($json, true);
153
		$tableau = json_decode($json, true);
154
		$tableau = $this->traiterParametres($estProjetDefini, $tableau[0]);
154
		$tableau = $this->traiterParametres($estProjetDefini, $tableau[0]);
-
 
155
		if (isset($this->parametres['squelette']) && $this->parametres['squelette'] === 'lichens') {
-
 
156
			$tableau['type_especes'] = 'liste';
-
 
157
		}
155
		$tableau['especes'] = $this->rechercherInfosEspeces($tableau);
158
		$tableau['especes'] = $this->rechercherInfosEspeces($tableau);
156
		if ($tableau['milieux'] != "") {
159
		if ($tableau['milieux'] != "") {
157
			$tableau['milieux'] = explode(";", $tableau['milieux']);
160
			$tableau['milieux'] = explode(";", $tableau['milieux']);
158
		} else {
161
		} else {
159
			$tableau['milieux'] = array();
162
			$tableau['milieux'] = array();
Line 360... Line 363...
360
	/**
363
	/**
361
	 * Lit une liste de taxons depuis un fichier tsv fourni
364
	 * Lit une liste de taxons depuis un fichier tsv fourni
362
	 */
365
	 */
363
	protected function recupererListeTaxon() {
366
	protected function recupererListeTaxon() {
364
		$taxons = array();
367
		$taxons = array();
365
		$langue_projet_url = ( isset ( $this->parametres['langue'] ) && $this->parametres['langue'] !== 'fr' ) ? '_' . $this->parametres['langue'] : '';
368
		// utiliser la ligne ci-dessous quand la liste des lichens sera prĂȘte
366
		$chemin_images = dirname(__FILE__) . self::DS . 'configurations' . self::DS;
369
		// $fichier_tsv = dirname(__FILE__) . self::DS . 'configurations' . self::DS . 'lichens.tsv';
367
		$fichier_tsv = $chemin_images . 'sauvages_taxons.tsv';
370
		$fichier_tsv = dirname(__FILE__) . self::DS . 'configurations' . self::DS . 'sauvages_taxons.tsv';
Line 368... Line 371...
368
 
371
 
369
		if ( file_exists( $fichier_tsv ) && is_readable( $fichier_tsv ) ) {
372
		if ( file_exists( $fichier_tsv ) && is_readable( $fichier_tsv ) ) {
370
			$taxons = $this->decomposerFichierTsv( $fichier_tsv );
373
			$taxons = $this->decomposerFichierTsv( $fichier_tsv );
371
		} else {
374
		} else {