2, l'application retourne les 50 premieres lieux commencant par ce prefixe * * @internal Mininum PHP version : 5.2 * @category CEL * @package Services * @subpackage Auto-complétions * @version 0.1 * @author Mathias CHOUET * @author Jean-Pascal MILCENT * @author Aurelien PERONNET * @license GPL v3 * @license CECILL v2 * @copyright 1999-2014 Tela Botanica */ class LocationSearch extends Cel { public function getElement($uid){ $retour = array(); if (isset($uid[0])) { $retour = $this->executerRequeteLieu($uid[0]); } $this->envoyerJson($retour); return true; } public function getRessource() { print '[]'; return; } private function executerRequeteLieu($lieu) { $recherche_infos_zone_geo = new RechercheInfosZoneGeo($this->config); return $recherche_infos_zone_geo->obtenirListeInfosPourNom($lieu); } }