Subversion Repositories eFlore/Applications.cel

Rev

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

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