Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 44 | Rev 97 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
class DrupalUtilisateur extends Utilisateur {
        
        public function getIdentifiantNumerique() {
                return $GLOBALS['user']->uid;
        }
        
        public function getEmail() {
                return $GLOBALS['user']->mail;
        }
        
        public function getNom() {
                return $GLOBALS['user']->name;
        }
        
        public function getPrenom() {
                return '';      
        }
        
        public function estAdmin() {
                return in_array('3',array_keys($GLOBALS['user']->roles));
        }
        
        public function estIdentifie() {
                                
                return user_is_logged_in();
        }
        
        public function getFormulaireIdentification() {
                
                return drupal_get_form('user_login_block');
        }
        
        public function getFormulaireInscription() {
                
                return drupal_get_form('user_register');
        }
}
?>