/**
  * @name autorisationSupprimerCaracteristique($lParam)
  * @return CaracteristiqueVR
  * @desc Retourne l'autorisation de supprimer une caracteristique ainsi que le nombre de produit associé à la caracteristique
  */
 public function autorisationSupprimerCaracteristique($pParam)
 {
     $lVr = CaracteristiqueValid::validDelete($pParam);
     if ($lVr->getValid()) {
         $lReponse = new AutorisationSupprimerCaracteristiqueResponse();
         $lProduits = GestionCaracteristiqueControleur::listeProduitCaracteristique($pParam['id']);
         $lId = $lProduits[0]->getId();
         if (count($lProduits) == 1 && empty($lId)) {
             // Le manager retourne un tableau avec un objet vide -> Pas de produit
             $lReponse->setNbProduit(0);
             $lReponse->setAutorisation(true);
         } else {
             $lReponse->setNbProduit(count($lProduits));
             $lReponse->setAutorisation(false);
         }
         return $lReponse;
     }
     return $lVr;
 }
                 break;
             default:
                 $lLogger->log("Demande d'accés à GestionCaracteristique sans identifiant par : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO);
                 // Maj des logs
                 header('location:./index.php');
                 break;
         }
     } else {
         $lLogger->log("Demande d'accés à GestionCaracteristique 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 . "/GestionCaracteristiqueControleur.php";
         $lControleur = new GestionCaracteristiqueControleur();
         $lTraitement = false;
         switch ($_POST['fonction']) {
             case "exportProduitCaracteristique":
                 if (isset($_POST['id'])) {
                     $lParam = array("id" => $_POST['id']);
                     $lControleur->exportProduitCaracteristique($lParam);
                     $lLogger->log("Export de la liste des produits liés à une Caracteristique par l'Adhérent : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO);
                     // Maj des logs
                     $lTraitement = true;
                 }
                 break;
             default:
                 $lLogger->log("Demande d'accés à GestionCaracteristique sans identifiant par : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO);
                 // Maj des logs
                 header('location:./index.php');