| 325 |
jpm |
1 |
<?php
|
| 326 |
jpm |
2 |
// declare(encoding='UTF-8');
|
| 325 |
jpm |
3 |
/**
|
| 326 |
jpm |
4 |
* Service retournant l'id d'un utilisateur en fonction de son courriel.
|
|
|
5 |
*
|
|
|
6 |
* @category php 5.2
|
|
|
7 |
* @package Annuaire::Services
|
|
|
8 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org>
|
|
|
9 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
|
|
10 |
* @copyright Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
|
|
|
11 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
|
|
12 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
|
|
13 |
* @version $Id$
|
|
|
14 |
*/
|
|
|
15 |
class IdUtilisateur extends JRestService {
|
| 325 |
jpm |
16 |
|
|
|
17 |
public function getElement($uid){
|
|
|
18 |
$mail_utilisateur = $uid[0];
|
|
|
19 |
$id_annuaire = Config::get('annuaire_defaut');
|
|
|
20 |
|
|
|
21 |
$controleur = new AnnuaireControleur();
|
|
|
22 |
$mail = $controleur->ObtenirIdParMail($id_annuaire, $mail_utilisateur);
|
|
|
23 |
|
|
|
24 |
$this->envoyer($mail);
|
|
|
25 |
}
|
|
|
26 |
}
|
|
|
27 |
?>
|