/trunk/services/modules/0.1/liste-rouge/Categorie.php |
---|
File deleted |
\ No newline at end of file |
/trunk/services/modules/0.1/sptb/Statuts.php |
---|
99,7 → 99,25 |
$statuts = $this->bdd->recuperer($requete); |
$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) { |
/trunk/services/modules/0.1/sptba/Statuts.php |
---|
99,7 → 99,25 |
$statuts = $this->bdd->recuperer($requete); |
$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) { |
/trunk/services/modules/0.1/commun/Commun.php |
---|
562,24 → 562,5 |
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; |
} |
} |
?> |
/trunk/services/configurations/config_liste-rouge.ini |
---|
File deleted |