Merge pull request #15 from Yasder5/guillaume
Fonctionnalité Modération sous Smarty + Débug
This commit is contained in:
commit
6eb58674be
13 changed files with 1046 additions and 22 deletions
|
|
@ -122,4 +122,32 @@
|
|||
|
||||
return $rqPrep->fetch();
|
||||
}
|
||||
|
||||
public function accept(int $id){
|
||||
|
||||
//SQL pour changer le status en accept
|
||||
$strRq = "UPDATE project
|
||||
SET project_status= 'publié'
|
||||
WHERE project_id =".$id;
|
||||
|
||||
//retourne la commande
|
||||
return $this->_db->query($strRq);
|
||||
}
|
||||
|
||||
public function refuse(int $id){
|
||||
|
||||
$strRq = "UPDATE project
|
||||
SET project_status= 'refusé'
|
||||
WHERE project_id =".$id;
|
||||
|
||||
return $this->_db->query($strRq);
|
||||
}
|
||||
|
||||
public function delete(int $id){
|
||||
|
||||
$strRq = "DELETE FROM project
|
||||
WHERE project_id =".$id;
|
||||
|
||||
return $this->_db->query($strRq);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue