Subversion Repositories Applications.framework

Rev

Rev 274 | Rev 392 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 274 Rev 377
Line 14... Line 14...
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) 2010, 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 274 2010-12-28 15:37:22Z jpm $
19
 * @version	$Id: Framework.php 377 2011-10-10 09:21:52Z 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 90... Line 90...
90
	
90
	
91
	/**
91
	/**
92
	 * Autoload pour le Framework.
92
	 * Autoload pour le Framework.
93
	 */
93
	 */
-
 
94
	private static function autoloadFw($nom_classe_fw) {
94
	private static function autoloadFw($nom_classe_fw) {
95
		$racine_fw = dirname(__FILE__).DS;
95
		$dossiers_classes = array(	dirname(__FILE__).DS,
96
		$dossiers_classes = array(	$racine_fw,
-
 
97
									$racine_fw.'utilitaires'.DS,
96
									dirname(__FILE__).DS.'utilitaires'.DS);
98
									$racine_fw.'brouillons'.DS);
97
		foreach ($dossiers_classes as $chemin) {
99
		foreach ($dossiers_classes as $chemin) {
98
			$fichier_a_tester = $chemin.$nom_classe_fw.'.php';
100
			$fichier_a_tester = $chemin.$nom_classe_fw.'.php';
99
			if (file_exists($fichier_a_tester)) {
101
			if (file_exists($fichier_a_tester)) {
100
				include_once $fichier_a_tester;
102
				include_once $fichier_a_tester;