radiantproduction/Controleur/ControleurRecaplimitecollege.php

27 lines
743 B
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/College_temp.php';
class ControleurRecaplimitecollege extends Controleur {
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);
$this->genererVueAjax(array('collegeTemp' => $collegeTemp));
}
public function recapituler() {
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$this->college_temp->recapituler_maj_limite_college($idCollegeTemp);
}
}