Rev 71 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
abstract class Utilisateur extends aControleur {
public function setIdentite($identite) {
$_SESSION['ods_saisie']['identite'] = $identite;
}
public function getIdentite() {
if($this->estAdmin()) {
if(!isset($_SESSION['ods_saisie']['identite']) || $_SESSION['ods_saisie']['identite'] == '') {
return $this->getIdentifiantNumerique();
}
return $_SESSION['ods_saisie']['identite'];
} else {
return $this->getIdentifiantNumerique();
}
}
public function getIdentifiantNumerique() {
return 0;
}
public function getEmail() {
return '';
}
public function getNom() {
return '';
}
public function getPrenom() {
return '';
}
public function estIdentifie() {
return false;
}
public function estAdmin() {
return false;
}
public function getFormulaireidentification() {
return '';
}
public function getFormulaireInscription() {
return '';
}
}
?>