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 299 2011-01-18 14:03:46Z jpm $
|
37 |
* @version $Id: RestServeur.php 334 2011-03-28 09:54:21Z delphine $
|
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 178... |
Line 178... |
178 |
$this->initialiserApiVersion(array_shift($urlParts));
|
178 |
$this->initialiserApiVersion(array_shift($urlParts));
|
179 |
$this->initialiserServiceNom(array_shift($urlParts));
|
179 |
$this->initialiserServiceNom(array_shift($urlParts));
|
180 |
$this->initialiserRessource($urlParts);
|
180 |
$this->initialiserRessource($urlParts);
|
Line 181... |
Line 181... |
181 |
|
181 |
|
182 |
$this->initialiserParametres();
|
- |
|
183 |
Debug::printr($this);
|
182 |
$this->initialiserParametres();
|
184 |
// Enregistrement en première position des autoload de la méthode gérant les classes des services
|
183 |
// Enregistrement en première position des autoload de la méthode gérant les classes des services
|
185 |
spl_autoload_register(array(get_class(), 'chargerClasse'));
|
184 |
spl_autoload_register(array(get_class(), 'chargerClasse'));
|
186 |
} else {
|
185 |
} else {
|
187 |
$e = "La classe Serveur du TBFRamework nécessite, pour fonctionner, l'accès aux variables serveurs REQUEST_URI, REQUEST_METHOD et QUERY_STRING.";
|
186 |
$e = "La classe Serveur du TBFRamework nécessite, pour fonctionner, l'accès aux variables serveurs REQUEST_URI, REQUEST_METHOD et QUERY_STRING.";
|