You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SAE_2A_FA-Reseau_ALICA/php/controleur/AdminControleur.php

63 lines
1.3 KiB

<?php
namespace controleur;
use config\Validation;
class AdminControleur extends ModerateurControleur
{
public function __construct()
{
global $twig;
if (!isset($_REQUEST["action"])) {
$action = NULL;
} else {
$action = Validation::nettoyerString($_REQUEST["action"]);
}
switch ($action) {
case "supprimerCompte":
$this->supprimerCompte();
break;
case "consulterSignalement":
$this->consulterSignalement();
break;
case "creerEvenement":
$this->creerEvenement();
break;
case "supprimerEvenement":
$this->supprimerEvenement();
break;
case "supprimerOffre":
$this->supprimerOffre();
break;
default:
parent::__construct();
}
}
protected function supprimerCompte()
{
//TODO
}
protected function consulterSignalement()
{
//TODO
}
protected function creerEvenement()
{
//TODO
}
protected function supprimerEvenement()
{
//TODO
}
protected function supprimerOffre()
{
//TODO
}
}