namespace de fait hehe
This commit is contained in:
parent
6c21a5f1cb
commit
0638834933
23 changed files with 131 additions and 81 deletions
30
models/AuthorisationModel.php
Normal file
30
models/AuthorisationModel.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
namespace Models;
|
||||
use \PDO;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Traitement des requêtes pour le status de l'utilisateur
|
||||
* @author : Laura
|
||||
*/
|
||||
|
||||
class AuthorisationModel extends MotherModel{
|
||||
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* fonction de récupération des infos d'authorisation
|
||||
* @return array
|
||||
*/
|
||||
public function findAllAuthorisation():array{
|
||||
|
||||
$strRq = "SELECT *
|
||||
FROM authorisation";
|
||||
|
||||
return $this->_db->query($strRq)->fetchAll();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue