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.
29 lines
811 B
29 lines
811 B
<?php
|
|
|
|
class MdlUtilisateur
|
|
{
|
|
|
|
public function __construct(){
|
|
|
|
}
|
|
|
|
public static function CreerUtilisateur(){
|
|
global $dVueEreur;
|
|
$userGtw = new UtilisateurGateway();
|
|
// $verif = Validation::val_form_user($_POST["nom-Form"],$_POST["prenom-Form"],$_POST["pseudo-Form"],$_POST["password-Form"],$_POST["mail-Form"],$dVueEreur);
|
|
// if($verif == false){
|
|
// throw new Exception();
|
|
// }
|
|
// $hash = password_hash($_POST[password-Form], PASSWORD_DEFAULT);
|
|
$userGtw->AjouterUtilisateur($_POST["nom-Form"],$_POST["prenom-Form"],$_POST["pseudo-Form"],$_POST["mail-Form"],$_POST["password-Form"]);
|
|
}
|
|
|
|
public static function RecupererListePublic(){
|
|
$userGtw = new ListeGateway();
|
|
return $userGtw->getListePublic(0,10);
|
|
}
|
|
|
|
|
|
|
|
}
|