Subversion Repositories Applications.annuaire

Rev

Rev 69 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 69 Rev 259
Line 1... Line 1...
1
<?php
1
<?php
2
/**
2
/**
3
* PHP Version 5
3
* PHP Version 5
4
*
4
*
5
* @category  PHP
5
* @category  PHP
6
* @package   annuaire
6
* @package   annuaire
7
* @author    aurelien <aurelien@tela-botanica.org>
7
* @author    aurelien <aurelien@tela-botanica.org>
8
* @copyright 2010 Tela-Botanica
8
* @copyright 2010 Tela-Botanica
9
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
9
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
10
* @version   SVN: <svn_id>
10
* @version   SVN: <svn_id>
11
* @link      /doc/annuaire/
11
* @link      /doc/annuaire/
12
*/
12
*/
13
 
13
 
14
Class InformationsUtilisateur extends JRestService {
14
Class InformationsUtilisateur extends JRestService {
15
 
15
 
16
	public function getElement($uid){
16
	public function getElement($uid){
17
 
17
 
18
	    $mail_utilisateur = $uid[0];
18
	    $mail_utilisateur = $uid[0];
-
 
19
	    
-
 
20
	    $identificateur = new IdentificationControleur();
-
 
21
		$login = $identificateur->obtenirLoginUtilisateurParCookie();
-
 
22
		
-
 
23
		
-
 
24
	    if($mail_utilisateur != $login) {
-
 
25
	    	return;
-
 
26
	    }
-
 
27
	    
19
	    $id_annuaire = Config::get('annuaire_defaut');
28
	    $id_annuaire = Config::get('annuaire_defaut');
20
 
29
 
21
	    $controleur = new AnnuaireControleur();
30
	    $controleur = new AnnuaireControleur();
22
		$valeurs = $controleur->obtenirInfosUtilisateurOpenId($id_annuaire,$mail_utilisateur, true);
31
		$valeurs = $controleur->obtenirInfosUtilisateurOpenId($id_annuaire,$mail_utilisateur, true);
23
 
32
 
24
		$this->envoyer($valeurs);
33
		$this->envoyer($valeurs);
25
	}
34
	}
26
}
35
}
27
?>
36
?>
28
37