| Line 97... |
Line 97... |
| 97 |
"num_nom IN (".implode(', ', $conditions_taxons).") ";
|
97 |
"num_nom IN (".implode(', ', $conditions_taxons).") ";
|
| Line 98... |
Line 98... |
| 98 |
|
98 |
|
| 99 |
$statuts = $this->bdd->recuperer($requete);
|
99 |
$statuts = $this->bdd->recuperer($requete);
|
| 100 |
$statuts = $this->formaterRetour($statuts);
|
100 |
$statuts = $this->formaterRetour($statuts);
|
| 101 |
return $statuts;
|
101 |
return $statuts;
|
| 102 |
}
|
- |
|
| 103 |
|
- |
|
| 104 |
private function obtenirNumNomTaxonsSuperieurs($nn_demande) {
|
- |
|
| 105 |
$nn_taxons_sup = array();
|
- |
|
| 106 |
// TODO: ceci ramène trop de champs alors que l'on a besoin que du numéro nomenclatural
|
- |
|
| 107 |
// et il y a peut-être un meilleur moyen que ramener la hierarchie des taxons supérieurs
|
- |
|
| 108 |
// mais pour le moment ça marche et c'est assez rapide
|
- |
|
| 109 |
$url = $this->ajouterHrefAutreProjet('taxons', $nn_demande, '/relations/superieurs',Config::get('referentiel'));
|
- |
|
| 110 |
$classification = $this->consulterHref($url);
|
- |
|
| 111 |
$classification = is_object($classification) ? get_object_vars($classification) : array();
|
- |
|
| 112 |
|
- |
|
| 113 |
if(isset($classification[$nn_demande])) {
|
- |
|
| 114 |
$classification_nn_demande = get_object_vars($classification[$nn_demande]);
|
- |
|
| 115 |
$tab_nn_demandes = array_keys($classification_nn_demande);
|
- |
|
| 116 |
$nn_taxons_sup = array_map(array($this->bdd,'proteger'), $tab_nn_demandes);
|
- |
|
| 117 |
}
|
- |
|
| 118 |
return $nn_taxons_sup;
|
- |
|
| 119 |
}
|
- |
|
| 120 |
|
102 |
}
|
| Line 121... |
Line 103... |
| 121 |
//+---------------------------FONCTIONS DE FORMATAGE---------------------------------------------------------+
|
103 |
//+---------------------------FONCTIONS DE FORMATAGE---------------------------------------------------------+
|
| 122 |
|
104 |
|
| 123 |
private function formaterRetour($statuts_taxon) {
|
105 |
private function formaterRetour($statuts_taxon) {
|