/**
  * @name exportProduitCategorie($pParam)
  * @return CSV
  * @desc Retourne la liste des produits liés à la catégorie
  */
 public function exportProduitCategorie($pParam)
 {
     $lVr = CategorieProduitValid::validDelete($pParam);
     if ($lVr->getValid()) {
         $lCategorie = CategorieProduitManager::select($pParam['id']);
         $lProduits = GestionCategorieControleur::listeProduitCategorie($pParam['id']);
         $lCSV = new CSV();
         $lCSV->setNom($lCategorie->getNom() . '_:_Liste_des_produits.csv');
         // Le Nom
         // L'entete
         $lEntete = array("Nom du Produit");
         $lCSV->setEntete($lEntete);
         $lContenuTableau = array();
         foreach ($lProduits as $lProduit) {
             array_push($lContenuTableau, array($lProduit->getNom()));
         }
         $lCSV->setData($lContenuTableau);
         // Export en CSV
         $lCSV->output();
     }
     return $lVr;
 }
                 break;
             default:
                 $lLogger->log("Demande d'accés à GestionCategorie sans identifiant par : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO);
                 // Maj des logs
                 header('location:./index.php');
                 break;
         }
     } else {
         $lLogger->log("Demande d'accés à GestionCategorie sans identifiant par : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO);
         // Maj des logs
         header('location:./index.php');
     }
 } else {
     if (isset($_POST['fonction'])) {
         include_once CHEMIN_CLASSES_CONTROLEURS . MOD_GESTION_PRODUIT . "/GestionCategorieControleur.php";
         $lControleur = new GestionCategorieControleur();
         $lTraitement = false;
         switch ($_POST['fonction']) {
             case "exportProduitCategorie":
                 if (isset($_POST['id'])) {
                     $lParam = array("id" => $_POST['id']);
                     $lControleur->exportProduitCategorie($lParam);
                     $lLogger->log("Export de la liste des produits liés à une catégorie par l'Adhérent : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO);
                     // Maj des logs
                     $lTraitement = true;
                 }
                 break;
             default:
                 $lLogger->log("Demande d'accés à GestionCategorie sans identifiant par : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO);
                 // Maj des logs
                 header('location:./index.php');