\\Dia.dev.villejuif.fr\symfony\tache\apps\frontend\modules\taches\actions\actions.class.php
  public function executeIndex(sfWebRequest $request)
  {
    $type = $request->getParameter('type');
    $this->etat = $request->getParameter('etat');
    $this->taches = Doctrine::getTable('Tache')->retrieveTacheWithJoins();
    $this->tab = array();
    $this->comments = array();
    foreach($this->taches as $tache){
      $this->users = array();
      foreach($tache['TacheUser'] as $user){
        $this->users[] = $user['sfGuardUser']['username'];
      }
      $this->users = implode(" ", $this->users);
      $this->tab[$tache['id']] = array(
                                        'activite' => $tache['activite'],
                                        'etat' => $tache['Etat']['titre'],
                                        'etat_color' => $tache['Etat']['color'],
                                        'users' => $this->users,
                                    );
      
      foreach($tache['TacheComment'] as $comment){
        $this->comments[$tache['id']][] = array(
                                              'user' => $comment['Comment']['sfGuardUser']['username'],
                                              'titre' => $comment['Comment']['titre'],
                                              'date' => date('d/m/Y', strtotime($comment['Comment']['updated_at'])),
                                              'comment' => $comment['Comment']['comment'],
                                            );
      }
    }
    $this->pdf = new pdf('L');
    $this->setTemplate($type);
  }

  public function executeOldIndex(sfWebRequest $request)
  {
    $type = $request->getParameter('type');
    $this->etat = $request->getParameter('etat');
    $this->taches = Doctrine::getTable('Tache')->findAll();
    $this->tab = array();
    $this->comments = array();
    foreach($this->taches as $tache){
      $this->users = array();
      foreach($tache->TacheUser as $user){
        $this->users[] = $user->getSfGuardUser();
      }
      $this->users = implode(" ", $this->users);
      $this->tab[$tache->getId()] = array(
                                        'activite' => $tache->getActivite(),
                                        'etat' => $tache->getEtat(),
                                        'etat_color' => $tache->getEtat()->getColor(),
                                        'users' => $this->users,
                                    );

      foreach($tache->TacheComment as $comment){
        $this->comments[$tache->getId()][] = array(
                                              'user' => $comment->getComment()->getSfGuardUser(),
                                              'titre' => $comment->getComment()->getTitre(),
                                              'date' => date('d/m/Y', strtotime($comment->getComment()->getUpdatedAt())),
                                              'comment' => $comment->getComment()->getComment(),
                                            );
      }
    }
    $this->pdf = new pdf('L');
    $this->setTemplate($type);
  }