Subversion Repositories Sites.obs-saisons.fr

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
207 aurelien 1
<?php
2
class Utilisateur {
3
 
4
	public function getIdentifiantNumerique() {
5
		return $GLOBALS['user']->uid;
6
	}
7
 
8
	public function getEmail() {
9
		return $GLOBALS['user']->mail;
10
	}
11
 
12
	public function getNom() {
13
		return $GLOBALS['user']->name;
14
	}
15
 
16
	public function getPrenom() {
17
		return '';
18
	}
19
 
20
	public function estAdmin() {
21
		return in_array('3',array_keys($GLOBALS['user']->roles));
22
	}
23
 
24
	public function estIdentifie() {
25
		return user_is_logged_in();
26
	}
27
 
28
	public function getFormulaireIdentification() {
29
 
30
		return drupal_get_form('user_login_block');
31
	}
32
 
33
	public function getFormulaireInscription() {
34
 
35
		return drupal_get_form('user_register');
36
	}
37
}
38
?>