|
|
|
@ -3,14 +3,19 @@
|
|
|
|
|
private int $id;
|
|
|
|
|
private string $titre;
|
|
|
|
|
private string $description;
|
|
|
|
|
private DateTime $dateDeb;
|
|
|
|
|
private DateTime $dateFin;
|
|
|
|
|
private $dateDeb;
|
|
|
|
|
private $dateFin; # $today = date("m.d.y")
|
|
|
|
|
private string $priorite;
|
|
|
|
|
private string $idlist; // # id associating task to list
|
|
|
|
|
private string $idlist; // # id associating task to list
|
|
|
|
|
|
|
|
|
|
function __construct($id, $titre, $description, $dateDeb, $dateFin, $priorite) {
|
|
|
|
|
$this->titre = $titre;
|
|
|
|
|
$this->description = $description;
|
|
|
|
|
function __construct($id,$titre,$description,$priorite,$idl,$dateDeb="",$dateFin="") {
|
|
|
|
|
$this->set_id($id);
|
|
|
|
|
$this->set_titre($titre);
|
|
|
|
|
$this->set_description($description);
|
|
|
|
|
$this->set_priorite($priorite);
|
|
|
|
|
$this->set_dateDeb($dateDeb);
|
|
|
|
|
$this->set_dateFin($dateFin);
|
|
|
|
|
$this->set_idlist($idl);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function get_id() {
|
|
|
|
|