sppolice = new Police(); } public function index() { $this->genererVueAjax(); } public function police() { $idPolice = $_SESSION['idPolice_C']; $dj = date("Y-m-d"); $sppolice = $this->sppolice->getRapportSpPolicePol($idPolice, $dj); $limiteConsommation = $this->sppolice->get_limite_consommation_police($idPolice); $this->genererVueAjax(array('sppolice' => $sppolice, 'limiteConsommation' => $limiteConsommation)); } public function categorie() { $idPolice = $_SESSION['idPolice_C']; $dj = date("Y-m-d"); $sppolices = $this->sppolice->getRapportSpPoliceCat($idPolice, $dj); $limiteConsommation = $this->sppolice->get_limite_consommation_police($idPolice); $this->genererVueAjax(array('sppolices' => $sppolices, 'limiteConsommation' => $limiteConsommation)); } public function college() { $idPolice = $_SESSION['idPolice_C']; $dj = date("Y-m-d"); $sppolices = $this->sppolice->getRapportSpPoliceCol($idPolice, $dj); $limiteConsommation = $this->sppolice->get_limite_consommation_police($idPolice); $this->genererVueAjax(array('sppolices' => $sppolices, 'limiteConsommation' => $limiteConsommation)); } }