* @author Jean-Pascal MILCENT * @author Aurelien PERONNET * @license GPL v3 * @license CECILL v2 * @copyright 1999-2014 Tela Botanica */ class InventoryLocationList extends Cel { public function getElement($uid) { // Controle detournement utilisateur $this->controleUtilisateur($uid[0]); $idUtilisateurP = Cel::db()->proteger($uid[0]); $requete = 'SELECT DISTINCT pays, ce_zone_geo, zone_geo, lieudit, station '. 'FROM cel_obs '. "WHERE ce_utilisateur = $idUtilisateurP ". 'ORDER BY pays ASC, ce_zone_geo ASC, zone_geo ASC, lieudit ASC, station ASC '. ' -- '.__FILE__.':'.__LINE__; $resultats = Cel::db()->requeter($requete); $retour = (is_array($resultats)) ? $resultats : array(); $this->envoyerJson($retour); return true; } }