|
|
|
@ -120,6 +120,20 @@ class TaskGateway
|
|
|
|
|
':user'=> array($l->get_owner(),PDO::PARAM_STR)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function count($list){
|
|
|
|
|
$query='SELECT COUNT(*) from Tache where idList = :idList';
|
|
|
|
|
|
|
|
|
|
$this->con->executeQuery($query, array(
|
|
|
|
|
':idList' => array($list->get_id(),PDO::PARAM_INT)
|
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
$result = $this->con->getResults();
|
|
|
|
|
foreach($result as $row){
|
|
|
|
|
$taille = $row[0];
|
|
|
|
|
}
|
|
|
|
|
return $taille;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function findUserList($user){
|
|
|
|
|
# pas réussit a faire une jointure optimale donc
|
|
|
|
|
# decomposé en plusieurs foncitons:
|
|
|
|
|