joursferiers = new Tabjoursferiers(); $this->ouinonoptionnelle = (new Ouinon())->getListe(); $this->ouinonplafondmodifiable = (new Ouinon())->getListe(); } public function index() { $pays = $this->joursferiers->getListePays($_SESSION['codePaysSociete']); $this->genererVueAjax(array( 'ouinonoptionnelle' => $this->ouinonoptionnelle, 'ouinonplafondmodifiable' => $this->ouinonplafondmodifiable, 'pays' => $pays )); } public function ajouter(){ $codePays = $this->requete->getParametreFormulaire("codePays"); $dateFerier = $this->requete->getParametreDate("dateFerier"); $libelle = $this->requete->getParametreFormulaire("libelle"); $libelleEng = $this->requete->getParametreFormulaire("libelleEng"); $demiJournee = $this->requete->getParametreFormulaire("demiJournee"); $this->joursferiers->ajouterjoursferiers($codePays,$libelle,$libelleEng,$dateFerier,$demiJournee); } }