production/Controleur/ControleurAjaxparamlienparente.php
2025-12-02 11:29:44 +00:00

34 lines
871 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Lienparente.php';
require_once 'Modele/Ouinon.php';
class ControleurAjaxparamlienparente extends Controleur {
private $lien;
public function __construct()
{
$this->lien = new Lienparente();
$this->enVigueurOuiNon = (new Ouinon())->getListe();
}
public function index()
{
$idLien = $this->requete->getParametre("idLien");
$lienparente = $this->lien->getUnLienparente($idLien);
$this->genererVueAjax(array('lienparente' => $lienparente,
'enVigueurOuiNon' => $this->enVigueurOuiNon,));
}
public function historiser()
{
$idLien = $this->requete->getParametre("idLien");
$enVigueur = $this->requete->getParametreFormulaire("enVigueur");
$this->lien->historiserLienParente($idLien, $enVigueur);
}
}