radiantproduction/Controleur/ControleurAjaxged.php

40 lines
864 B
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Ged.php';
class ControleurAjaxged extends Controleur {
private $ged;
public function __construct() {
$this->ged = new Ged();
}
public function index() {
// $this->genererVueAjax(array('reponse' => $reponse));
$this->genererVueAjax();
}
public function verifierexistancefichier()
{
$cheminFichier = $this->requete->getParametreFormulaire("cheminFichier");
if(file_exists($cheminFichier))
{
$reponse = "1";
} else
{
$reponse = "0";
}
echo "$reponse";
}
public function supprimerged()
{
$idGed = $this->requete->getParametre("idGed");
$motifSuppression = $this->requete->getParametre("motifSuppression");
$this->ged->supprimerged($idGed, $motifSuppression) ;
}
}