verifier fonctions de gateway apres ajout de isDone

list-Gtw-Mdl
Nicolas FRANCO 2 years ago
parent 93a3c56d12
commit 362497143d

@ -9,7 +9,7 @@
private string $idlist; // # id associating task to list
private bool $isDone; // # si la tache est complete
function __construct($id,$titre,$description,$priorite,$idl,$dateDeb="",$dateFin="") {
function __construct($id,$titre,$description,$priorite,$idl,$dateDeb="",$dateFin="",$isDone=false) {
$this->set_id($id);
$this->set_titre($titre);
$this->set_description($description);

@ -15,7 +15,7 @@ class TaskGateway
// functions
// code de retour pour les fonctions i,u,d?
public function insert(Task $t){
$query='INSERT INTO Tache VALUES (:id,:titre,:descript,NULL,NULL,:priorite,:idList)';
$query='INSERT INTO Tache VALUES (:id,:titre,:descript,NULL,NULL,:priorite,:idList,NULL)';
$this->con->executeQuery($query, array(
':id'=> array($t->get_id(),PDO::PARAM_STR),

Loading…
Cancel
Save