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.

25 lines
584 B

<?php
class ListeModel{
public $listgw;
function __construct(){
global $rep,$vues,$bd;
$co = new Connection($bd['dsn'],$bd['user'],$bd['pswd']);
$this->listgw = new ListeGateway($co);
}
function creerListe(string $nom, $private){
if(isset($_SESSION['login'])){
if($private="on"){
$this->listgw->creerListe($nom,$_SESSION['login']);
}else{
$this->listgw->creerListe($nom,null);
}
}else{
$this->listgw->creerListe($nom,null);
}
}
}
?>