Subversion Repositories eFlore/Applications.cel

Rev

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

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