Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2461 Rev 2555
Line 39... Line 39...
39
	protected $messages = array();
39
	protected $messages = array();
40
	protected $debug = array();
40
	protected $debug = array();
41
	protected $start;
41
	protected $start;
42
	protected $limit;
42
	protected $limit;
Line 43... Line 43...
43
 
43
 
44
	static $referentiels_valides = array('bdtfx', 'bdtxa', 'isfan', 'apd');
44
	static $referentiels_valides = array();
45
	static $default_referentiel = 'bdtfx';
45
	static $default_referentiel = null;
Line 46... Line 46...
46
	static $fallback_referentiel = 'autre';
46
	static $fallback_referentiel = 'autre';
47
 
47
 
48
	public function __construct($config) {
48
	public function __construct($config) {
49
		@session_start();
49
		@session_start();
Line 50... Line 50...
50
		// Tableau contenant la config de Jrest
50
		// Tableau contenant la config de Jrest
51
		$this->config = $config;
51
		$this->config = $config;
52
 
52
 
53
		// Réglages de PHP
53
		// Réglages de PHP
-
 
54
		setlocale(LC_ALL, $this->config['settings']['locale']);
-
 
55
		date_default_timezone_set($this->config['settings']['fuseauHoraire']);
-
 
56
		
-
 
57
		// Chargement des référentiels disponibles 
54
		setlocale(LC_ALL, $this->config['settings']['locale']);
58
		self::$referentiels_valides = array_keys($this->config['referentiels']);
55
		date_default_timezone_set($this->config['settings']['fuseauHoraire']);
59
		self::$default_referentiel = $this->config['cel']['referentiel_defaut'];
56
 
60
		
57
		// Connection à la base de données
61
		// Connection à la base de données