Subversion Repositories Applications.referentiel

Rev

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

Rev 34 Rev 38
Line 26... Line 26...
26
	 * @param str iniFile Configuration file to use
26
	 * @param str iniFile Configuration file to use
27
	 */
27
	 */
28
	public function JRest($iniFile = 'jrest.ini.php') {
28
	public function JRest($iniFile = 'jrest.ini.php') {
29
		// Chargement de la configuration
29
		// Chargement de la configuration
30
		self::$config = parse_ini_file($iniFile, TRUE);
30
		self::$config = parse_ini_file($iniFile, TRUE);
-
 
31
		
-
 
32
		// Gestion de la mémoire maximum allouée aux services
-
 
33
		ini_set('memory_limit', self::$config['settings']['memoryLimit']);
-
 
34
		
-
 
35
		// Gestion des erreurs
-
 
36
		error_reporting(self::$config['settings']['erreurNiveau']);
-
 
37
		
31
		// Enregistrement de la méthode gérant l'autoload des classes
38
		// Enregistrement de la méthode gérant l'autoload des classes
32
		spl_autoload_register(array('JRest', 'chargerClasse'));
39
		spl_autoload_register(array('JRest', 'chargerClasse'));
Line 33... Line 40...
33
		
40
		
34
		if (isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && isset($_SERVER['QUERY_STRING'])) {
41
		if (isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && isset($_SERVER['QUERY_STRING'])) {