| Line 11... |
Line 11... |
| 11 |
* de l'application en se basant sur son propre emplacement.
|
11 |
* de l'application en se basant sur son propre emplacement.
|
| 12 |
*
|
12 |
*
|
| 13 |
* @category PHP 5.2
|
13 |
* @category PHP 5.2
|
| 14 |
* @package Framework
|
14 |
* @package Framework
|
| 15 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
15 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 16 |
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
|
16 |
* @copyright Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
|
| 17 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
|
17 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
|
| 18 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
|
18 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
|
| 19 |
* @version $Id: Framework.php 232 2010-11-19 17:12:58Z jpm $
|
19 |
* @version $Id: Framework.php 241 2010-12-06 15:19:07Z jpm $
|
| 20 |
* @since 0.3
|
20 |
* @since 0.3
|
| 21 |
* @link /doc/framework/
|
21 |
* @link /doc/framework/
|
| 22 |
*/
|
22 |
*/
|
| 23 |
class Framework {
|
23 |
class Framework {
|
| Line 29... |
Line 29... |
| 29 |
private static $info = null;
|
29 |
private static $info = null;
|
| Line 30... |
Line 30... |
| 30 |
|
30 |
|
| 31 |
/** Chemin de base de l'application */
|
31 |
/** Chemin de base de l'application */
|
| Line -... |
Line 32... |
| - |
|
32 |
private static $chemin = null;
|
| - |
|
33 |
|
| - |
|
34 |
/** Tableau des noms des paramètres à définir dans le fichier de config car obligatoirement nécessaire à cette classe.*/
|
| - |
|
35 |
private static $parametres_obligatoires = array('chemin_controleurs', 'chemin_modeles', 'chemin_bibliotheque',
|
| - |
|
36 |
'fw_url_arg_separateur_entree', 'fw_url_arg_separateur_sortie',
|
| 32 |
private static $chemin = null;
|
37 |
'sortie_encodage', 'appli_encodage');
|
| 33 |
|
38 |
|
| 34 |
/**
|
39 |
/**
|
| 35 |
* Initialise l'environnement nécessaire au Framework : constantes globales, méthodeles autoload, séparateur d'arguments
|
40 |
* Initialise l'environnement nécessaire au Framework : constantes globales, méthodeles autoload, séparateur d'arguments
|
| 36 |
* d'url.
|
41 |
* d'url.
|
| Line 67... |
Line 72... |
| 67 |
}
|
72 |
}
|
| 68 |
}
|
73 |
}
|
| Line 69... |
Line 74... |
| 69 |
|
74 |
|
| 70 |
private static function enregistrerMethodesAutoload() {
|
75 |
private static function enregistrerMethodesAutoload() {
|
| 71 |
spl_autoload_register(array(get_class(), 'autoloadFw'));
|
76 |
spl_autoload_register(array(get_class(), 'autoloadFw'));
|
| - |
|
77 |
|
| - |
|
78 |
// Vérification des paramètres de configuration obligatoire pour assurer le fonctionnement du Framework
|
| - |
|
79 |
Config::verifierPresenceParametres(self::$parametres_obligatoires);
|
| 72 |
|
80 |
|
| 73 |
// Initialisation du gestionnaire d'erreur avant toute chose
|
81 |
// Initialisation du gestionnaire d'erreur avant toute chose
|
| Line 74... |
Line 82... |
| 74 |
GestionnaireException::initialiser();
|
82 |
GestionnaireException::initialiser();
|