Subversion Repositories eFlore/Applications.cel

Rev

Rev 1425 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
416 aurelien 1
<?php
2458 jpm 2
// declare(encoding='UTF-8');
416 aurelien 3
/**
2458 jpm 4
 * Service recherche nom retenu depuis un numero nomenclatural pour la BDNFF
5
 *
6
 * 1 : L'application recoit un numero nomenclatural
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>
20
 */
890 aurelien 21
class Name extends Cel {
416 aurelien 22
 
2458 jpm 23
	public function getElement($uid){
24
		$retour = array('null');
25
		if (isset($uid[0])) {
26
			$chercheurInfoTaxon = new RechercheInfosTaxonBeta($this->config);
27
	 		$retour = $chercheurInfoTaxon->effectuerRequeteInfosComplementairesEtFormaterNom($uid[0]);
890 aurelien 28
		}
2458 jpm 29
		$this->envoyerJson($retour);
30
		return true;
416 aurelien 31
	}
2458 jpm 32
 
33
	public function getRessource(){
34
		print '["null"]';
35
		return;
416 aurelien 36
	}
2458 jpm 37
}