Subversion Repositories eFlore/Applications.cel

Rev

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

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