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.
31 lines
625 B
31 lines
625 B
<?php
|
|
|
|
namespace model;
|
|
|
|
use gateway\UserGateway;
|
|
|
|
class MdlStudent extends AbsModel
|
|
{
|
|
/**
|
|
* @param UserGateway $gtw
|
|
*/
|
|
public function __construct(UserGateway $gtw)
|
|
{
|
|
parent::__construct($gtw, "student");
|
|
}
|
|
|
|
/*
|
|
public function isStudent(){
|
|
if( isset ($_SESSION['login']) && isset ($_SESSION['role'])){
|
|
//Créer une classe nettoyer
|
|
$login=Nettoyer::nettoyer_string($_SESSION['login']);
|
|
$role=Nettoyer::nettoyer_string($_SESSION['role']);
|
|
return self::$gtw->findUserByEmail($login);
|
|
}
|
|
else return null;
|
|
}
|
|
*/
|
|
|
|
}
|
|
|