public function enregistreDroits()
    {
        if (isset($this->variablesPost['idProfilCourant'])
            && $this->variablesPost['idProfilCourant']!=''
        ) {    
            $reqDelete = "DELETE FROM droits WHERE idProfil='".
                $this->variablesPost['idProfilCourant']."'";
            $resDelete = $this->connexionBdd->requete($reqDelete);
            
            if (isset($this->variablesPost['idElementSite'])) {
                $idElementSite=$this->variablesPost['idElementSite'];
                foreach ($idElementSite as $indice => $value) {
                    $reqInsert="INSERT INTO droits (idProfil,idElementSite,acces)
                        VALUES ('".$this->variablesPost['idProfilCourant'].
                        "','".$value."','1')";
                    $resInsert=$this->connexionBdd->requete($reqInsert);
                }
            }
        }
    }