Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 937 Rev 940
Line 560... Line 560...
560
		imagetruecolortopalette($img, false, 32);
560
		imagetruecolortopalette($img, false, 32);
561
		$blanc = imagecolorallocate($img, 255, 255, 255);
561
		$blanc = imagecolorallocate($img, 255, 255, 255);
562
		imagefill($img, 0, 0, $blanc);
562
		imagefill($img, 0, 0, $blanc);
563
		imagepng($img, $fichierPng, 9, PNG_ALL_FILTERS);
563
		imagepng($img, $fichierPng, 9, PNG_ALL_FILTERS);
564
	}
564
	}
-
 
565
	
-
 
566
	//+------------------------------------------------------------------------------------------------------+
-
 
567
	// Fonctions appelées par plusieurs web services
-
 
568
	public function obtenirNumNomTaxonsSuperieurs($nn_demande) {
-
 
569
		$nn_taxons_sup = array();
-
 
570
		// TODO: ceci ramène trop de champs alors que l'on a besoin que du numéro nomenclatural
-
 
571
		// et il y a peut-être un meilleur moyen que ramener la hierarchie des taxons supérieurs
-
 
572
		// mais pour le moment ça marche et c'est assez rapide
-
 
573
		$url = $this->ajouterHrefAutreProjet('taxons', $nn_demande, '/relations/superieurs',Config::get('referentiel'));
-
 
574
		$classification = $this->consulterHref($url);
-
 
575
		$classification = is_object($classification) ? get_object_vars($classification) : array();
-
 
576
		
-
 
577
		if(isset($classification[$nn_demande])) {
-
 
578
			$classification_nn_demande = get_object_vars($classification[$nn_demande]);
-
 
579
			$tab_nn_demandes = array_keys($classification_nn_demande);
-
 
580
			$nn_taxons_sup = $tab_nn_demandes;
-
 
581
		}
-
 
582
		return $nn_taxons_sup;
-
 
583
	}
565
}
584
}
566
?>
585
?>
567
586