Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 420 Rev 498
Line 4... Line 4...
4
	private $resultatService = null;
4
	private $resultatService = null;
5
	private $erreurs = array();
5
	private $erreurs = array();
Line 6... Line 6...
6
 
6
 
7
	public function __construct() {
7
	public function __construct() {
8
		$this->resultatService = new ResultatService();
8
		$this->resultatService = new ResultatService();
9
		if ( !function_exists('json_decode') ){
9
		if (function_exists('json_decode') == false){
10
			require_once (dirname(__FILE__).'/JSON.php');
10
			require_once (dirname(__FILE__).'/JSON.php');
11
			function json_decode($content, $assoc=false){
11
			function json_decode($content, $assoc = false){
12
				if ( $assoc ){
12
				if ($assoc) {
13
					$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
13
					$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
14
				} else {
14
				} else {
15
					$json = new Services_JSON;
15
					$json = new Services_JSON;
16
				}
16
				}