Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2554 → Rev 2555

/trunk/jrest/bibliotheque/Cel.php
41,8 → 41,8
protected $start;
protected $limit;
 
static $referentiels_valides = array('bdtfx', 'bdtxa', 'isfan', 'apd');
static $default_referentiel = 'bdtfx';
static $referentiels_valides = array();
static $default_referentiel = null;
static $fallback_referentiel = 'autre';
 
public function __construct($config) {
53,7 → 53,11
// Réglages de PHP
setlocale(LC_ALL, $this->config['settings']['locale']);
date_default_timezone_set($this->config['settings']['fuseauHoraire']);
 
// Chargement des référentiels disponibles
self::$referentiels_valides = array_keys($this->config['referentiels']);
self::$default_referentiel = $this->config['cel']['referentiel_defaut'];
// Connection à la base de données
if (self::$bdd === null) { // singleton à l'arrache
self::$bdd = new Bdd($this->config, 'database_cel');