Blame | Last modification | View Log | RSS feed
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta charset="utf-8"/>
<title>TBFramework - v0.4</title>
<meta name="author" content=""/>
<meta name="description" content=""/>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<link href="../css/prism.css" rel="stylesheet" media="all"/>
<link href="../css/template.css" rel="stylesheet" media="all"/>
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
<![endif]-->
<script src="https://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js" type="text/javascript"></script>
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script src="../js/jquery.smooth-scroll.js"></script>
<script src="../js/prism.min.js"></script>
<!-- TODO: Add http://jscrollpane.kelvinluck.com/ to style the scrollbars for browsers not using webkit-->
<script type="text/javascript">
function loadExternalCodeSnippets() {
Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {
var src = pre.getAttribute('data-src');
var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
var language = 'php';
var code = document.createElement('code');
code.className = 'language-' + language;
pre.textContent = '';
code.textContent = 'Loading…';
pre.appendChild(code);
var xhr = new XMLHttpRequest();
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
}
else if (xhr.status >= 400) {
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
}
else {
code.textContent = '✖ Error: File does not exist or is empty';
}
}
};
xhr.send(null);
});
}
$(document).ready(function(){
loadExternalCodeSnippets();
});
$('#source-view').on('shown', function () {
loadExternalCodeSnippets();
})
</script>
<link rel="shortcut icon" href="../images/favicon.ico"/>
<link rel="apple-touch-icon" href="../images/apple-touch-icon.png"/>
<link rel="apple-touch-icon" sizes="72x72" href="../images/apple-touch-icon-72x72.png"/>
<link rel="apple-touch-icon" sizes="114x114" href="../images/apple-touch-icon-114x114.png"/>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<i class="icon-ellipsis-vertical"></i>
</a>
<a class="brand" href="../index.html">TBFramework - v0.4</a>
<div class="nav-collapse">
<ul class="nav pull-right">
<li class="dropdown">
<a href="../index.html" class="dropdown-toggle" data-toggle="dropdown">
API Documentation <b class="caret"></b>
</a>
<ul class="dropdown-menu">
</ul>
</li>
<li class="dropdown" id="charts-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Charts <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="../graphs/class.html">
<i class="icon-list-alt"></i> Class hierarchy diagram
</a>
</li>
</ul>
</li>
<li class="dropdown" id="reports-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Reports <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="../reports/errors.html">
<i class="icon-list-alt"></i> Errors <span class="label label-info pull-right">281</span>
</a>
</li>
<li>
<a href="../reports/markers.html">
<i class="icon-list-alt"></i> Markers <span class="label label-info pull-right">12</span>
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<!--<div class="go_to_top">-->
<!--<a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a>-->
<!--</div>-->
</div>
<div id="___" class="container-fluid">
<section class="row-fluid">
<div class="span2 sidebar">
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-302390834"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-302390834" class="accordion-body collapse in">
<div class="accordion-inner">
<ul>
<li class="class"><a href="../classes/Url.html">Url</a></li>
<li class="class"><a href="../classes/Debug.html">Debug</a></li>
<li class="class"><a href="../classes/Chronometre.html">Chronometre</a></li>
<li class="class"><a href="../classes/RestServeur.html">RestServeur</a></li>
<li class="class"><a href="../classes/SquelettePhp.html">SquelettePhp</a></li>
<li class="class"><a href="../classes/Controleur.html">Controleur</a></li>
<li class="class"><a href="../classes/Cache.html">Cache</a></li>
<li class="class"><a href="../classes/RestClient.html">RestClient</a></li>
<li class="class"><a href="../classes/GestionnaireException.html">GestionnaireException</a></li>
<li class="class"><a href="../classes/Script.html">Script</a></li>
<li class="class"><a href="../classes/Registre.html">Registre</a></li>
<li class="class"><a href="../classes/RestService.html">RestService</a></li>
<li class="class"><a href="../classes/Cli.html">Cli</a></li>
<li class="class"><a href="../classes/Encodage.html">Encodage</a></li>
<li class="class"><a href="../classes/Tableau.html">Tableau</a></li>
<li class="class"><a href="../classes/Pattern.html">Pattern</a></li>
<li class="class"><a href="../classes/Chaine.html">Chaine</a></li>
<li class="class"><a href="../classes/Fichier.html">Fichier</a></li>
<li class="class"><a href="../classes/I18n.html">I18n</a></li>
<li class="class"><a href="../classes/Config.html">Config</a></li>
<li class="class"><a href="../classes/CacheSqlite.html">CacheSqlite</a></li>
<li class="class"><a href="../classes/Bdd.html">Bdd</a></li>
<li class="class"><a href="../classes/Log.html">Log</a></li>
<li class="class"><a href="../classes/CacheFichier.html">CacheFichier</a></li>
<li class="class"><a href="../classes/Framework.html">Framework</a></li>
<li class="class"><a href="../classes/CacheSimple.html">CacheSimple</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="row-fluid">
<div class="span10 offset2">
<div class="row-fluid">
<div class="span8 content class">
<nav>
<a href="../namespaces/default.html">\</a> <i class="icon-level-up"></i>
</nav>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal"><i class="icon-code"></i></a>
<h1><small>\</small>RestServeur</h1>
<p><em>Classe principale gérant les services web de type (@link(REST, http://fr.wikipedia.org/wiki/Rest).</em></p>
<p>Elle contient :</p>
<ul>
<li>les constantes indiquant les différentes (@link(méthode HTTP, <a href="http://fr.wikipedia.org/wiki/Http">http://fr.wikipedia.org/wiki/Http</a>) prises en compte.</li>
<li>les @link(codes HTTP des réponses, <a href="http://fr.wikipedia.org/wiki/Liste_des_codes_HTTP">http://fr.wikipedia.org/wiki/Liste_des_codes_HTTP</a>)</li>
</ul>
<p>Ce serveur REST accepte 4 types de méthodes HTTP : GET, PUT, POST, DELETE.
GET et POST ne pose généralement pas de problème pour les clients HTTP mais ce n'est pas forcément le cas pour PUT et DELETE.
Vous pouvez donc pour réaliser :</p>
<ul>
<li>DELETE : utiliser la méthode POST avec action=DELETE dans le corps de la requête.</li>
<li>PUT : utiliser la méthode POST avec une url ne contenant aucune indication de ressource.
Une autre solution consiste à utiliser n'importe quelle méthode et à ajouter l'entête "X_HTTP_METHOD_OVERRIDE" avec pour
valeur le nom de la méthode que vous souhaitez utiliser. Exemple d'entête : "X_HTTP_METHOD_OVERRIDE: PUT".
Exemple : <code>curl -v -v -H "X_HTTP_METHOD_OVERRIDE: DELETE" "<a href="http://www.mondomaine.org/services/apiVersion/[mon-service]/"</code">http://www.mondomaine.org/services/apiVersion/[mon-service]/"</code</a>>
Cela fonctionne avec Apache.</li>
</ul>
<p>Les classes des services web doivent avoir un nom au format ChatMot "MonService" et être appelée dans l'url par le même nom
en minuscule où les mots sont séparés par des tirets "mon-service".</p>
<p>Paramètres liés dans config.ini :</p>
<ul>
<li>serveur.baseURL : morceau de l'url pour appeler le serveur relative au domaine. Exemple : pour <a href="http://www.tela-botanica.org/mon_serveur/">http://www.tela-botanica.org/mon_serveur/</a>
mettre : "/mon_serveur/"</li>
<li>serveur.baseAlternativeURL : sur le même principe que ci-dessus permet d'affecter une deuxième url (pour gérer des raccourci via htaccess)</li>
</ul>
<p>Encodage en entrée : utf8
Encodage en sortie : utf8</p>
<section id="summary">
<h2>Summary</h2>
<section class="row-fluid heading">
<section class="span4">
<a href="#methods">Methods</a>
</section>
<section class="span4">
<a href="#properties">Properties</a>
</section>
<section class="span4">
<a href="#constants">Constants</a>
</section>
</section>
<section class="row-fluid public">
<section class="span4">
<a href="../classes/RestServeur.html#method___construct" class="">__construct()</a><br />
<a href="../classes/RestServeur.html#method_chargerClasse" class="">chargerClasse()</a><br />
<a href="../classes/RestServeur.html#method_executer" class="">executer()</a><br />
<a href="../classes/RestServeur.html#method_envoyerEnteteStatutHttp" class="">envoyerEnteteStatutHttp()</a><br />
<a href="../classes/RestServeur.html#method_gererErreurs" class="">gererErreurs()</a><br />
<a href="../classes/RestServeur.html#method_ajouterMessage" class="">ajouterMessage()</a><br />
</section>
<section class="span4">
<em>No public properties found</em>
</section>
<section class="span4">
<a href="../classes/RestServeur.html#constant_METHODE_GET" class="">METHODE_GET</a><br />
<a href="../classes/RestServeur.html#constant_METHODE_POST" class="">METHODE_POST</a><br />
<a href="../classes/RestServeur.html#constant_METHODE_DELETE" class="">METHODE_DELETE</a><br />
<a href="../classes/RestServeur.html#constant_METHODE_PUT" class="">METHODE_PUT</a><br />
<a href="../classes/RestServeur.html#constant_HTTP_CODE_OK" class="">HTTP_CODE_OK</a><br />
<a href="../classes/RestServeur.html#constant_HTTP_CODE_CREATION_OK" class="">HTTP_CODE_CREATION_OK</a><br />
<a href="../classes/RestServeur.html#constant_HTTP_CODE_SUPPRESSION_OK" class="">HTTP_CODE_SUPPRESSION_OK</a><br />
<a href="../classes/RestServeur.html#constant_HTTP_CODE_MAUVAISE_REQUETE" class="">HTTP_CODE_MAUVAISE_REQUETE</a><br />
<a href="../classes/RestServeur.html#constant_HTTP_CODE_ACCES_NON_AUTORISE" class="">HTTP_CODE_ACCES_NON_AUTORISE</a><br />
<a href="../classes/RestServeur.html#constant_HTTP_CODE_RESSOURCE_INTROUVABLE" class="">HTTP_CODE_RESSOURCE_INTROUVABLE</a><br />
<a href="../classes/RestServeur.html#constant_HTTP_CODE_METHODE_NON_AUTORISE" class="">HTTP_CODE_METHODE_NON_AUTORISE</a><br />
<a href="../classes/RestServeur.html#constant_HTTP_CODE_CONFLIT" class="">HTTP_CODE_CONFLIT</a><br />
<a href="../classes/RestServeur.html#constant_HTTP_CODE_CONTENU_REQUIS" class="">HTTP_CODE_CONTENU_REQUIS</a><br />
<a href="../classes/RestServeur.html#constant_HTTP_CODE_ERREUR" class="">HTTP_CODE_ERREUR</a><br />
<a href="../classes/RestServeur.html#constant_MOTIF_API_VERSION" class="">MOTIF_API_VERSION</a><br />
<a href="../classes/RestServeur.html#constant_MOTIF_SERVICE_NOM" class="">MOTIF_SERVICE_NOM</a><br />
</section>
</section>
<section class="row-fluid protected">
<section class="span4">
<em>No protected methods found</em>
</section>
<section class="span4">
<em>No protected properties found</em>
</section>
<section class="span4">
<em>N/A</em>
</section>
</section>
<section class="row-fluid private">
<section class="span4">
<a href="../classes/RestServeur.html#method_initialiserMethode" class="">initialiserMethode()</a><br />
<a href="../classes/RestServeur.html#method_initialiserRequeteDonnees" class="">initialiserRequeteDonnees()</a><br />
<a href="../classes/RestServeur.html#method_decouperUrlChemin" class="">decouperUrlChemin()</a><br />
<a href="../classes/RestServeur.html#method_initialiserApiVersion" class="">initialiserApiVersion()</a><br />
<a href="../classes/RestServeur.html#method_verifierApiVersion" class="">verifierApiVersion()</a><br />
<a href="../classes/RestServeur.html#method_initialiserServiceNom" class="">initialiserServiceNom()</a><br />
<a href="../classes/RestServeur.html#method_verifierServiceNom" class="">verifierServiceNom()</a><br />
<a href="../classes/RestServeur.html#method_traiterNomService" class="">traiterNomService()</a><br />
<a href="../classes/RestServeur.html#method_initialiserRessource" class="">initialiserRessource()</a><br />
<a href="../classes/RestServeur.html#method_initialiserParametres" class="">initialiserParametres()</a><br />
<a href="../classes/RestServeur.html#method_recupererParametresGet" class="">recupererParametresGet()</a><br />
<a href="../classes/RestServeur.html#method_nettoyerParametres" class="">nettoyerParametres()</a><br />
<a href="../classes/RestServeur.html#method_recupererParametresBruts" class="">recupererParametresBruts()</a><br />
<a href="../classes/RestServeur.html#method_get" class="">get()</a><br />
<a href="../classes/RestServeur.html#method_post" class="">post()</a><br />
<a href="../classes/RestServeur.html#method_put" class="">put()</a><br />
<a href="../classes/RestServeur.html#method_delete" class="">delete()</a><br />
<a href="../classes/RestServeur.html#method_parserDonneesRequete" class="">parserDonneesRequete()</a><br />
<a href="../classes/RestServeur.html#method_cloreAccesServeur" class="">cloreAccesServeur()</a><br />
<a href="../classes/RestServeur.html#method_envoyerMessages" class="">envoyerMessages()</a><br />
</section>
<section class="span4">
<a href="../classes/RestServeur.html#property_debogageActivation" class="">$debogageActivation</a><br />
<a href="../classes/RestServeur.html#property_debogageMode" class="">$debogageMode</a><br />
<a href="../classes/RestServeur.html#property_methode" class="">$methode</a><br />
<a href="../classes/RestServeur.html#property_requeteDonnees" class="">$requeteDonnees</a><br />
<a href="../classes/RestServeur.html#property_requeteDonneesParsees" class="">$requeteDonneesParsees</a><br />
<a href="../classes/RestServeur.html#property_apiVersion" class="">$apiVersion</a><br />
<a href="../classes/RestServeur.html#property_service" class="">$service</a><br />
<a href="../classes/RestServeur.html#property_ressources" class="">$ressources</a><br />
<a href="../classes/RestServeur.html#property_parametres" class="">$parametres</a><br />
<a href="../classes/RestServeur.html#property_parametresBruts" class="">$parametresBruts</a><br />
<a href="../classes/RestServeur.html#property_config" class="">$config</a><br />
<a href="../classes/RestServeur.html#property_messages" class="">$messages</a><br />
<a href="../classes/RestServeur.html#property_http10" class="">$http10</a><br />
<a href="../classes/RestServeur.html#property_parametres_obligatoires" class="">$parametres_obligatoires</a><br />
</section>
<section class="span4">
<em>N/A</em>
</section>
</section>
</section>
</div>
<aside class="span4 detailsbar">
<dl>
<dt>File</dt>
<dd><a href="../files/RestServeur.php.html"><div class="path-wrapper">RestServeur.php</div></a></dd>
<dt>Package</dt>
<dd><div class="namespace-wrapper">\Framework</div></dd>
<dt>Class hierarchy</dt>
<dd class="hierarchy">
<div class="namespace-wrapper">\RestServeur</div>
</dd>
<dt>See also</dt>
<dd><a href="/doc/framework/"><div class="namespace-wrapper">/doc/framework/</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
category
</th>
<td>
<p>Php 5.2</p>
</td>
</tr>
<tr>
<th>
author
</th>
<td>
<p>Jean-Pascal MILCENT <a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a></p>
</td>
</tr>
<tr>
<th>
copyright
</th>
<td>
<p>Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)</p>
</td>
</tr>
<tr>
<th>
license
</th>
<td>
<p>GPL v3 <a href="http://www.gnu.org/licenses/gpl.txt">http://www.gnu.org/licenses/gpl.txt</a></p>
<p>CECILL v2 <a href="http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt">http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt</a></p>
</td>
</tr>
<tr>
<th>
since
</th>
<td>
</td>
</tr>
<tr>
<th>
version
</th>
<td>
<p>$Id: RestServeur.php 421 2013-04-11 14:43:49Z jpm $</p>
</td>
</tr>
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<a id="constants" name="constants"></a>
<div class="row-fluid">
<div class="span8 content class">
<h2>Constants</h2>
</div>
<aside class="span4 detailsbar"></aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_METHODE_GET" name="constant_METHODE_GET" class="anchor"></a>
<article id="constant_METHODE_GET" class="constant">
<h3 class="">METHODE_GET</h3>
<pre class="signature">METHODE_GET</pre>
<p><em>Nom de la méthode appelée dans un service pour éxécuter une requête de type GET.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_METHODE_POST" name="constant_METHODE_POST" class="anchor"></a>
<article id="constant_METHODE_POST" class="constant">
<h3 class="">METHODE_POST</h3>
<pre class="signature">METHODE_POST</pre>
<p><em>Nom de la méthode appelée dans un service pour éxécuter une requête de type POST.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_METHODE_DELETE" name="constant_METHODE_DELETE" class="anchor"></a>
<article id="constant_METHODE_DELETE" class="constant">
<h3 class="">METHODE_DELETE</h3>
<pre class="signature">METHODE_DELETE</pre>
<p><em>Nom de la méthode appelée dans un service pour éxécuter une requête de type DELETE.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_METHODE_PUT" name="constant_METHODE_PUT" class="anchor"></a>
<article id="constant_METHODE_PUT" class="constant">
<h3 class="">METHODE_PUT</h3>
<pre class="signature">METHODE_PUT</pre>
<p><em>Nom de la méthode appelée dans un service pour éxécuter une requête de type PUT.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_HTTP_CODE_OK" name="constant_HTTP_CODE_OK" class="anchor"></a>
<article id="constant_HTTP_CODE_OK" class="constant">
<h3 class="">HTTP_CODE_OK</h3>
<pre class="signature">HTTP_CODE_OK</pre>
<p><em>Code HTTP 200 indiquant le succès de l'accès à un service web par la méthode GET.</em></p>
<p>L'utiliser lors d'une requète de type GET (consulter) pour indiquer le succès de l'opération.
Sera renvoyée par défaut par PHP.</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_HTTP_CODE_CREATION_OK" name="constant_HTTP_CODE_CREATION_OK" class="anchor"></a>
<article id="constant_HTTP_CODE_CREATION_OK" class="constant">
<h3 class="">HTTP_CODE_CREATION_OK</h3>
<pre class="signature">HTTP_CODE_CREATION_OK</pre>
<p><em>Code HTTP 201 indiquant que l'accès à un service web est un succès et que la ressource a été créée ou modifié.</em></p>
<p>L'utiliser lors d'une requète de type PUT (ajouter) ou POST (modifier) pour indiquer le succès de l'opération.</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_HTTP_CODE_SUPPRESSION_OK" name="constant_HTTP_CODE_SUPPRESSION_OK" class="anchor"></a>
<article id="constant_HTTP_CODE_SUPPRESSION_OK" class="constant">
<h3 class="">HTTP_CODE_SUPPRESSION_OK</h3>
<pre class="signature">HTTP_CODE_SUPPRESSION_OK</pre>
<p><em>Code HTTP 204 indique que l'accès à un service web est un succès et qu'il n'y a pas de contenu à renvoyer.</em></p>
<p>L'utiliser lors d'une requète de type DELETE (supprimer) pour indiquer le succès de l'opération si aucun
contenu (status) ne doit être renvoyé, sinon utiliser 200 OK.</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_HTTP_CODE_MAUVAISE_REQUETE" name="constant_HTTP_CODE_MAUVAISE_REQUETE" class="anchor"></a>
<article id="constant_HTTP_CODE_MAUVAISE_REQUETE" class="constant">
<h3 class="">HTTP_CODE_MAUVAISE_REQUETE</h3>
<pre class="signature">HTTP_CODE_MAUVAISE_REQUETE</pre>
<p><em>Code HTTP 400 indique que les paramètres envoyés au service contiennent des erreurs.</em></p>
<p>L'utiliser pour indiquer l'échec de l'accès au service. La réponse pourra contenir un message expliquant la source
de l'erreur.</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_HTTP_CODE_ACCES_NON_AUTORISE" name="constant_HTTP_CODE_ACCES_NON_AUTORISE" class="anchor"></a>
<article id="constant_HTTP_CODE_ACCES_NON_AUTORISE" class="constant">
<h3 class="">HTTP_CODE_ACCES_NON_AUTORISE</h3>
<pre class="signature">HTTP_CODE_ACCES_NON_AUTORISE</pre>
<p><em>Code HTTP 401 indiquant que l'accès à un service web est refusé car l'authentification (obligatoire) a échoué pour
accéder à la ressource.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_HTTP_CODE_RESSOURCE_INTROUVABLE" name="constant_HTTP_CODE_RESSOURCE_INTROUVABLE" class="anchor"></a>
<article id="constant_HTTP_CODE_RESSOURCE_INTROUVABLE" class="constant">
<h3 class="">HTTP_CODE_RESSOURCE_INTROUVABLE</h3>
<pre class="signature">HTTP_CODE_RESSOURCE_INTROUVABLE</pre>
<p><em>Code HTTP 404 indiquant que la ressource indiquée par l'url est introuvable.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_HTTP_CODE_METHODE_NON_AUTORISE" name="constant_HTTP_CODE_METHODE_NON_AUTORISE" class="anchor"></a>
<article id="constant_HTTP_CODE_METHODE_NON_AUTORISE" class="constant">
<h3 class="">HTTP_CODE_METHODE_NON_AUTORISE</h3>
<pre class="signature">HTTP_CODE_METHODE_NON_AUTORISE</pre>
<p><em>Code HTTP 405 indiquant soit :
- que le service web ne possède pas d'accès la ressource correspondant à la méthode HTTP employée.</em></p>
<ul>
<li>que la méthode HTTP enployée n'est pas en accord avec la ressource indiquée par l'url.</li>
</ul>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_HTTP_CODE_CONFLIT" name="constant_HTTP_CODE_CONFLIT" class="anchor"></a>
<article id="constant_HTTP_CODE_CONFLIT" class="constant">
<h3 class="">HTTP_CODE_CONFLIT</h3>
<pre class="signature">HTTP_CODE_CONFLIT</pre>
<p><em>Code d'erreur HTTP 409 indiquant qu'un conflit est survenu vis à vis de la ressource.</em></p>
<p>Par exemple, essayer de créer deux fois la même ressource ou bien tenter de modifier une ressource qui a été modifiée par
ailleurs.</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_HTTP_CODE_CONTENU_REQUIS" name="constant_HTTP_CODE_CONTENU_REQUIS" class="anchor"></a>
<article id="constant_HTTP_CODE_CONTENU_REQUIS" class="constant">
<h3 class="">HTTP_CODE_CONTENU_REQUIS</h3>
<pre class="signature">HTTP_CODE_CONTENU_REQUIS</pre>
<p><em>Code HTTP 411 indiquant que des paramètres passés dans le contenu de la requête sont nécessaires au service.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_HTTP_CODE_ERREUR" name="constant_HTTP_CODE_ERREUR" class="anchor"></a>
<article id="constant_HTTP_CODE_ERREUR" class="constant">
<h3 class="">HTTP_CODE_ERREUR</h3>
<pre class="signature">HTTP_CODE_ERREUR</pre>
<p><em>Code d'erreur HTTP 500 Internal Server Error.</em></p>
<p>L'utiliser quand le serveur ou un service soulève une erreur ou une exception.</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_MOTIF_API_VERSION" name="constant_MOTIF_API_VERSION" class="anchor"></a>
<article id="constant_MOTIF_API_VERSION" class="constant">
<h3 class="">MOTIF_API_VERSION</h3>
<pre class="signature">MOTIF_API_VERSION</pre>
<p><em>Motif de l'epression régulière vérfiant la version de l'API.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_MOTIF_SERVICE_NOM" name="constant_MOTIF_SERVICE_NOM" class="anchor"></a>
<article id="constant_MOTIF_SERVICE_NOM" class="constant">
<h3 class="">MOTIF_SERVICE_NOM</h3>
<pre class="signature">MOTIF_SERVICE_NOM</pre>
<p><em>Motif de l'epression régulière vérfiant le nom du service.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<a id="properties" name="properties"></a>
<div class="row-fluid">
<div class="span8 content class">
<h2>Properties</h2>
</div>
<aside class="span4 detailsbar"></aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_debogageActivation" name="property_debogageActivation" class="anchor"></a>
<article class="property">
<h3 class="private ">$debogageActivation</h3>
<pre class="signature">$debogageActivation : boolean</pre>
<p><em>Mettre à true pour activer l'affichage des messages d'erreurs et de débogage.</em></p>
<h4>Type</h4>
boolean
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_debogageMode" name="property_debogageMode" class="anchor"></a>
<article class="property">
<h3 class="private ">$debogageMode</h3>
<pre class="signature">$debogageMode : string</pre>
<p><em>Indiquer le mode de débogage à utiliser (@see Debug).</em></p>
<h4>Type</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_methode" name="property_methode" class="anchor"></a>
<article class="property">
<h3 class="private ">$methode</h3>
<pre class="signature">$methode : string</pre>
<p><em>La méthode de la requête HTTP utilisée.</em></p>
<h4>Type</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_requeteDonnees" name="property_requeteDonnees" class="anchor"></a>
<article class="property">
<h3 class="private ">$requeteDonnees</h3>
<pre class="signature">$requeteDonnees : array</pre>
<p><em>Le contenu brut du corps de la requête HTTP (s'il y en a).</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_requeteDonneesParsees" name="property_requeteDonneesParsees" class="anchor"></a>
<article class="property">
<h3 class="private ">$requeteDonneesParsees</h3>
<pre class="signature">$requeteDonneesParsees : array</pre>
<p><em>Le contenu sous forme de tableau de paires clés-valeurs du corps de la requête HTTP (s'il y en a).</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_apiVersion" name="property_apiVersion" class="anchor"></a>
<article class="property">
<h3 class="private ">$apiVersion</h3>
<pre class="signature">$apiVersion : mixed</pre>
<p><em>Version de l'API demandée.</em></p>
<p>Ex. <a href="http://www.mondomaine.org/services/[apiVersion]/mon-service/">http://www.mondomaine.org/services/[apiVersion]/mon-service/</a></p>
<h4>Type</h4>
mixed
— Généralement deux nombres séparés par un point. Ex. : 1.0 </article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_service" name="property_service" class="anchor"></a>
<article class="property">
<h3 class="private ">$service</h3>
<pre class="signature">$service : string</pre>
<p><em>Nom du service demandé.</em></p>
<p>Ex. <a href="http://www.mondomaine.org/services/apiVersion/[mon-service">http://www.mondomaine.org/services/apiVersion/[mon-service</a>]/</p>
<h4>Type</h4>
string
— par défaut vaut null. </article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_ressources" name="property_ressources" class="anchor"></a>
<article class="property">
<h3 class="private ">$ressources</h3>
<pre class="signature">$ressources : array</pre>
<p><em>Morceaux de l'url servant à préciser la ressource concerné pour le service demandé.</em></p>
<p>Ex. <a href="http://www.mondomaine.org/services/apiVersion/mon-service/[maRessource/maSousResource">http://www.mondomaine.org/services/apiVersion/mon-service/[maRessource/maSousResource</a>...]</p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_parametres" name="property_parametres" class="anchor"></a>
<article class="property">
<h3 class="private ">$parametres</h3>
<pre class="signature">$parametres : array</pre>
<p><em>Partie de l'url situé après le '?' servant à paramétrer le service demandé.</em></p>
<p>Les données proviennent de $<em>GET où les caractères suivant ont été transformé en '</em>' undescrore dans les clés :</p>
<ul>
<li>chr(32) ( ) (space)</li>
<li>chr(46) (.) (dot)</li>
<li>chr(91) ([) (open square bracket)</li>
<li>chr(128) - chr(159) (various)
En outre nous appliquons la méthode nettoyerGet() qui effectue d'autres remplacement dans les valeurs.
Ex. <a href="http://www.mondomaine.org/services/apiVersion/mon-service?monParametre1=maValeur1&monParametre2=maValeur2">http://www.mondomaine.org/services/apiVersion/mon-service?monParametre1=maValeur1&monParametre2=maValeur2</a></li>
</ul>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>See also</dt>
<dd><a href=""><span class="namespace-wrapper"></span></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_parametresBruts" name="property_parametresBruts" class="anchor"></a>
<article class="property">
<h3 class="private ">$parametresBruts</h3>
<pre class="signature">$parametresBruts : array</pre>
<p><em>Partie de l'url situé après le '?' servant à paramétrer le service demandé.</em></p>
<p>Les données proviennent de $_SERVER['QUERY_STRING'] et n'ont subies aucune transformation au niveau des clés.
Cependant nous appliquons la méthode nettoyerGet() qui effectue d'autres remplacement dans les valeurs.
Ex. <a href="http://www.mondomaine.org/services/apiVersion/mon-service?monParametre1=maValeur1&monParametre2=maValeur2">http://www.mondomaine.org/services/apiVersion/mon-service?monParametre1=maValeur1&monParametre2=maValeur2</a></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>See also</dt>
<dd><a href=""><span class="namespace-wrapper"></span></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_config" name="property_config" class="anchor"></a>
<article class="property">
<h3 class="private ">$config</h3>
<pre class="signature">$config : array</pre>
<p><em>Tableau contenant les paramètres de configuration du serveur.</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_messages" name="property_messages" class="anchor"></a>
<article class="property">
<h3 class="private ">$messages</h3>
<pre class="signature">$messages : array</pre>
<p><em>Tableau contenant les messages d'erreur et/ou d'avertissement du Serveur.</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_http10" name="property_http10" class="anchor"></a>
<article class="property">
<h3 class="private ">$http10</h3>
<pre class="signature">$http10</pre>
<p><em>Codes HTTP.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_parametres_obligatoires" name="property_parametres_obligatoires" class="anchor"></a>
<article class="property">
<h3 class="private ">$parametres_obligatoires</h3>
<pre class="signature">$parametres_obligatoires</pre>
<p><em>Tableau des noms des paramètres à définir dans le fichier de config car obligatoirement nécessaire à cette classe.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<a id="methods" name="methods"></a>
<div class="row-fluid">
<div class="span8 content class"><h2>Methods</h2></div>
<aside class="span4 detailsbar"></aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method___construct" name="method___construct" class="anchor"></a>
<article class="method">
<h3 class="public ">__construct()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">__construct()</pre>
<p><em>Analyse les données envoyées au serveur, enregistre la méthode HTTP utilisée pour appeler le serveur et parse
l'url appelée pour trouver le service demandé.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_chargerClasse" name="method_chargerClasse" class="anchor"></a>
<article class="method">
<h3 class="public ">chargerClasse()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">chargerClasse( <span class="argument">$classe</span>) : void</pre>
<p><em>La méthode __autoload() charge dynamiquement les classes trouvées dans le code.</em></p>
<p>Cette fonction est appelée par php5 quand il trouve une instanciation de classe dans le code.</p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$classe</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<span class="label label-info">static</span>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_executer" name="method_executer" class="anchor"></a>
<article class="method">
<h3 class="public ">executer()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">executer()</pre>
<p><em>Execute la requête.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_envoyerEnteteStatutHttp" name="method_envoyerEnteteStatutHttp" class="anchor"></a>
<article class="method">
<h3 class="public ">envoyerEnteteStatutHttp()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">envoyerEnteteStatutHttp(int <span class="argument">$code</span>)</pre>
<p><em>Envoyer un entête HTTP (version 1.0) de statut.</em></p>
<p>Il remplacera systématiquement tout entête HTTP de statut précédement envoyé.</p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>int</td>
<td>$code</td>
<td><p>entier indiquant le code du statut de l'entête HTTP à envoyer.</p></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<span class="label label-info">static</span>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_gererErreurs" name="method_gererErreurs" class="anchor"></a>
<article class="method">
<h3 class="public ">gererErreurs()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">gererErreurs()</pre>
<p><em>Si des exceptions ou des erreurs sont soulevées par le serveur ou les services, elles sont gérées par cette méthode.</em></p>
<p>Si nous avec des erreurs d'un type différent d'E_USER_NOTICE (réservé au débogage), elle sont renvoyées sur la sortie
standard (via echo).
Si seulement des erreurs de type E_USER_NOTICE, sont présentes, elle sont envoyées en fonction du contenu du paramètre de
config "debogage_mode" :</p>
<ul>
<li>Debug::MODE_ECHO : les messages sont affichés en utilisant echo au moment où ils sont déclenchés dans le code.</li>
<li>Debug::MODE_NOTICE : les message sont stockés par le gestionnaire d'exception sous forme d'erreur de type
E_USER_NOTICE et sont renvoyés sur la sortie standard à la fin de l'execution du programme (via echo).</li>
<li>Debug::MODE_ENTETE_HTTP : les message sont stockés par le gestionnaire d'exception sous forme d'erreur de type
E_USER_NOTICE et sont renvoyés dans un entête HTTP (X_REST_DEBOGAGE_MESSAGES) à la fin de l'execution du programme.</li>
<li>Autre valeur : les messages sont formatés puis retournés par la fonction de débogage (à vous de les afficher).</li>
</ul>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<span class="label label-info">static</span>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_ajouterMessage" name="method_ajouterMessage" class="anchor"></a>
<article class="method">
<h3 class="public ">ajouterMessage()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">ajouterMessage(string <span class="argument">$message</span>)</pre>
<p><em>Permet d'ajouter un message d'erreur ou d'avertissement qui sera envoyé au client.</em></p>
<p>Le message doit être au format texte et en UTF-8.</p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$message</td>
<td><p>le message à envoyer.</p></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<span class="label label-info">static</span>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_initialiserMethode" name="method_initialiserMethode" class="anchor"></a>
<article class="method">
<h3 class="private ">initialiserMethode()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">initialiserMethode()</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_initialiserRequeteDonnees" name="method_initialiserRequeteDonnees" class="anchor"></a>
<article class="method">
<h3 class="private ">initialiserRequeteDonnees()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">initialiserRequeteDonnees()</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_decouperUrlChemin" name="method_decouperUrlChemin" class="anchor"></a>
<article class="method">
<h3 class="private ">decouperUrlChemin()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">decouperUrlChemin()</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_initialiserApiVersion" name="method_initialiserApiVersion" class="anchor"></a>
<article class="method">
<h3 class="private ">initialiserApiVersion()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">initialiserApiVersion( <span class="argument">$apiVersion</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$apiVersion</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_verifierApiVersion" name="method_verifierApiVersion" class="anchor"></a>
<article class="method">
<h3 class="private ">verifierApiVersion()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">verifierApiVersion( <span class="argument">$apiVersion</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$apiVersion</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_initialiserServiceNom" name="method_initialiserServiceNom" class="anchor"></a>
<article class="method">
<h3 class="private ">initialiserServiceNom()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">initialiserServiceNom( <span class="argument">$serviceNom</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$serviceNom</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_verifierServiceNom" name="method_verifierServiceNom" class="anchor"></a>
<article class="method">
<h3 class="private ">verifierServiceNom()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">verifierServiceNom( <span class="argument">$serviceNom</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$serviceNom</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_traiterNomService" name="method_traiterNomService" class="anchor"></a>
<article class="method">
<h3 class="private ">traiterNomService()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">traiterNomService( <span class="argument">$serviceNom</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$serviceNom</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_initialiserRessource" name="method_initialiserRessource" class="anchor"></a>
<article class="method">
<h3 class="private ">initialiserRessource()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">initialiserRessource( <span class="argument">$urlParts</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$urlParts</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_initialiserParametres" name="method_initialiserParametres" class="anchor"></a>
<article class="method">
<h3 class="private ">initialiserParametres()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">initialiserParametres()</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_recupererParametresGet" name="method_recupererParametresGet" class="anchor"></a>
<article class="method">
<h3 class="private ">recupererParametresGet()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">recupererParametresGet()</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_nettoyerParametres" name="method_nettoyerParametres" class="anchor"></a>
<article class="method">
<h3 class="private ">nettoyerParametres()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">nettoyerParametres(array <span class="argument">$parametres</span>)</pre>
<p><em></em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>array</td>
<td>$parametres</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_recupererParametresBruts" name="method_recupererParametresBruts" class="anchor"></a>
<article class="method">
<h3 class="private ">recupererParametresBruts()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">recupererParametresBruts()</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_get" name="method_get" class="anchor"></a>
<article class="method">
<h3 class="private ">get()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">get()</pre>
<p><em>Execute a GET request. A GET request fetches a list of resource when no resource name is given, a list of element
when a resource name is given, or a resource element when a resource and resource unique identifier are given. It does not change the
database contents.</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_post" name="method_post" class="anchor"></a>
<article class="method">
<h3 class="private ">post()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">post()</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_put" name="method_put" class="anchor"></a>
<article class="method">
<h3 class="private ">put()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">put()</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_delete" name="method_delete" class="anchor"></a>
<article class="method">
<h3 class="private ">delete()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">delete()</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_parserDonneesRequete" name="method_parserDonneesRequete" class="anchor"></a>
<article class="method">
<h3 class="private ">parserDonneesRequete()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">parserDonneesRequete() : array</pre>
<p><em>Parse les données contenu dans le corps de la requête HTTP (= POST) en :
- décodant les clés et valeurs.</em></p>
<ul>
<li>supprimant les espaces en début et fin des clés et des valeurs.</li>
</ul>
<h4>Returns</h4>
array
— <p>Tableau de paires clé et valeur.</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_cloreAccesServeur" name="method_cloreAccesServeur" class="anchor"></a>
<article class="method">
<h3 class="private ">cloreAccesServeur()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">cloreAccesServeur( <span class="argument">$retour</span>)</pre>
<p><em>Termine l'accès au serveur après envoir envoyer les messages.</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td></td>
<td>$retour</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<span class="label label-info">static</span>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_envoyerMessages" name="method_envoyerMessages" class="anchor"></a>
<article class="method">
<h3 class="private ">envoyerMessages()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">envoyerMessages()</pre>
<p><em>Envoie au client les éventuels messages d'erreur et d'avertissement du Serveur.</em></p>
<p>Le format d'envoie est text/plain encodé en UTF-8.</p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<span class="label label-info">static</span>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
</div>
</section>
<div id="source-view" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="source-view-label" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="source-view-label">RestServeur.php</h3>
</div>
<div class="modal-body">
<pre data-src="../files/RestServeur.php.txt" class="language-php line-numbers"></pre>
</div>
</div>
<footer class="row-fluid">
<section class="span10 offset2">
<section class="row-fluid">
<section class="span10 offset1">
<section class="row-fluid footer-sections">
<section class="span4">
<h1><i class="icon-code"></i></h1>
<div>
<ul>
</ul>
</div>
</section>
<section class="span4">
<h1><i class="icon-bar-chart"></i></h1>
<div>
<ul>
<li><a href="../graphs/class.html">Class Hierarchy Diagram</a></li>
</ul>
</div>
</section>
<section class="span4">
<h1><i class="icon-pushpin"></i></h1>
<div>
<ul>
<li><a href="../reports/errors.html">Errors</a></li>
<li><a href="../reports/markers.html">Markers</a></li>
</ul>
</div>
</section>
</section>
</section>
</section>
<section class="row-fluid">
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on March 12th, 2014 at 15:57.
</section>
</section>
</section>
</footer>
</div>
</body>
</html>