32,6 → 32,8 |
public function getElement($uid) |
{ |
$format = 'json'; |
$retour_completion_noms = json_encode(array()); |
$recherche = ''; |
|
$this->debut = isset($_GET['debut']) ? $_GET['debut'] : $this->debut; |
$this->limite = isset($_GET['limite']) ? $_GET['limite'] : $this->limite; |
38,6 → 40,9 |
|
$format = isset($_GET['format']) ? strtolower($_GET['format']) : $format; |
$recherche = isset($uid[0]) && $uid[0] != '' ? $uid[0] : ''; |
$recherche_suite = isset($uid[1]) && $uid[1] != '' ? '/'.$uid[1] : ''; |
|
$recherche .= $recherche_suite; |
|
switch ($format) { |
case 'json': |
46,7 → 51,7 |
break; |
} |
|
$this->envoyer($retour,$mime); |
$this->envoyer($retour_completion_noms,$mime); |
} |
|
private function obtenirNomsCompletes($requete) { |