100,24 → 100,6 |
$statuts = $this->formaterRetour($statuts); |
return $statuts; |
} |
|
private 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 = array_map(array($this->bdd,'proteger'), $tab_nn_demandes); |
} |
return $nn_taxons_sup; |
} |
|
//+---------------------------FONCTIONS DE FORMATAGE---------------------------------------------------------+ |
|
private function formaterRetour($statuts_taxon) { |