30 lines
850 B
PHP
Executable File
30 lines
850 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/College_temp.php';
|
|
|
|
class ControleurRecaplimitecollege extends Controleur {
|
|
private $menuvue;
|
|
private $college_temp;
|
|
|
|
public function __construct() {
|
|
$this->college_temp = new College_temp();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idCollegeTemp = $_SESSION['idCollegeTemp'];
|
|
$this->college_temp->recapituler_maj_limite_college($idCollegeTemp);
|
|
|
|
$collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp);
|
|
|
|
$chemin = $this->menuvue->getChemin('Recaplimitecollege');
|
|
|
|
$this->genererVueAjax(array('collegeTemp' => $collegeTemp, 'chemin' => $chemin));
|
|
}
|
|
|
|
public function recapituler() {
|
|
$idCollegeTemp = $_SESSION['idCollegeTemp'];
|
|
$this->college_temp->recapituler_maj_limite_college($idCollegeTemp);
|
|
}
|
|
|
|
} |