isDone and done counter added

list-Gtw-Mdl
Nicolas FRANCO 2 years ago
parent a44a50eee4
commit e9205a065c

@ -2,10 +2,15 @@
class ListTask{ class ListTask{
private int $id; private int $id;
private array $taches; private array $taches;
private string $nom;
private string $owner;
private int $dc; // done counter
function __construct($id, $taches) { function __construct($id, $nom, $owner="") {
$this->id = $id; $this->id = $id;
$this->taches = $taches; $this->nom = $nom;
$this->taches = [];
$this->owner = $owner;
} }
function get_id() { function get_id() {
@ -23,5 +28,31 @@
function set_taches($taches) { function set_taches($taches) {
$this->taches = $taches; $this->taches = $taches;
} }
function get_nom() {
return $this->nom;
}
function set_nom($nom) {
$this->nom= $nom;
}
function get_owner() {
return $this->owner;
}
function set_owner($owner) {
$this->owner = $owner;
}
function get_dc() {
return $this->dc;
}
function set_dc($dc) {
$this->dc = $dc;
}
} }
?> ?>

@ -7,6 +7,7 @@
private $dateFin; # $today = date("m.d.y") private $dateFin; # $today = date("m.d.y")
private string $priorite; private string $priorite;
private string $idlist; // # id associating task to list 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="") {
$this->set_id($id); $this->set_id($id);
@ -74,5 +75,13 @@
$this->idList = $idList; $this->idList = $idList;
} }
function get_isDone() {
return $this->isDone;
}
function set_isDone($isDone) {
$this->isDone = $isDone;
}
} }
?> ?>

Loading…
Cancel
Save