Subversion Repositories Applications.framework

Rev

Rev 338 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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