con=$con; } // 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)'; $this->con->executeQuery($query, array( ':id'=> array($t->get_id(),PDO::PARAM_STR), ':titre'=> array($t->get_titre(),PDO::PARAM_STR), ':descript'=> array($t->get_description(),PDO::PARAM_STR), ':priorite'=> array($t->get_priorite(),PDO::PARAM_STR) )); } public function update($id_task){ // update a task } public function delete($id_task){ // delete a task } # comment ça marche ? public function Find($element, $valeur){ // Find a task by multiple elements // returns the array of found tasks } } ?>