Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 658 → Rev 659

/trunk/services/modules/0.1/nvjfl/NomsVernaculaires.php
203,8 → 203,10
//+------------------------------------------------------------------------------------------------------+
public function assemblerLaRequete() {
$requete = ' SELECT '.$this->formerRequeteChamp().
', CASE num_statut WHEN "" THEN 1 ELSE 0 END AS is_null '.
' FROM '.$this->table
.$this->formerRequeteCondition()
.$this->formerRequeteCondition().
' ORDER BY is_null ASC, num_statut ASC '
.$this->formerRequeteLimite();
return $requete;
}
384,7 → 386,7
}
}
}
if ($this->retour_format == 'max') {
// On est obligé de faire un deuxième boucle pour demander tous les taxons présents en une
// fois et les attribuer aux noms car c'est beaucoup plus rapide
397,7 → 399,6
}
}
uasort($resultat_json, array($this,'trierLigneTableau'));
$table_retour_json['resultat'] = $resultat_json;
return $table_retour_json;
}