You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
675 B
32 lines
675 B
<?php
|
|
|
|
class UserModel{
|
|
public $listgw;
|
|
public $usergw;
|
|
|
|
public function __construct(){
|
|
$co = new Connection();
|
|
$this->usergw = new UserGateway($co);
|
|
$this->listgw = new ListeGateway($co);
|
|
}
|
|
|
|
public function deconnection(){
|
|
session_unset();
|
|
session_destroy();
|
|
$_SESSION = array();
|
|
}
|
|
|
|
public function creerListePv($nom,$idCeator){
|
|
$this->listgw->creerListe($nom,$idCreator);
|
|
}
|
|
|
|
public function desinscription($login){
|
|
$this->usergw->delUtilisateur($login);
|
|
}
|
|
|
|
public function changerPassword($newPassword){
|
|
$this->usergw->putPassword($newPassword);
|
|
}
|
|
}
|
|
|
|
?>
|