1, l'application retourne les 50 premieres genre commencant par ce prefixe * 3 : Si l'espece est presente l'application retourne les 50 premieres genre+espece 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 NameSearch extends Cel { public function getRessource(){ //TODO: description du service à renvoyer print '[]'; return; } public function getElement($uid){ $referentiel = isset($uid[0]) ? $uid[0] : null; $genre = isset($uid[1]) ? $uid[1] : null; $espece = isset($uid[2]) ? $uid[2] : null; $chercheur_infos_taxon = new RechercheInfosTaxonBeta($this->config, $referentiel); $liste_genre_espece = $chercheur_infos_taxon->rechercherGenreEspeceSurPrefixe($genre,$espece); $this->envoyerJson($liste_genre_espece); return true; } }