| 6 |
jpm |
1 |
<?php
|
|
|
2 |
// declare(encoding='UTF-8');
|
|
|
3 |
/**
|
|
|
4 |
* Classe Controleur du module Test.
|
| 16 |
jpm |
5 |
*
|
|
|
6 |
* TODO : refactoriser l'ensemble des tests!
|
| 6 |
jpm |
7 |
*
|
|
|
8 |
* @package Referentiel
|
|
|
9 |
* @category Php5.2
|
|
|
10 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
|
|
11 |
* @copyright 2010 Tela-Botanica
|
|
|
12 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
|
|
13 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
|
|
14 |
* @version SVN: $Id$
|
|
|
15 |
*/
|
|
|
16 |
class Test extends AppliControleur {
|
|
|
17 |
|
|
|
18 |
private $projet = null;
|
|
|
19 |
private $tableStructureDao = null;
|
|
|
20 |
private $referentielDao = null;
|
|
|
21 |
private $manuel = null;
|
|
|
22 |
|
|
|
23 |
public function __construct() {
|
|
|
24 |
parent::__construct();
|
|
|
25 |
|
|
|
26 |
// Récupération de paramêtres
|
|
|
27 |
if (isset($_GET['projet'])) { // code du projet courrant
|
|
|
28 |
$this->projet = $_GET['projet'];
|
|
|
29 |
}
|
|
|
30 |
// Parser le fichier ini contenant certains règles liées à la version du manuel
|
|
|
31 |
$this->manuel = parse_ini_file(Config::get('dossier_configurations').DS.Config::get('manuel'));
|
|
|
32 |
|
|
|
33 |
// Chargement des DAO nécessaires
|
|
|
34 |
$this->tableStructureDao = $this->getModele('TableStructureDao');
|
|
|
35 |
$this->referentielDao = $this->getModele('ReferentielDao');
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
39 |
// Méthodes
|
|
|
40 |
/**
|
|
|
41 |
* Fonction d'affichage par défaut, elle appelle la liste des administrateurs
|
|
|
42 |
*/
|
|
|
43 |
public function executerActionParDefaut() {
|
| 20 |
jpm |
44 |
return '';
|
| 6 |
jpm |
45 |
}
|
|
|
46 |
|
|
|
47 |
}
|
|
|
48 |
?>
|