464 |
jpm |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html>
|
|
|
3 |
<head>
|
|
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
5 |
<meta name="generator" content="ApiGen 2.8.0">
|
|
|
6 |
|
|
|
7 |
<title>Class MonService | TBFramework - v0.4</title>
|
|
|
8 |
|
|
|
9 |
<script type="text/javascript" src="resources/combined.js?4205936287"></script>
|
|
|
10 |
<script type="text/javascript" src="elementlist.js?1964084359"></script>
|
|
|
11 |
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360">
|
|
|
12 |
|
|
|
13 |
</head>
|
|
|
14 |
|
|
|
15 |
<body>
|
|
|
16 |
<div id="left">
|
|
|
17 |
<div id="menu">
|
|
|
18 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
<div id="groups">
|
|
|
22 |
<h3>Packages</h3>
|
|
|
23 |
<ul>
|
|
|
24 |
<li class="active"><a href="package-Framework.html">Framework</a>
|
|
|
25 |
</li>
|
|
|
26 |
<li><a href="package-None.html">None</a>
|
|
|
27 |
</li>
|
|
|
28 |
<li><a href="package-PHP.html">PHP</a>
|
|
|
29 |
</li>
|
|
|
30 |
<li><a href="package-Utilitaire.html">Utilitaire</a>
|
|
|
31 |
</li>
|
|
|
32 |
</ul>
|
|
|
33 |
</div>
|
|
|
34 |
|
|
|
35 |
<hr>
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
<div id="elements">
|
|
|
39 |
<h3>Classes</h3>
|
|
|
40 |
<ul>
|
|
|
41 |
<li><a href="class-Bdd.html">Bdd</a></li>
|
|
|
42 |
<li><a href="class-Cache.html">Cache</a></li>
|
|
|
43 |
<li><a href="class-CacheSimple.html">CacheSimple</a></li>
|
|
|
44 |
<li><a href="class-Chronometre.html">Chronometre</a></li>
|
|
|
45 |
<li><a href="class-Cli.html">Cli</a></li>
|
|
|
46 |
<li><a href="class-Config.html">Config</a></li>
|
|
|
47 |
<li><a href="class-Controleur.html">Controleur</a></li>
|
|
|
48 |
<li><a href="class-Debug.html">Debug</a></li>
|
|
|
49 |
<li><a href="class-Framework.html">Framework</a></li>
|
|
|
50 |
<li><a href="class-GestionnaireException.html">GestionnaireException</a></li>
|
|
|
51 |
<li><a href="class-I18n.html">I18n</a></li>
|
|
|
52 |
<li><a href="class-Log.html">Log</a></li>
|
|
|
53 |
<li class="active"><a href="class-MonService.html">MonService</a></li>
|
|
|
54 |
<li><a href="class-Registre.html">Registre</a></li>
|
|
|
55 |
<li><a href="class-RestClient.html">RestClient</a></li>
|
|
|
56 |
<li><a href="class-RestServeur.html">RestServeur</a></li>
|
|
|
57 |
<li><a href="class-RestService.html">RestService</a></li>
|
|
|
58 |
<li><a href="class-Script.html">Script</a></li>
|
|
|
59 |
<li><a href="class-ServiceCacheFichier.html">ServiceCacheFichier</a></li>
|
|
|
60 |
<li><a href="class-ServiceCacheSimple.html">ServiceCacheSimple</a></li>
|
|
|
61 |
<li><a href="class-ServiceCacheSqlite.html">ServiceCacheSqlite</a></li>
|
|
|
62 |
<li><a href="class-SquelettePhp.html">SquelettePhp</a></li>
|
|
|
63 |
<li><a href="class-Url.html">Url</a></li>
|
|
|
64 |
</ul>
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
</div>
|
|
|
71 |
</div>
|
|
|
72 |
</div>
|
|
|
73 |
|
|
|
74 |
<div id="splitter"></div>
|
|
|
75 |
|
|
|
76 |
<div id="right">
|
|
|
77 |
<div id="rightInner">
|
|
|
78 |
<form id="search">
|
|
|
79 |
<input type="hidden" name="cx" value="">
|
|
|
80 |
<input type="hidden" name="ie" value="UTF-8">
|
|
|
81 |
<input type="text" name="q" class="text">
|
|
|
82 |
<input type="submit" value="Search">
|
|
|
83 |
</form>
|
|
|
84 |
|
|
|
85 |
<div id="navigation">
|
|
|
86 |
<ul>
|
|
|
87 |
<li>
|
|
|
88 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
89 |
</li>
|
|
|
90 |
<li>
|
|
|
91 |
<a href="package-Framework.html" title="Summary of Framework"><span>Package</span></a>
|
|
|
92 |
</li>
|
|
|
93 |
<li class="active">
|
|
|
94 |
<span>Class</span> </li>
|
|
|
95 |
</ul>
|
|
|
96 |
<ul>
|
|
|
97 |
<li>
|
|
|
98 |
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
|
|
|
99 |
</li>
|
|
|
100 |
<li>
|
|
|
101 |
<a href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a>
|
|
|
102 |
</li>
|
|
|
103 |
<li>
|
|
|
104 |
<a href="todo.html" title="Todo list"><span>Todo</span></a>
|
|
|
105 |
</li>
|
|
|
106 |
</ul>
|
|
|
107 |
<ul>
|
|
|
108 |
</ul>
|
|
|
109 |
</div>
|
|
|
110 |
|
|
|
111 |
<div id="content" class="class">
|
|
|
112 |
<h1>Class MonService</h1>
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
<div class="description">
|
|
|
116 |
|
|
|
117 |
<p>Classe principale gérant les services. Paramètres liés dans config.ini : -
|
|
|
118 |
serveur.baseURL</p>
|
|
|
119 |
|
|
|
120 |
<p>Encodage en entrée : utf8 Encodage en sortie : utf8</p>
|
|
|
121 |
|
|
|
122 |
</div>
|
|
|
123 |
|
|
|
124 |
<dl class="tree">
|
|
|
125 |
<dd style="padding-left:0px">
|
|
|
126 |
<a href="class-RestService.html"><span>RestService</span></a>
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
</dd>
|
|
|
131 |
<dd style="padding-left:30px">
|
|
|
132 |
<img src="resources/inherit.png" alt="Extended by">
|
|
|
133 |
<b><span>MonService</span></b>
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
</dd>
|
|
|
137 |
</dl>
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
<div class="info">
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
<b>Package:</b> <a href="package-Framework.html">Framework</a><br>
|
|
|
151 |
|
|
|
152 |
<b>Category:</b>
|
|
|
153 |
Php 5.2<br>
|
|
|
154 |
<b>Copyright:</b>
|
|
|
155 |
Copyright (c) 2010, Tela Botanica (<a
|
|
|
156 |
href="mailto:accueil@tela-botanica.org">accueil@<!-- -->tela-botanica.org</a>)<br>
|
|
|
157 |
<b>License:</b>
|
|
|
158 |
<a href="GPL">v3 <http://www.gnu.org/licenses/gpl.txt></a><br>
|
|
|
159 |
<b>License:</b>
|
|
|
160 |
<a href="CECILL">v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt></a><br>
|
|
|
161 |
<b>Author:</b>
|
|
|
162 |
Jean-Pascal MILCENT <<a
|
|
|
163 |
href="mailto:jpm@tela-botanica.org">jpm@<!-- -->tela-botanica.org</a>><br>
|
|
|
164 |
<b>Version:</b>
|
|
|
165 |
$Id: RestService.php 417 2012-05-15 09:24:12Z jpm $<br>
|
|
|
166 |
<b>Since:</b>
|
|
|
167 |
0.3<br>
|
|
|
168 |
<b>Link:</b>
|
|
|
169 |
/doc/framework/<br>
|
|
|
170 |
<b>Located at</b> <a href="source-class-MonService.html#2-7" title="Go to source code">exemples/services/modules/0.1/MonService.php</a><br>
|
|
|
171 |
</div>
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
<table class="summary" id="methods">
|
|
|
176 |
<caption>Methods summary</caption>
|
|
|
177 |
<tr data-order="consulter" id="_consulter">
|
|
|
178 |
|
|
|
179 |
<td class="attributes"><code>
|
|
|
180 |
public
|
|
|
181 |
string
|
|
|
182 |
|
|
|
183 |
</code>
|
|
|
184 |
</td>
|
|
|
185 |
|
|
|
186 |
<td class="name"><div>
|
|
|
187 |
<a class="anchor" href="#_consulter">#</a>
|
|
|
188 |
<code><a href="source-class-MonService.html#4-6" title="Go to source code">consulter</a>( <span>array <var>$ressources</var></span>, <span>array <var>$parametres</var></span> )</code>
|
|
|
189 |
|
|
|
190 |
<div class="description short">
|
|
|
191 |
|
|
|
192 |
<p>Méthode appelée lors d'une requête HTTP de type GET.</p>
|
|
|
193 |
|
|
|
194 |
</div>
|
|
|
195 |
|
|
|
196 |
<div class="description detailed hidden">
|
|
|
197 |
|
|
|
198 |
<p>Méthode appelée lors d'une requête HTTP de type GET.</p>
|
|
|
199 |
|
|
|
200 |
<p>Si la consultation est un succès, le code statut HTTP retourné sera 200.
|
|
|
201 |
Dans tous les autres cas, la méthode devra retourner le code statut HTTP
|
|
|
202 |
adéquate.</p>
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
<h4>Parameters</h4>
|
|
|
207 |
<div class="list"><dl>
|
|
|
208 |
<dt><var>$ressources</var></dt>
|
|
|
209 |
<dd><code>array</code><br>Morceaux de l'url servant à préciser la ressource concerné pour le service
|
|
|
210 |
demandé.</dd>
|
|
|
211 |
<dt><var>$parametres</var></dt>
|
|
|
212 |
<dd><code>array</code><br>Partie de l'url situé après le '?' servant à paramétrer le service demandé.</dd>
|
|
|
213 |
</dl></div>
|
|
|
214 |
|
|
|
215 |
<h4>Returns</h4>
|
|
|
216 |
<div class="list">
|
|
|
217 |
<code>string</code><br>une chaine indiquant le succès de l'opération et les données demandées.<br>
|
|
|
218 |
</div>
|
|
|
219 |
|
|
|
220 |
|
|
|
221 |
|
|
|
222 |
<h4>Overrides</h4>
|
|
|
223 |
<div class="list"><code><a href="class-RestService.html#_consulter">RestService::consulter()</a></code></div>
|
|
|
224 |
|
|
|
225 |
</div>
|
|
|
226 |
</div></td>
|
|
|
227 |
</tr>
|
|
|
228 |
</table>
|
|
|
229 |
|
|
|
230 |
<table class="summary inherited">
|
|
|
231 |
<caption>Methods inherited from <a href="class-RestService.html#methods">RestService</a></caption>
|
|
|
232 |
<tr>
|
|
|
233 |
<td><code>
|
|
|
234 |
<a href="class-RestService.html#___construct">__construct()</a>,
|
|
|
235 |
<a href="class-RestService.html#_ajouter">ajouter()</a>,
|
|
|
236 |
<a href="class-RestService.html#_ajouterMessage">ajouterMessage()</a>,
|
|
|
237 |
<a href="class-RestService.html#_getBdd">getBdd()</a>,
|
|
|
238 |
<a href="class-RestService.html#_getRestClient">getRestClient()</a>,
|
|
|
239 |
<a href="class-RestService.html#_initialiser">initialiser()</a>,
|
|
|
240 |
<a href="class-RestService.html#_modifier">modifier()</a>,
|
|
|
241 |
<a href="class-RestService.html#_supprimer">supprimer()</a>,
|
|
|
242 |
<a href="class-RestService.html#_utiliserParametresBruts">utiliserParametresBruts()</a>
|
|
|
243 |
</code></td>
|
|
|
244 |
</tr>
|
|
|
245 |
</table>
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
|
|
|
256 |
|
|
|
257 |
|
|
|
258 |
<table class="summary inherited">
|
|
|
259 |
<caption>Properties inherited from <a href="class-RestService.html#properties">RestService</a></caption>
|
|
|
260 |
<tr>
|
|
|
261 |
<td><code>
|
|
|
262 |
<a href="class-RestService.html#$bdd"><var><span class="deprecated">$bdd</span></var></a>,
|
|
|
263 |
<a href="class-RestService.html#$utilisationParametresBruts"><var>$utilisationParametresBruts</var></a>
|
|
|
264 |
</code></td>
|
|
|
265 |
</tr>
|
|
|
266 |
</table>
|
|
|
267 |
|
|
|
268 |
|
|
|
269 |
|
|
|
270 |
|
|
|
271 |
|
|
|
272 |
</div>
|
|
|
273 |
|
|
|
274 |
<div id="footer">
|
|
|
275 |
TBFramework - v0.4 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
|
|
|
276 |
</div>
|
|
|
277 |
</div>
|
|
|
278 |
</div>
|
|
|
279 |
</body>
|
|
|
280 |
</html>
|