Subversion Repositories Applications.framework

Rev

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

Rev 339 Rev 341
Line 33... Line 33...
33
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
34
 * @copyright	Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
34
 * @copyright	Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
35
 * @license	GPL v3 <http://www.gnu.org/licenses/gpl.txt>
35
 * @license	GPL v3 <http://www.gnu.org/licenses/gpl.txt>
36
 * @license	CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
36
 * @license	CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
37
 * @since 		0.3
37
 * @since 		0.3
38
 * @version	$Id: RestServeur.php 339 2011-05-02 13:52:25Z jennifer $
38
 * @version	$Id: RestServeur.php 341 2011-05-07 16:45:19Z jpm $
39
 * @link		/doc/framework/
39
 * @link		/doc/framework/
40
 */
40
 */
41
// TODO : gerer les retours : dans ce controleur : code retour et envoi ...
41
// TODO : gerer les retours : dans ce controleur : code retour et envoi ...
42
class RestServeur {
42
class RestServeur {
Line 189... Line 189...
189
		}
189
		}
190
	}
190
	}
Line 191... Line 191...
191
	
191
	
192
	private function initialiserMethode() {
192
	private function initialiserMethode() {
193
		if (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']) && count(trim($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) > 0) {
193
		if (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']) && count(trim($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) > 0) {
194
			$this->methode = trim($_SERVER['X_HTTP_METHOD_OVERRIDE']);
194
			$this->methode = trim($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);
195
		} else {
195
		} else {
196
			$this->methode = $_SERVER['REQUEST_METHOD'];
196
			$this->methode = $_SERVER['REQUEST_METHOD'];
197
		}
197
		}