Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
// declare(encoding='UTF-8');
|
2 |
// declare(encoding='UTF-8');
|
3 |
/**
|
3 |
/**
|
4 |
* Classe modèle spécifique à l'application, donc d'accés au données, elle ne devrait pas être appelée de l'extérieur.
|
4 |
* Client REST chargé depuis la classe CEL.
|
5 |
*
|
5 |
*
|
- |
|
6 |
* @internal Mininum PHP version : 5.2
|
6 |
* @category php5
|
7 |
* @category CEL
|
7 |
* @package Cel
|
8 |
* @package Services
|
- |
|
9 |
* @subpackage Bibliothèques
|
- |
|
10 |
* @version 0.1
|
- |
|
11 |
* @author Mathias CHOUET <mathias@tela-botanica.org>
|
8 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
12 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
9 |
* @copyright 2010 Tela-Botanica
|
13 |
* @author Aurelien PERONNET <aurelien@tela-botanica.org>
|
10 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
14 |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
|
11 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
15 |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
|
12 |
* @version SVN: $Id$
|
16 |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org>
|
13 |
*/
|
17 |
*/
|
14 |
// TODO : remplacer les trigger_error par des exceptions qui pourrait être attrapées...
|
18 |
// TODO : remplacer les trigger_error par des exceptions qui pourrait être attrapées...
|
15 |
class CelRestClient {
|
19 |
class CelRestClient {
|
16 |
const HTTP_URL_REQUETE_SEPARATEUR = '&';
|
20 |
const HTTP_URL_REQUETE_SEPARATEUR = '&';
|
17 |
const HTTP_URL_REQUETE_CLE_VALEUR_SEPARATEUR = '=';
|
21 |
const HTTP_URL_REQUETE_CLE_VALEUR_SEPARATEUR = '=';
|