Subversion Repositories eFlore/Applications.cel

Rev

Rev 1425 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1425 Rev 2458
Line 1... Line 1...
1
<?php
1
<?php
2
// ATTENTION ! Classe compatible uniquement avec nouveau format de bdd du cel //
2
// declare(encoding='UTF-8');
3
/**
3
/**
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
*/
-
 
14
 
-
 
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
4
 * Service recherche nom retenu depuis un numero nomenclatural pour la BDNFF
23
* 
5
 *
24
* 1 : L'application recoit un numero nomenclatural
6
 * 1 : L'application recoit un numero nomenclatural
25
* 2 : L'application retourne le nom retenu associƩ
7
 * 2 : L'application retourne le nom retenu associƩ
-
 
8
 *
-
 
9
 * @internal   Mininum PHP version : 5.2
-
 
10
 * @category   CEL
-
 
11
 * @package    Services
-
 
12
 * @subpackage Observations
-
 
13
 * @version    0.1
-
 
14
 * @author     Mathias CHOUET <mathias@tela-botanica.org>
-
 
15
 * @author     Jean-Pascal MILCENT <jpm@tela-botanica.org>
-
 
16
 * @author     Aurelien PERONNET <aurelien@tela-botanica.org>
-
 
17
 * @license    GPL v3 <http://www.gnu.org/licenses/gpl.txt>
-
 
18
 * @license    CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
-
 
19
 * @copyright  1999-2014 Tela Botanica <accueil@tela-botanica.org>
26
*/
20
 */
27
class Name extends Cel {
21
class Name extends Cel {
Line 28... Line 22...
28
 
22
 
29
	function getElement($uid){
-
 
30
		
23
	public function getElement($uid){
31
		$retour = array("null"); 
-
 
32
	
24
		$retour = array('null');
33
		if (isset($uid[0])) {			
25
		if (isset($uid[0])) {
34
			$chercheur_info_taxon = new RechercheInfosTaxonBeta($this->config);
26
			$chercheurInfoTaxon = new RechercheInfosTaxonBeta($this->config);
35
	 		$retour = $chercheur_info_taxon->effectuerRequeteInfosComplementairesEtFormaterNom($uid[0]);	 			 		
27
	 		$retour = $chercheurInfoTaxon->effectuerRequeteInfosComplementairesEtFormaterNom($uid[0]);
36
		}
-
 
37
		
28
		}
38
		$this->envoyerJson($retour);			
29
		$this->envoyerJson($retour);
39
		return true;	
30
		return true;
Line 40... Line 31...
40
	}
31
	}
41
	
32
 
42
	function getRessource(){
33
	public function getRessource(){
43
			print "[\"null\"]"; 
34
		print '["null"]';
44
            return;
35
		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
*/
36
	}