Subversion Repositories eFlore/Applications.cel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 3856 → Rev 3857

/branches/v3.01-serpe/jrest/services/InventoryImport.php
New file
0,0 → 1,33
<?php
// declare(encoding='UTF-8');
/**
* Service importation releve en cours :
* 1 : L'utilisateur à traiter est communique au service
* 2 : Les releves associés à la session en cours sont transferés à l'utilisateur identifié
*
* @internal Mininum PHP version : 5.2
* @category CEL
* @package Services
* @subpackage Observations
* @version 0.1
* @author Mathias CHOUET <mathias@tela-botanica.org>
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
* @author Aurelien PERONNET <aurelien@tela-botanica.org>
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org>
*/
class InventoryImport extends Cel {
 
public function getElement($uid){
// Controle detournement utilisateur
$this->controleUtilisateur($uid[0]);
 
$gestionnaireObs = new GestionObservation($this->config);
$migration_compte_a_compte = $gestionnaireObs->migrerObservations(session_id(), $uid[0]);
 
$retour = ($migration_compte_a_compte) ? 'OK' : false;
echo $retour;
exit();
}
}
Property changes:
Added: svn:executable
+*
\ No newline at end of property