Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 4 Rev 7
Line 1... Line 1...
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
-
 
4
 * Application de consultation des Collections.
4
 * Application
5
 * Fichier principal d'initialisation. 
5
 *
6
 *
6
 * PHP version 5
-
 
7
 *
-
 
8
 * @category PHP
7
 * @category	PHP5
9
 * @package Framework
8
 * @package		Collection
10
 * @author Aurelien PERONNET <aurelien@tela-botanica.org>
9
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
11
 * @copyright Tela-Botanica 2009
10
 * @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
11
 * @license		GPL-v3 et CECILL-v2
14
 * @version   SVN: $$Id$$
12
 * @version		SVN:<svn_id>
15
 * @link /doc/framework/
-
 
16
 */
13
 */
Line 17... Line 14...
17
 
14
 
18
// La fonction autolad doit être appelée avant tout autre chose dans l'application.
15
// La fonction autoload du Framework de Tela Botanica doit être appelée avant tout autre chose dans l'application.
19
// Sinon, rien ne sera chargé.
16
// Sinon, rien ne sera chargé.
20
require_once dirname(__FILE__).'/../framework/framework/autoload.inc.php';
-
 
21
Application::setChemin(__FILE__);
-
 
22
Application::setInfo(Config::get('info'));
-
 
23
/**
-
 
24
 * Fonction d'affichage de Papyrus, pour le corps de page
-
 
25
 */
-
 
26
function afficherContenuCorps() {
-
 
27
	return 'CONTENU_CORPS';
-
 
Line -... Line 17...
-
 
17
require_once dirname(__FILE__).'/../framework/framework/autoload.inc.php';
28
}
18
 
-
 
19
// Autoload pour cette application
-
 
20
function __autoload($nom_classe) {
-
 
21
	// Tableau des chemins à inclure pour trouver une classe relatif à ce fichier
-
 
22
	$chemins = array(
-
 
23
		'bibliotheque'.DS.'noyau',	
-
 
24
		'bibliotheque'.DS.'pear',
-
 
25
		'bibliotheque'.DS.'utilitaires',
-
 
26
		'composants');
-
 
27
	foreach ($chemins as $chemin) {
-
 
28
		$fichier_a_inclure = dirname(__FILE__).DS.$chemin.DS.$nom_classe.'.php';
29
 
29
		if (file_exists($fichier_a_inclure)) {
-
 
30
			include_once $fichier_a_inclure;
-
 
31
			return null;
30
function afficherContenuTete() {
32
		}
Line 31... Line 33...
31
	return 'CONTENU_TETE';
33
	}
32
}
34
}
33
 
-
 
34
function afficherContenuPied() {
-
 
35
	return 'CONTENU_PIED';
35
 
36
}
-
 
37
 
-
 
Line 38... Line 36...
38
function afficherContenuNavigation() {
36
// Ajout d'information concernant cette application
39
	return 'CONTENU_NAVIGATION';
37
Application::setChemin(__FILE__);
40
}
-
 
41
 
38
Application::setInfo(Config::get('info'));
42
function afficherContenuMenu() {
39