Subversion Repositories eFlore/Applications.del

Rev

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

Rev 702 Rev 1599
Line 1... Line 1...
1
<?php
1
<?php
-
 
2
/**
-
 
3
* Classe créant la réponse HTTP pour les services de DEL.
-
 
4
*
-
 
5
* Vérifie qu'aucune erreur n'a été générée. Si une erreur existe, retourne le contenu de l'erreur.
-
 
6
* Encodage en entrée : utf8
-
 
7
* Encodage en sortie : utf8
-
 
8
*
-
 
9
* @category DEL
-
 
10
* @package Commun
-
 
11
* @version 0.1
-
 
12
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
-
 
13
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
-
 
14
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
-
 
15
* @copyright 1999-2014 Tela Botanica (accueil@tela-botanica.org)
-
 
16
*/
2
class ReponseHttp {
17
class ReponseHttp {
Line 3... Line 18...
3
 
18
 
4
	private $resultatService = null;
19
	private $resultatService = null;
Line 16... Line 31...
16
		}
31
		}
17
	}
32
	}
Line 18... Line 33...
18
 
33
 
19
	public function getCorps() {
34
	public function getCorps() {
-
 
35
		if ($this->etreEnErreur()) {
20
		if ($this->etreEnErreur()) {
36
			foreach ($this->erreurs as $erreur) {
-
 
37
				$this->resultatService->corps .= $erreur['message']."\n";
21
			$this->resultatService->corps = $this->erreurs[0]['message'];
38
			}
22
		} else {
39
		} else {
23
			$this->transformerReponseCorpsSuivantMime();
40
			$this->transformerReponseCorpsSuivantMime();
24
		}
41
		}
25
		return $this->resultatService->corps;
42
		return $this->resultatService->corps;