23 lines
820 B
PHP
Executable File
23 lines
820 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Prestataire.php';
|
|
require_once 'Modele/Derogation.php';
|
|
require_once 'Modele/Reponsederogation.php';
|
|
|
|
class ControleurAjaxrequeteentetedemandederogation extends Controleur {
|
|
private $prestataire;
|
|
|
|
public function __construct() {
|
|
$this->prestataire = new Prestataire();
|
|
$this->listederogation = (new Derogation())->getListe();
|
|
$this->reponsederogation = (new Reponsederogation())->getListe();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$prestataire_courant = $this->prestataire->getPrestataireCode( $_SESSION['codePrestataire_C']);
|
|
|
|
$this->genererVueAjax(array('prestataire_courant' => $prestataire_courant, 'listederogation' => $this->listederogation,
|
|
'reponsederogation' => $this->reponsederogation));
|
|
}
|
|
} |