1,20 → 1,20 |
<?php |
// declare(encoding='UTF-8'); |
/** |
* PHP Version 5 |
* |
* @category PHP |
* @package annuaire |
* @author aurelien <aurelien@tela-botanica.org> |
* @copyright 2010 Tela-Botanica |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL |
* @version SVN: <svn_id> |
* @link /doc/annuaire/ |
*/ |
* Service retournant des informations sur l'utilisateur. |
* |
* @category php 5.2 |
* @package Annuaire::Services |
* @author Aurélien PERONNET <aurelien@tela-botanica.org> |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @copyright Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org) |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL |
* @version $Id$ |
*/ |
class InformationsUtilisateur extends JRestService { |
|
Class InformationsUtilisateur extends JRestService { |
|
public function getElement($uid){ |
|
$mail_utilisateur = $uid[0]; |
|
$identificateur = new IdentificationControleur(); |
21,7 → 21,7 |
$login = $identificateur->obtenirLoginUtilisateurParCookie(); |
|
|
if($mail_utilisateur != $login) { |
if ($mail_utilisateur != $login) { |
return; |
} |
|
28,7 → 28,7 |
$id_annuaire = Config::get('annuaire_defaut'); |
|
$controleur = new AnnuaireControleur(); |
$valeurs = $controleur->obtenirInfosUtilisateurOpenId($id_annuaire,$mail_utilisateur, true); |
$valeurs = $controleur->obtenirInfosUtilisateurOpenId($id_annuaire, $mail_utilisateur, true); |
|
$this->envoyer($valeurs); |
} |