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

46 lines
1.3 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Periodicite.php';
require_once 'Modele/Periode.php';
require_once 'Modele/Exercice.php';
require_once 'Modele/Gestionconfiee.php';
require_once 'Modele/Facturegarant.php';
class ControleurCreerfacturegarant extends Controleur
{
private $menuvue;
private $facture;
private $periode;
private $exercice;
private $garants;
private $periodicite;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Creerfacturegarant");
$this->facture = new Facturegarant();
$this->periodicite = new Periodicite;
$this->exercice = (new Exercice())->getListe();
$this->garants = (new Gestionconfiee())->getListe();
$this->periode = new Periode();
}
public function index()
{
$chemin = $this->menuvue->getChemin('Creerfacturegarant');
$periodicites = array(); //$this->periodicite->getPeriodiciteFactureGarant();
$typefacture = array();
$naturefacture = $this->facture->getListeNatureFacture();
$this->genererVue(array(
'chemin' => $chemin,
'periodicites' => $periodicites,
'exercice' => $this->exercice,
'garants' => $this->garants,
'naturefacture' => $naturefacture
));
}
}