Subversion Repositories eFlore/Applications.cel

Rev

Rev 890 | Rev 1014 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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