Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 10 Rev 25
Line 21... Line 21...
21
	// Tableau des chemins à inclure pour trouver une classe relatif à ce fichier
21
	// Tableau des chemins à inclure pour trouver une classe relatif à ce fichier
22
	$chemins = array(
22
	$chemins = array(
23
		'bibliotheque'.DS.'noyau',	
23
		'bibliotheque'.DS.'noyau',	
24
		'bibliotheque'.DS.'pear',
24
		'bibliotheque'.DS.'pear',
25
		'bibliotheque'.DS.'utilitaires',
25
		'bibliotheque'.DS.'utilitaires',
26
		'composants');
26
		'composants',
-
 
27
		'composants'.DS.'cartographie');
27
	foreach ($chemins as $chemin) {
28
	foreach ($chemins as $chemin) {
28
		$fichier_a_inclure = dirname(__FILE__).DS.$chemin.DS.$nom_classe.'.php';
29
		$fichier_a_inclure = dirname(__FILE__).DS.$chemin.DS.$nom_classe.'.php';
29
		if (file_exists($fichier_a_inclure)) {
30
		if (file_exists($fichier_a_inclure)) {
30
			include_once $fichier_a_inclure;
31
			include_once $fichier_a_inclure;
31
			return null;
32
			return null;