5 |
aurelien |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
2 |
<html>
|
|
|
3 |
<head>
|
|
|
4 |
<title>Docs For Class GestionnaireErreur</title>
|
|
|
5 |
<link rel="stylesheet" type="text/css" id="layout"
|
|
|
6 |
href="../../media/layout.css" media="screen">
|
|
|
7 |
<link rel="stylesheet" type="text/css" href="../../media/style.css"
|
|
|
8 |
media="all">
|
|
|
9 |
<link rel="stylesheet" type="text/css" href="../../media/print.css"
|
|
|
10 |
media="print">
|
|
|
11 |
</head>
|
|
|
12 |
|
|
|
13 |
<body>
|
|
|
14 |
<div id="header">
|
|
|
15 |
<div id="navLinks">[ <a href="../../classtrees_eFlore.html">Class
|
|
|
16 |
Tree: eFlore</a> ] [ <a href="../../elementindex_eFlore.html">Index:
|
|
|
17 |
eFlore</a> ] [ <a href="../../elementindex.html">All elements</a> ]</div>
|
|
|
18 |
<div id="packagePosition">
|
|
|
19 |
<div id="packageTitle2">eFlore</div>
|
|
|
20 |
<div id="packageTitle">eFlore</div>
|
|
|
21 |
<div id="elementPath">Debogage ·</div>
|
|
|
22 |
</div>
|
|
|
23 |
</div>
|
|
|
24 |
|
|
|
25 |
<div id="nav" class="small">
|
|
|
26 |
<div id="packages">Packages:
|
|
|
27 |
<p><a href="../../li_default.html">default</a></p>
|
|
|
28 |
<p><a href="../../li_eFlore.html">eFlore</a></p>
|
|
|
29 |
</div>
|
|
|
30 |
|
|
|
31 |
<div id="index">
|
|
|
32 |
<div id="files">Files:<br>
|
|
|
33 |
subpackage <b>Debogage</b><br>
|
|
|
34 |
<a href="../../eFlore/Debogage/_bibliotheque---Chronometre.php.html">
|
|
|
35 |
Chronometre.php </a><br>
|
|
|
36 |
<a
|
|
|
37 |
href="../../eFlore/Debogage/_bibliotheque---GestionnaireErreur.php.html">
|
|
|
38 |
GestionnaireErreur.php </a><br>
|
|
|
39 |
</div>
|
|
|
40 |
<div id="interfaces"></div>
|
|
|
41 |
<div id="classes">Classes:<br>
|
|
|
42 |
<b>Debogage</b><br>
|
|
|
43 |
<a href="../../eFlore/Debogage/Chronometre.html"> Chronometre </a><br>
|
|
|
44 |
<a href="../../eFlore/Debogage/GestionnaireErreur.html">
|
|
|
45 |
GestionnaireErreur </a><br>
|
|
|
46 |
</div>
|
|
|
47 |
</div>
|
|
|
48 |
</div>
|
|
|
49 |
|
|
|
50 |
<div id="body">
|
|
|
51 |
<h1>Class: GestionnaireErreur</h1>
|
|
|
52 |
<p style="margin: 0px;">Source Location:
|
|
|
53 |
/bibliotheque/GestionnaireErreur.php</p>
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
<div class="leftcol">
|
|
|
57 |
<h3><a href="#class_details">Class Overview</a> <span
|
|
|
58 |
class="smalllinenumber">[line 56]</span></h3>
|
|
|
59 |
<div id="classTree"><pre></pre></div>
|
|
|
60 |
<div class="small">
|
|
|
61 |
<p>Classe GestionnaireErreur</p>
|
|
|
62 |
<h4>Author(s):</h4>
|
|
|
63 |
<ul>
|
|
|
64 |
</ul>
|
|
|
65 |
<h4>Version:</h4>
|
|
|
66 |
<ul>
|
|
|
67 |
</ul>
|
|
|
68 |
|
|
|
69 |
<h4>Copyright:</h4>
|
|
|
70 |
<ul>
|
|
|
71 |
</li>
|
|
|
72 |
</div>
|
|
|
73 |
</div>
|
|
|
74 |
|
|
|
75 |
<div class="middlecol">
|
|
|
76 |
<h3><a href="#class_vars">Variables</a></h3>
|
|
|
77 |
<ul class="small">
|
|
|
78 |
</ul>
|
|
|
79 |
<h3><a href="#class_consts">Constants</a></h3>
|
|
|
80 |
<ul class="small">
|
|
|
81 |
</ul>
|
|
|
82 |
</div>
|
|
|
83 |
<div class="rightcol">
|
|
|
84 |
<h3><a href="#class_methods">Methods</a></h3>
|
|
|
85 |
<ul class="small">
|
|
|
86 |
<li><a
|
|
|
87 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodgererErreur">gererErreur</a></li>
|
|
|
88 |
<li><a
|
|
|
89 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodgetContexte">getContexte</a></li>
|
|
|
90 |
<li><a
|
|
|
91 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodgetErreur">getErreur</a></li>
|
|
|
92 |
<li><a
|
|
|
93 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodgetInstance">getInstance</a></li>
|
|
|
94 |
<li><a
|
|
|
95 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodgetNiveauErreurCourant">getNiveauErreurCourant</a></li>
|
|
|
96 |
<li><a
|
|
|
97 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodretournerErreur">retournerErreur</a></li>
|
|
|
98 |
<li><a
|
|
|
99 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodretournerErreurSql">retournerErreurSql</a></li>
|
|
|
100 |
<li><a
|
|
|
101 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodsetActive">setActive</a></li>
|
|
|
102 |
<li><a
|
|
|
103 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodsetContexte">setContexte</a></li>
|
|
|
104 |
<li><a
|
|
|
105 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodsetErreur">setErreur</a></li>
|
|
|
106 |
<li><a
|
|
|
107 |
href="../../eFlore/Debogage/GestionnaireErreur.html#methodsetNiveauErreurCourant">setNiveauErreurCourant</a></li>
|
|
|
108 |
</ul>
|
|
|
109 |
</div>
|
|
|
110 |
|
|
|
111 |
<div id="content">
|
|
|
112 |
<hr>
|
|
|
113 |
<div class="contents"></div>
|
|
|
114 |
|
|
|
115 |
<div class="leftCol">
|
|
|
116 |
<h2>Inherited Variables</h2>
|
|
|
117 |
<h2>Inherited Constants</h2>
|
|
|
118 |
</div>
|
|
|
119 |
|
|
|
120 |
<div class="rightCol">
|
|
|
121 |
<h2>Inherited Methods</h2>
|
|
|
122 |
</div>
|
|
|
123 |
<br clear="all">
|
|
|
124 |
<hr>
|
|
|
125 |
|
|
|
126 |
<a name="class_details"></a>
|
|
|
127 |
<h2>Class Details</h2>
|
|
|
128 |
<p align="center"><strong>Classe GestionnaireErreur </strong></p>
|
|
|
129 |
<p>Gérer les erreurs PHP et SQL.</p>
|
|
|
130 |
<p class="small" style="color: #334B66;">[ <a href="#top">Top</a> ]</p>
|
|
|
131 |
|
|
|
132 |
<hr>
|
|
|
133 |
<a name="class_vars"></a>
|
|
|
134 |
<h2>Class Variables</h2>
|
|
|
135 |
|
|
|
136 |
<hr>
|
|
|
137 |
<a name="class_methods"></a>
|
|
|
138 |
<h2>Class Methods</h2>
|
|
|
139 |
<a name="methodgetInstance"></a>
|
|
|
140 |
<p></p>
|
|
|
141 |
<h3>static getInstance</h3>
|
|
|
142 |
<div class="indent">
|
|
|
143 |
<p><code>static <a
|
|
|
144 |
href="../../eFlore/Debogage/GestionnaireErreur.html">GestionnaireErreur</a>
|
|
|
145 |
getInstance( )</code></p>
|
|
|
146 |
|
|
|
147 |
<p class="linenumber">[line 112]</p>
|
|
|
148 |
<p align="center"><strong>Fonction d'accès au singleton </strong></p>
|
|
|
149 |
<h4>Tags:</h4>
|
|
|
150 |
<ul>
|
|
|
151 |
<li><b>return</b> - le gestionnaire d'erreurs courant</li>
|
|
|
152 |
<li><b>access</b> - public</li>
|
|
|
153 |
</ul>
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
<h4>Parameters:</h4>
|
|
|
157 |
<ul>
|
|
|
158 |
</ul>
|
|
|
159 |
</div>
|
|
|
160 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
161 |
<a name="methodretournerErreurSql"></a>
|
|
|
162 |
<p></p>
|
|
|
163 |
<h3>static retournerErreurSql</h3>
|
|
|
164 |
<div class="indent">
|
|
|
165 |
<p><code>static string retournerErreurSql( string $fichier,
|
|
|
166 |
int $methode, string $message, [string $requete = null], [string $autres
|
|
|
167 |
= null])</code></p>
|
|
|
168 |
|
|
|
169 |
<p class="linenumber">[line 323]</p>
|
|
|
170 |
<p align="center"><strong>Retourne l'erreur SQL formatée en
|
|
|
171 |
XHTML. </strong></p>
|
|
|
172 |
<h4>Tags:</h4>
|
|
|
173 |
<ul>
|
|
|
174 |
<li><b>access</b> - public</li>
|
|
|
175 |
</ul>
|
|
|
176 |
|
|
|
177 |
|
|
|
178 |
<h4>Parameters:</h4>
|
|
|
179 |
<ul>
|
|
|
180 |
<li><span class="type">string</span> <b>$fichier</b> - fichier</li>
|
|
|
181 |
<li><span class="type">int</span> <b>$methode</b> - ligne</li>
|
|
|
182 |
<li><span class="type">string</span> <b>$message</b> - message</li>
|
|
|
183 |
<li><span class="type">string</span> <b>$requete</b> - requete</li>
|
|
|
184 |
<li><span class="type">string</span> <b>$autres</b> - autres</li>
|
|
|
185 |
</ul>
|
|
|
186 |
</div>
|
|
|
187 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
188 |
|
|
|
189 |
<a name="methodgererErreur"></a>
|
|
|
190 |
<p></p>
|
|
|
191 |
<h3>gererErreur</h3>
|
|
|
192 |
<div class="indent">
|
|
|
193 |
<p><code>void gererErreur( int $niveau, string $message,
|
|
|
194 |
string $fichier, int $ligne, boolean $contexte)</code></p>
|
|
|
195 |
|
|
|
196 |
<p class="linenumber">[line 209]</p>
|
|
|
197 |
<h4>Tags:</h4>
|
|
|
198 |
<ul>
|
|
|
199 |
<li><b>access</b> - public</li>
|
|
|
200 |
</ul>
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
<h4>Parameters:</h4>
|
|
|
204 |
<ul>
|
|
|
205 |
<li><span class="type">int</span> <b>$niveau</b> - niveau</li>
|
|
|
206 |
<li><span class="type">string</span> <b>$message</b> - message</li>
|
|
|
207 |
<li><span class="type">string</span> <b>$fichier</b> - fichier</li>
|
|
|
208 |
<li><span class="type">int</span> <b>$ligne</b> - ligne</li>
|
|
|
209 |
<li><span class="type">boolean</span> <b>$contexte</b> - contexte</li>
|
|
|
210 |
</ul>
|
|
|
211 |
</div>
|
|
|
212 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
213 |
<a name="methodgetContexte"></a>
|
|
|
214 |
<p></p>
|
|
|
215 |
<h3>getContexte</h3>
|
|
|
216 |
<div class="indent">
|
|
|
217 |
<p><code>boolean getContexte( )</code></p>
|
|
|
218 |
|
|
|
219 |
<p class="linenumber">[line 149]</p>
|
|
|
220 |
<p align="center"><strong>Récupère la valeur du contexte. </strong></p>
|
|
|
221 |
<h4>Tags:</h4>
|
|
|
222 |
<ul>
|
|
|
223 |
<li><b>access</b> - public</li>
|
|
|
224 |
</ul>
|
|
|
225 |
|
|
|
226 |
|
|
|
227 |
<h4>Parameters:</h4>
|
|
|
228 |
<ul>
|
|
|
229 |
</ul>
|
|
|
230 |
</div>
|
|
|
231 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
232 |
<a name="methodgetErreur"></a>
|
|
|
233 |
<p></p>
|
|
|
234 |
<h3>getErreur</h3>
|
|
|
235 |
<div class="indent">
|
|
|
236 |
<p><code>array getErreur( )</code></p>
|
|
|
237 |
|
|
|
238 |
<p class="linenumber">[line 128]</p>
|
|
|
239 |
<p align="center"><strong>Récupère le tableau des erreurs.
|
|
|
240 |
</strong></p>
|
|
|
241 |
<h4>Tags:</h4>
|
|
|
242 |
<ul>
|
|
|
243 |
<li><b>access</b> - public</li>
|
|
|
244 |
</ul>
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
<h4>Parameters:</h4>
|
|
|
248 |
<ul>
|
|
|
249 |
</ul>
|
|
|
250 |
</div>
|
|
|
251 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
252 |
<a name="methodgetNiveauErreurCourant"></a>
|
|
|
253 |
<p></p>
|
|
|
254 |
<h3>getNiveauErreurCourant</h3>
|
|
|
255 |
<div class="indent">
|
|
|
256 |
<p><code>int getNiveauErreurCourant( )</code></p>
|
|
|
257 |
|
|
|
258 |
<p class="linenumber">[line 170]</p>
|
|
|
259 |
<p align="center"><strong>Récupère le niveau d'erreur
|
|
|
260 |
courrant. </strong></p>
|
|
|
261 |
<h4>Tags:</h4>
|
|
|
262 |
<ul>
|
|
|
263 |
<li><b>return</b> - le niveau d'erreur courrant.</li>
|
|
|
264 |
<li><b>access</b> - public</li>
|
|
|
265 |
</ul>
|
|
|
266 |
|
|
|
267 |
|
|
|
268 |
<h4>Parameters:</h4>
|
|
|
269 |
<ul>
|
|
|
270 |
</ul>
|
|
|
271 |
</div>
|
|
|
272 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
273 |
<a name="methodretournerErreur"></a>
|
|
|
274 |
<p></p>
|
|
|
275 |
<h3>retournerErreur</h3>
|
|
|
276 |
<div class="indent">
|
|
|
277 |
<p><code>string retournerErreur( )</code></p>
|
|
|
278 |
|
|
|
279 |
<p class="linenumber">[line 252]</p>
|
|
|
280 |
<p align="center"><strong>Retourne l'erreur PHP formatée en
|
|
|
281 |
XHTML. </strong></p>
|
|
|
282 |
<h4>Tags:</h4>
|
|
|
283 |
<ul>
|
|
|
284 |
<li><b>access</b> - public</li>
|
|
|
285 |
</ul>
|
|
|
286 |
|
|
|
287 |
|
|
|
288 |
<h4>Parameters:</h4>
|
|
|
289 |
<ul>
|
|
|
290 |
</ul>
|
|
|
291 |
</div>
|
|
|
292 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
293 |
<a name="methodsetActive"></a>
|
|
|
294 |
<p></p>
|
|
|
295 |
<h3>setActive</h3>
|
|
|
296 |
<div class="indent">
|
|
|
297 |
<p><code>void setActive( int $niveau)</code></p>
|
|
|
298 |
|
|
|
299 |
<p class="linenumber">[line 192]</p>
|
|
|
300 |
<p align="center"><strong>Définit le niveau d'erreur
|
|
|
301 |
courrant (synonyme fonction precedente) </strong></p>
|
|
|
302 |
<h4>Tags:</h4>
|
|
|
303 |
<ul>
|
|
|
304 |
<li><b>access</b> - public</li>
|
|
|
305 |
</ul>
|
|
|
306 |
|
|
|
307 |
|
|
|
308 |
<h4>Parameters:</h4>
|
|
|
309 |
<ul>
|
|
|
310 |
<li><span class="type">int</span> <b>$niveau</b> - un niveau
|
|
|
311 |
d'erreur.</li>
|
|
|
312 |
</ul>
|
|
|
313 |
</div>
|
|
|
314 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
315 |
<a name="methodsetContexte"></a>
|
|
|
316 |
<p></p>
|
|
|
317 |
<h3>setContexte</h3>
|
|
|
318 |
<div class="indent">
|
|
|
319 |
<p><code>void setContexte( boolean $un_contexte)</code></p>
|
|
|
320 |
|
|
|
321 |
<p class="linenumber">[line 160]</p>
|
|
|
322 |
<p align="center"><strong>Définit si oui ou non le contexte
|
|
|
323 |
sera affiché. </strong></p>
|
|
|
324 |
<h4>Tags:</h4>
|
|
|
325 |
<ul>
|
|
|
326 |
<li><b>access</b> - public</li>
|
|
|
327 |
</ul>
|
|
|
328 |
|
|
|
329 |
|
|
|
330 |
<h4>Parameters:</h4>
|
|
|
331 |
<ul>
|
|
|
332 |
<li><span class="type">boolean</span> <b>$un_contexte</b> -
|
|
|
333 |
un_contexte</li>
|
|
|
334 |
</ul>
|
|
|
335 |
</div>
|
|
|
336 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
337 |
<a name="methodsetErreur"></a>
|
|
|
338 |
<p></p>
|
|
|
339 |
<h3>setErreur</h3>
|
|
|
340 |
<div class="indent">
|
|
|
341 |
<p><code>void setErreur( array $une_erreur)</code></p>
|
|
|
342 |
|
|
|
343 |
<p class="linenumber">[line 139]</p>
|
|
|
344 |
<p align="center"><strong>Ajoute une erreur à la liste. </strong></p>
|
|
|
345 |
<h4>Tags:</h4>
|
|
|
346 |
<ul>
|
|
|
347 |
<li><b>access</b> - public</li>
|
|
|
348 |
</ul>
|
|
|
349 |
|
|
|
350 |
|
|
|
351 |
<h4>Parameters:</h4>
|
|
|
352 |
<ul>
|
|
|
353 |
<li><span class="type">array</span> <b>$une_erreur</b> -
|
|
|
354 |
une_erreur</li>
|
|
|
355 |
</ul>
|
|
|
356 |
</div>
|
|
|
357 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
358 |
<a name="methodsetNiveauErreurCourant"></a>
|
|
|
359 |
<p></p>
|
|
|
360 |
<h3>setNiveauErreurCourant</h3>
|
|
|
361 |
<div class="indent">
|
|
|
362 |
<p><code>void setNiveauErreurCourant( [int $niveau = 2048])</code></p>
|
|
|
363 |
|
|
|
364 |
<p class="linenumber">[line 181]</p>
|
|
|
365 |
<p align="center"><strong>Définit le niveau d'erreur
|
|
|
366 |
courrant. </strong></p>
|
|
|
367 |
<h4>Tags:</h4>
|
|
|
368 |
<ul>
|
|
|
369 |
<li><b>access</b> - public</li>
|
|
|
370 |
</ul>
|
|
|
371 |
|
|
|
372 |
|
|
|
373 |
<h4>Parameters:</h4>
|
|
|
374 |
<ul>
|
|
|
375 |
<li><span class="type">int</span> <b>$niveau</b> - un niveau
|
|
|
376 |
d'erreur.</li>
|
|
|
377 |
</ul>
|
|
|
378 |
</div>
|
|
|
379 |
<p class="top">[ <a href="#top">Top</a> ]</p>
|
|
|
380 |
|
|
|
381 |
<hr>
|
|
|
382 |
<a name="class_consts"></a>
|
|
|
383 |
<h2>Class Constants</h2>
|
|
|
384 |
</div>
|
|
|
385 |
<div id="credit">
|
|
|
386 |
<hr>
|
|
|
387 |
Documentation generated on Thu, 02 Apr 2009 10:23:02 +0200 by <a
|
|
|
388 |
href="http://www.phpdoc.org">phpDocumentor 1.4.1</a></div>
|
|
|
389 |
</div>
|
|
|
390 |
</body>
|
|
|
391 |
</html>
|