|
|
@ -55,11 +55,14 @@ class MdlListe{
|
|
|
|
return $tabListe;
|
|
|
|
return $tabListe;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function findByUser(User $u): array{
|
|
|
|
public function findByUser(string $username): array{
|
|
|
|
$gate=new ListeGateway($this->con);
|
|
|
|
$gate=new ListeGateway($this->con);
|
|
|
|
$gateTache=new TacheGateway($this->con);
|
|
|
|
$gateTache=new TacheGateway($this->con);
|
|
|
|
|
|
|
|
$gateUser=new TacheGateway($this->con);
|
|
|
|
|
|
|
|
|
|
|
|
$results=$gate->findByUserId($u->getId());
|
|
|
|
$id=$gateUser->findByName($username);
|
|
|
|
|
|
|
|
$id=$id['id'];
|
|
|
|
|
|
|
|
$results=$gate->findByUserId($id);
|
|
|
|
$tabListe=[];
|
|
|
|
$tabListe=[];
|
|
|
|
foreach ($results as $row ) {
|
|
|
|
foreach ($results as $row ) {
|
|
|
|
$tabTache=[];
|
|
|
|
$tabTache=[];
|
|
|
|