Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 939 → Rev 940

/trunk/services/modules/0.1/commun/Commun.php
562,5 → 562,24
imagefill($img, 0, 0, $blanc);
imagepng($img, $fichierPng, 9, PNG_ALL_FILTERS);
}
//+------------------------------------------------------------------------------------------------------+
// Fonctions appelées par plusieurs web services
public function obtenirNumNomTaxonsSuperieurs($nn_demande) {
$nn_taxons_sup = array();
// TODO: ceci ramène trop de champs alors que l'on a besoin que du numéro nomenclatural
// et il y a peut-être un meilleur moyen que ramener la hierarchie des taxons supérieurs
// mais pour le moment ça marche et c'est assez rapide
$url = $this->ajouterHrefAutreProjet('taxons', $nn_demande, '/relations/superieurs',Config::get('referentiel'));
$classification = $this->consulterHref($url);
$classification = is_object($classification) ? get_object_vars($classification) : array();
if(isset($classification[$nn_demande])) {
$classification_nn_demande = get_object_vars($classification[$nn_demande]);
$tab_nn_demandes = array_keys($classification_nn_demande);
$nn_taxons_sup = $tab_nn_demandes;
}
return $nn_taxons_sup;
}
}
?>