Création entity et model d'authorisation. Création de toute la fonctionnalité de modifier le statut et supprimer un user ok fonction et verif bdd
This commit is contained in:
parent
3a80108ba5
commit
3af2e8a056
14 changed files with 456 additions and 76 deletions
24
entities/authorisation_entity.php
Normal file
24
entities/authorisation_entity.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
require_once("mother_entity.php");
|
||||
|
||||
class Authorisation extends Entity{
|
||||
|
||||
private int $_id;
|
||||
private string $_name = '';
|
||||
|
||||
public function __construct(){
|
||||
$this->_prefix = 'authorisation_';
|
||||
}
|
||||
|
||||
public function getId():int{
|
||||
return $this->_id;
|
||||
}
|
||||
public function setId(int $id){
|
||||
$this->_id = $id;
|
||||
}
|
||||
|
||||
public function getName():string{
|
||||
return $this->_name;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue