Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 31 | Rev 71 | 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 in_array('2',array_keys($GLOBALS['user']->roles));
        }
        
        public function getFormulaireidentification() {
                return $GLOBALS['right'];
        }
}
?>