Subversion Repositories Applications.referentiel

Rev

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

Rev 37 Rev 38
Line 56... Line 56...
56
	
56
	
57
	//+----------------------------------------------------------------------------------------------------------------+
57
	//+----------------------------------------------------------------------------------------------------------------+
Line 58... Line 58...
58
	// MÉTHODES
58
	// MÉTHODES
-
 
59
	
59
	
60
	protected function envoyerRequeteConsultation($url) {
60
	protected function envoyerRequeteConsultation($url) {
61
		$url = $this->traiterUrlParametres($url);
61
		$retour = $this->envoyerRequete($url, 'GET');
62
		$retour = $this->envoyerRequete($url, 'GET');
Line 62... Line 63...
62
		return $retour;
63
		return $retour;
Line 105... Line 106...
105
			}
106
			}
106
		}
107
		}
107
		return $contenu;
108
		return $contenu;
108
	}
109
	}
Line -... Line 110...
-
 
110
	
-
 
111
	private function traiterUrlParametres($url) {
-
 
112
		$parametres = array();
-
 
113
		if (! is_null($this->getLimiteDebut())) {
-
 
114
			$parametres[] = 'start='.$this->getLimiteDebut();
-
 
115
		}
-
 
116
		if (! is_null($this->getLimiteNbre())) {
-
 
117
			$parametres[] = 'limit='.$this->getLimiteNbre();
-
 
118
		}
-
 
119
		if ($this->getDistinction() != 0) {
-
 
120
			$parametres[] = 'distinct='.$this->getDistinction();
-
 
121
		}
-
 
122
		if (count($parametres) > 0) {
-
 
123
			$url_parametres = implode('&', $parametres);
-
 
124
			$url = $url.'?'.$url_parametres;
-
 
125
		}
-
 
126
		return $url;
-
 
127
	}
109
	
128
	
110
	private function traiterEntete($entetes, $uri) {
129
	private function traiterEntete($entetes, $uri) {
111
		$infos = $this->analyserEntete($entetes, $uri);
130
		$infos = $this->analyserEntete($entetes, $uri);
112
		$this->traiterEnteteDebug($infos);
131
		$this->traiterEnteteDebug($infos);
113
		$this->traiterEnteteMessage($infos);
132
		$this->traiterEnteteMessage($infos);