Subversion Repositories eFlore/Applications.cel

Rev

Rev 1014 | Rev 1425 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
416 aurelien 1
<?php
1152 aurelien 2
// ATTENTION ! Classe compatible uniquement avec nouveau format de bdd du cel //
416 aurelien 3
/**
890 aurelien 4
* PHP Version 5
5
*
6
* @category  PHP
7
* @package   jrest
8
* @author    David Delon <david.delon@clapas.net>
9
* @copyright 2010 Tela-Botanica
10
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
11
* @version   SVN: <svn_id>
12
* @link      /doc/jrest/
13
*/
416 aurelien 14
 
890 aurelien 15
/**
16
* Name.php
17
*
18
* in : utf8
19
* out : utf8
20
*
21
* Cas d'utilisation :
22
* Service recherche nom retenu depuis un numero nomenclatural pour la BDNFF
23
*
24
* 1 : L'application recoit un numero nomenclatural
25
* 2 : L'application retourne le nom retenu associé
26
*/
27
class Name extends Cel {
416 aurelien 28
 
29
	function getElement($uid){
30
 
890 aurelien 31
		$retour = array("null");
32
 
33
		if (isset($uid[0])) {
34
			$chercheur_info_taxon = new RechercheInfosTaxon($this->config);
35
	 		$retour = $chercheur_info_taxon->effectuerRequeteInfosComplementairesEtFormaterNom($uid[0]);
36
		}
416 aurelien 37
 
1014 aurelien 38
		$this->envoyerJson($retour);
39
		return true;
416 aurelien 40
	}
41
 
42
	function getRessource(){
43
			print "[\"null\"]";
44
            return;
45
	}
46
}
47
/* +--Fin du code ---------------------------------------------------------------------------------------+
48
* $Log$
49
* Revision 1.3  2008-01-30 08:57:28  ddelon
50
* fin mise en place mygwt
51
*
52
* Revision 1.2  2007-05-21 18:13:30  ddelon
53
* Refactoring et documentation
54
*
55
*/
890 aurelien 56
?>