159 |
jpm |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3 |
<head>
|
|
|
4 |
<!-- template designed by Marco Von Ballmoos -->
|
|
|
5 |
<title>Docs For Class GestionnaireException</title>
|
|
|
6 |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
|
|
|
7 |
<link rel="stylesheet" href="../media/stylesheet.css" />
|
|
|
8 |
<script src="../media/lib/classTree.js"></script>
|
|
|
9 |
<script language="javascript" type="text/javascript">
|
|
|
10 |
var imgPlus = new Image();
|
|
|
11 |
var imgMinus = new Image();
|
|
|
12 |
imgPlus.src = "../media/images/plus.png";
|
|
|
13 |
imgMinus.src = "../media/images/minus.png";
|
|
|
14 |
|
|
|
15 |
function showNode(Node){
|
|
|
16 |
switch(navigator.family){
|
|
|
17 |
case 'nn4':
|
|
|
18 |
// Nav 4.x code fork...
|
|
|
19 |
var oTable = document.layers["span" + Node];
|
|
|
20 |
var oImg = document.layers["img" + Node];
|
|
|
21 |
break;
|
|
|
22 |
case 'ie4':
|
|
|
23 |
// IE 4/5 code fork...
|
|
|
24 |
var oTable = document.all["span" + Node];
|
|
|
25 |
var oImg = document.all["img" + Node];
|
|
|
26 |
break;
|
|
|
27 |
case 'gecko':
|
|
|
28 |
// Standards Compliant code fork...
|
|
|
29 |
var oTable = document.getElementById("span" + Node);
|
|
|
30 |
var oImg = document.getElementById("img" + Node);
|
|
|
31 |
break;
|
|
|
32 |
}
|
|
|
33 |
oImg.src = imgMinus.src;
|
|
|
34 |
oTable.style.display = "block";
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
function hideNode(Node){
|
|
|
38 |
switch(navigator.family){
|
|
|
39 |
case 'nn4':
|
|
|
40 |
// Nav 4.x code fork...
|
|
|
41 |
var oTable = document.layers["span" + Node];
|
|
|
42 |
var oImg = document.layers["img" + Node];
|
|
|
43 |
break;
|
|
|
44 |
case 'ie4':
|
|
|
45 |
// IE 4/5 code fork...
|
|
|
46 |
var oTable = document.all["span" + Node];
|
|
|
47 |
var oImg = document.all["img" + Node];
|
|
|
48 |
break;
|
|
|
49 |
case 'gecko':
|
|
|
50 |
// Standards Compliant code fork...
|
|
|
51 |
var oTable = document.getElementById("span" + Node);
|
|
|
52 |
var oImg = document.getElementById("img" + Node);
|
|
|
53 |
break;
|
|
|
54 |
}
|
|
|
55 |
oImg.src = imgPlus.src;
|
|
|
56 |
oTable.style.display = "none";
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
function nodeIsVisible(Node){
|
|
|
60 |
switch(navigator.family){
|
|
|
61 |
case 'nn4':
|
|
|
62 |
// Nav 4.x code fork...
|
|
|
63 |
var oTable = document.layers["span" + Node];
|
|
|
64 |
break;
|
|
|
65 |
case 'ie4':
|
|
|
66 |
// IE 4/5 code fork...
|
|
|
67 |
var oTable = document.all["span" + Node];
|
|
|
68 |
break;
|
|
|
69 |
case 'gecko':
|
|
|
70 |
// Standards Compliant code fork...
|
|
|
71 |
var oTable = document.getElementById("span" + Node);
|
|
|
72 |
break;
|
|
|
73 |
}
|
|
|
74 |
return (oTable && oTable.style.display == "block");
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
function toggleNodeVisibility(Node){
|
|
|
78 |
if (nodeIsVisible(Node)){
|
|
|
79 |
hideNode(Node);
|
|
|
80 |
}else{
|
|
|
81 |
showNode(Node);
|
|
|
82 |
}
|
|
|
83 |
}
|
|
|
84 |
</script>
|
|
|
85 |
</head>
|
|
|
86 |
<body>
|
|
|
87 |
<div class="page-body">
|
|
|
88 |
<h2 class="class-name">Class GestionnaireException</h2>
|
|
|
89 |
|
|
|
90 |
<a name="sec-description"></a>
|
|
|
91 |
<div class="info-box">
|
|
|
92 |
<div class="info-box-title">Description</div>
|
|
|
93 |
<div class="nav-bar">
|
|
|
94 |
<span class="disabled">Description</span> |
|
|
|
95 |
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
|
|
96 |
|
297 |
jpm |
97 |
<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
|
|
|
98 |
|
|
|
99 |
</div>
|
159 |
jpm |
100 |
<div class="info-box-body">
|
|
|
101 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
102 |
<p class="short-description">Classe de gestion des exceptions.</p>
|
297 |
jpm |
103 |
<p class="description"><p>C'est un Singleton.</p></p>
|
159 |
jpm |
104 |
<ul class="tags">
|
297 |
jpm |
105 |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jmp@tela-botanica.org">jmp@tela-botanica.org</a>></li>
|
|
|
106 |
<li><span class="field">author:</span> Aurélien PERONNET <<a href="mailto:aurelien@tela-botanica.org">aurelien@tela-botanica.org</a>></li>
|
|
|
107 |
<li><span class="field">version:</span> $Id: GestionnaireException.php 274 2010-12-28 15:37:22Z jpm $$</li>
|
|
|
108 |
<li><span class="field">copyright:</span> Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)</li>
|
159 |
jpm |
109 |
<li><span class="field">link:</span> /doc/framework/</li>
|
|
|
110 |
<li><span class="field">license:</span> <a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a></li>
|
|
|
111 |
<li><span class="field">license:</span> <a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a></li>
|
|
|
112 |
</ul>
|
|
|
113 |
<p class="notes">
|
297 |
jpm |
114 |
Located in <a class="field" href="_GestionnaireException.php.html">/GestionnaireException.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a18">18</a></span>)
|
159 |
jpm |
115 |
</p>
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
<pre></pre>
|
|
|
119 |
|
|
|
120 |
</div>
|
|
|
121 |
</div>
|
|
|
122 |
|
|
|
123 |
|
297 |
jpm |
124 |
<a name="sec-const-summary"></a>
|
|
|
125 |
<div class="info-box">
|
|
|
126 |
<div class="info-box-title">Class Constant Summary</span></div>
|
|
|
127 |
<div class="nav-bar">
|
|
|
128 |
<a href="#sec-description">Description</a> |
|
|
|
129 |
<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
|
|
|
130 |
|
|
|
|
131 |
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
|
|
132 |
|
|
|
133 |
</div>
|
|
|
134 |
<div class="info-box-body">
|
|
|
135 |
<div class="const-summary">
|
|
|
136 |
<div class="const-title">
|
|
|
137 |
<img src="../media/images/Constant.png" alt=" " />
|
|
|
138 |
<a href="#MODE_CLI" title="details" class="const-name">MODE_CLI</a> = <span class="var-type"> 'cli'</span>
|
159 |
jpm |
139 |
|
297 |
jpm |
140 |
</div>
|
|
|
141 |
</div>
|
|
|
142 |
</div>
|
|
|
143 |
</div>
|
159 |
jpm |
144 |
|
297 |
jpm |
145 |
|
159 |
jpm |
146 |
<a name="sec-method-summary"></a>
|
|
|
147 |
<div class="info-box">
|
|
|
148 |
<div class="info-box-title">Method Summary</span></div>
|
|
|
149 |
<div class="nav-bar">
|
|
|
150 |
<a href="#sec-description">Description</a> |
|
297 |
jpm |
151 |
<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
|
|
|
152 |
|
|
|
153 |
<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
|
159 |
jpm |
154 |
</div>
|
|
|
155 |
<div class="info-box-body">
|
|
|
156 |
<div class="method-summary">
|
297 |
jpm |
157 |
|
159 |
jpm |
158 |
<div class="method-definition">
|
|
|
159 |
static <span class="method-result">void</span>
|
297 |
jpm |
160 |
<a href="#configurer" title="details" class="method-name">configurer</a>
|
|
|
161 |
()
|
|
|
162 |
</div>
|
|
|
163 |
|
|
|
164 |
<div class="method-definition">
|
|
|
165 |
static <span class="method-result">void</span>
|
|
|
166 |
<a href="#formaterExceptionTxt" title="details" class="method-name">formaterExceptionTxt</a>
|
|
|
167 |
(<span class="var-type"></span> <span class="var-name">$e</span>)
|
|
|
168 |
</div>
|
|
|
169 |
|
|
|
170 |
<div class="method-definition">
|
|
|
171 |
static <span class="method-result">void</span>
|
|
|
172 |
<a href="#formaterExceptionXhtml" title="details" class="method-name">formaterExceptionXhtml</a>
|
|
|
173 |
(<span class="var-type"></span> <span class="var-name">$e</span>)
|
|
|
174 |
</div>
|
|
|
175 |
|
|
|
176 |
<div class="method-definition">
|
|
|
177 |
static <span class="method-result">void</span>
|
159 |
jpm |
178 |
<a href="#gererErreur" title="details" class="method-name">gererErreur</a>
|
|
|
179 |
(<span class="var-type">int</span> <span class="var-name">$niveau</span>, <span class="var-type">string</span> <span class="var-name">$message</span>, <span class="var-type">string</span> <span class="var-name">$fichier</span>, <span class="var-type">int</span> <span class="var-name">$ligne</span>, <span class="var-type">string</span> <span class="var-name">$contexte</span>)
|
|
|
180 |
</div>
|
|
|
181 |
|
|
|
182 |
<div class="method-definition">
|
|
|
183 |
static <span class="method-result">void</span>
|
|
|
184 |
<a href="#gererException" title="details" class="method-name">gererException</a>
|
|
|
185 |
(<span class="var-type"></span> <span class="var-name">$e</span>)
|
|
|
186 |
</div>
|
|
|
187 |
|
|
|
188 |
<div class="method-definition">
|
297 |
jpm |
189 |
static <span class="method-result">bool</span>
|
159 |
jpm |
190 |
<a href="#getContexte" title="details" class="method-name">getContexte</a>
|
|
|
191 |
()
|
|
|
192 |
</div>
|
|
|
193 |
|
|
|
194 |
<div class="method-definition">
|
297 |
jpm |
195 |
static <span class="method-result">string</span>
|
159 |
jpm |
196 |
<a href="#getExceptions" title="details" class="method-name">getExceptions</a>
|
|
|
197 |
()
|
|
|
198 |
</div>
|
|
|
199 |
|
|
|
200 |
<div class="method-definition">
|
297 |
jpm |
201 |
static <span class="method-result">string</span>
|
|
|
202 |
<a href="#getExceptionsFormatees" title="details" class="method-name">getExceptionsFormatees</a>
|
159 |
jpm |
203 |
()
|
|
|
204 |
</div>
|
297 |
jpm |
205 |
|
159 |
jpm |
206 |
<div class="method-definition">
|
297 |
jpm |
207 |
static <span class="method-result">int</span>
|
|
|
208 |
<a href="#getExceptionsNbre" title="details" class="method-name">getExceptionsNbre</a>
|
|
|
209 |
()
|
159 |
jpm |
210 |
</div>
|
|
|
211 |
|
|
|
212 |
<div class="method-definition">
|
297 |
jpm |
213 |
static <span class="method-result">array</span>
|
|
|
214 |
<a href="#getExceptionsTriees" title="details" class="method-name">getExceptionsTriees</a>
|
159 |
jpm |
215 |
()
|
|
|
216 |
</div>
|
297 |
jpm |
217 |
|
159 |
jpm |
218 |
<div class="method-definition">
|
297 |
jpm |
219 |
static <span class="method-result">void</span>
|
|
|
220 |
<a href="#initialiser" title="details" class="method-name">initialiser</a>
|
|
|
221 |
()
|
|
|
222 |
</div>
|
|
|
223 |
|
|
|
224 |
<div class="method-definition">
|
|
|
225 |
static <span class="method-result">void</span>
|
159 |
jpm |
226 |
<a href="#setContexte" title="details" class="method-name">setContexte</a>
|
|
|
227 |
(<span class="var-type">bool</span> <span class="var-name">$contexte</span>)
|
|
|
228 |
</div>
|
297 |
jpm |
229 |
|
|
|
230 |
<div class="method-definition">
|
|
|
231 |
<span class="method-result">void</span>
|
|
|
232 |
<a href="#__destruct" title="details" class="method-name">__destruct</a>
|
|
|
233 |
()
|
|
|
234 |
</div>
|
|
|
235 |
</div>
|
159 |
jpm |
236 |
</div>
|
|
|
237 |
</div>
|
|
|
238 |
|
|
|
239 |
|
|
|
240 |
<a name="sec-methods"></a>
|
|
|
241 |
<div class="info-box">
|
|
|
242 |
<div class="info-box-title">Methods</div>
|
|
|
243 |
<div class="nav-bar">
|
|
|
244 |
<a href="#sec-description">Description</a> |
|
297 |
jpm |
245 |
<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
|
|
|
246 |
|
|
|
247 |
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
|
159 |
jpm |
248 |
|
|
|
249 |
</div>
|
|
|
250 |
<div class="info-box-body">
|
|
|
251 |
<A NAME='method_detail'></A>
|
297 |
jpm |
252 |
<a name="methodconfigurer" id="configurer"><!-- --></a>
|
|
|
253 |
<div class="oddrow">
|
|
|
254 |
|
|
|
255 |
<div class="method-header">
|
|
|
256 |
<span class="method-title">static configurer</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a53">53</a></span>)
|
|
|
257 |
</div>
|
|
|
258 |
|
|
|
259 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
260 |
<p class="short-description">Configure le Gestionnaire d'exceptions et d'erreur à partir des paramêtres de config.</p>
|
|
|
261 |
<ul class="tags">
|
|
|
262 |
<li><span class="field">access:</span> public</li>
|
|
|
263 |
</ul>
|
|
|
264 |
|
|
|
265 |
<div class="method-signature">
|
|
|
266 |
static <span class="method-result">void</span>
|
|
|
267 |
<span class="method-name">
|
|
|
268 |
configurer
|
|
|
269 |
</span>
|
|
|
270 |
()
|
|
|
271 |
</div>
|
|
|
272 |
|
|
|
273 |
|
|
|
274 |
|
|
|
275 |
</div>
|
|
|
276 |
<a name="methodformaterExceptionTxt" id="formaterExceptionTxt"><!-- --></a>
|
|
|
277 |
<div class="evenrow">
|
|
|
278 |
|
|
|
279 |
<div class="method-header">
|
|
|
280 |
<span class="method-title">static formaterExceptionTxt</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a188">188</a></span>)
|
|
|
281 |
</div>
|
|
|
282 |
|
|
|
283 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
284 |
<p class="short-description">Formate en texte une exception passée en paramètre.</p>
|
|
|
285 |
<ul class="tags">
|
|
|
286 |
<li><span class="field">since:</span> 0.3</li>
|
|
|
287 |
<li><span class="field">access:</span> public</li>
|
|
|
288 |
</ul>
|
|
|
289 |
|
|
|
290 |
<div class="method-signature">
|
|
|
291 |
static <span class="method-result">void</span>
|
|
|
292 |
<span class="method-name">
|
|
|
293 |
formaterExceptionTxt
|
|
|
294 |
</span>
|
|
|
295 |
(<span class="var-type"></span> <span class="var-name">$e</span>)
|
|
|
296 |
</div>
|
|
|
297 |
|
|
|
298 |
<ul class="parameters">
|
|
|
299 |
<li>
|
|
|
300 |
<span class="var-type">Exception</span>
|
|
|
301 |
<span class="var-name">$e</span><span class="var-description">: l'exception à formater.</span> </li>
|
|
|
302 |
</ul>
|
|
|
303 |
|
|
|
304 |
|
|
|
305 |
</div>
|
|
|
306 |
<a name="methodformaterExceptionXhtml" id="formaterExceptionXhtml"><!-- --></a>
|
|
|
307 |
<div class="oddrow">
|
|
|
308 |
|
|
|
309 |
<div class="method-header">
|
|
|
310 |
<span class="method-title">static formaterExceptionXhtml</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a205">205</a></span>)
|
|
|
311 |
</div>
|
|
|
312 |
|
|
|
313 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
314 |
<p class="short-description">Formate en (X)HTML une exception passée en paramètre.</p>
|
|
|
315 |
<ul class="tags">
|
|
|
316 |
<li><span class="field">since:</span> 0.3</li>
|
|
|
317 |
<li><span class="field">access:</span> public</li>
|
|
|
318 |
</ul>
|
|
|
319 |
|
|
|
320 |
<div class="method-signature">
|
|
|
321 |
static <span class="method-result">void</span>
|
|
|
322 |
<span class="method-name">
|
|
|
323 |
formaterExceptionXhtml
|
|
|
324 |
</span>
|
|
|
325 |
(<span class="var-type"></span> <span class="var-name">$e</span>)
|
|
|
326 |
</div>
|
|
|
327 |
|
|
|
328 |
<ul class="parameters">
|
|
|
329 |
<li>
|
|
|
330 |
<span class="var-type">Exception</span>
|
|
|
331 |
<span class="var-name">$e</span><span class="var-description">: l'exception à formater.</span> </li>
|
|
|
332 |
</ul>
|
|
|
333 |
|
|
|
334 |
|
|
|
335 |
</div>
|
159 |
jpm |
336 |
<a name="methodgererErreur" id="gererErreur"><!-- --></a>
|
|
|
337 |
<div class="evenrow">
|
|
|
338 |
|
|
|
339 |
<div class="method-header">
|
297 |
jpm |
340 |
<span class="method-title">static gererErreur</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a107">107</a></span>)
|
159 |
jpm |
341 |
</div>
|
|
|
342 |
|
|
|
343 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
344 |
<p class="short-description">Gère les erreurs en les convertissant en exceptions (remplace la fonction gestion d'erreurs native de php)</p>
|
|
|
345 |
<ul class="tags">
|
|
|
346 |
<li><span class="field">access:</span> public</li>
|
|
|
347 |
</ul>
|
|
|
348 |
|
|
|
349 |
<div class="method-signature">
|
|
|
350 |
static <span class="method-result">void</span>
|
|
|
351 |
<span class="method-name">
|
|
|
352 |
gererErreur
|
|
|
353 |
</span>
|
|
|
354 |
(<span class="var-type">int</span> <span class="var-name">$niveau</span>, <span class="var-type">string</span> <span class="var-name">$message</span>, <span class="var-type">string</span> <span class="var-name">$fichier</span>, <span class="var-type">int</span> <span class="var-name">$ligne</span>, <span class="var-type">string</span> <span class="var-name">$contexte</span>)
|
|
|
355 |
</div>
|
|
|
356 |
|
|
|
357 |
<ul class="parameters">
|
|
|
358 |
<li>
|
|
|
359 |
<span class="var-type">int</span>
|
|
|
360 |
<span class="var-name">$niveau</span><span class="var-description">: le niveau de l'erreur</span> </li>
|
|
|
361 |
<li>
|
|
|
362 |
<span class="var-type">string</span>
|
|
|
363 |
<span class="var-name">$message</span><span class="var-description">: le message associé à l'erreur</span> </li>
|
|
|
364 |
<li>
|
|
|
365 |
<span class="var-type">string</span>
|
|
|
366 |
<span class="var-name">$fichier</span><span class="var-description">: le nom du fichier où l'erreur s'est produite</span> </li>
|
|
|
367 |
<li>
|
|
|
368 |
<span class="var-type">int</span>
|
|
|
369 |
<span class="var-name">$ligne</span><span class="var-description">: la ligne où l'erreur s'est produite</span> </li>
|
|
|
370 |
<li>
|
|
|
371 |
<span class="var-type">string</span>
|
|
|
372 |
<span class="var-name">$contexte</span><span class="var-description">: le contexte associé à l'erreur</span> </li>
|
|
|
373 |
</ul>
|
|
|
374 |
|
|
|
375 |
|
|
|
376 |
</div>
|
|
|
377 |
<a name="methodgererException" id="gererException"><!-- --></a>
|
|
|
378 |
<div class="oddrow">
|
|
|
379 |
|
|
|
380 |
<div class="method-header">
|
297 |
jpm |
381 |
<span class="method-title">static gererException</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a91">91</a></span>)
|
159 |
jpm |
382 |
</div>
|
|
|
383 |
|
|
|
384 |
<!-- ========== Info from phpDoc block ========= -->
|
297 |
jpm |
385 |
<p class="short-description">Fonction de gestion des exceptions, remplace le handler par défaut.</p>
|
|
|
386 |
<p class="description"><p>Si une boucle génère de multiple exception (ou erreur) identique une seule sera stockée.</p></p>
|
159 |
jpm |
387 |
<ul class="tags">
|
|
|
388 |
<li><span class="field">access:</span> public</li>
|
|
|
389 |
</ul>
|
|
|
390 |
|
|
|
391 |
<div class="method-signature">
|
|
|
392 |
static <span class="method-result">void</span>
|
|
|
393 |
<span class="method-name">
|
|
|
394 |
gererException
|
|
|
395 |
</span>
|
|
|
396 |
(<span class="var-type"></span> <span class="var-name">$e</span>)
|
|
|
397 |
</div>
|
|
|
398 |
|
|
|
399 |
<ul class="parameters">
|
|
|
400 |
<li>
|
|
|
401 |
<span class="var-type">Exception</span>
|
|
|
402 |
<span class="var-name">$e</span><span class="var-description">: l'exception à traiter</span> </li>
|
|
|
403 |
</ul>
|
|
|
404 |
|
|
|
405 |
|
|
|
406 |
</div>
|
|
|
407 |
<a name="methodgetContexte" id="getContexte"><!-- --></a>
|
|
|
408 |
<div class="evenrow">
|
|
|
409 |
|
|
|
410 |
<div class="method-header">
|
297 |
jpm |
411 |
<span class="method-title">static getContexte</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a74">74</a></span>)
|
159 |
jpm |
412 |
</div>
|
|
|
413 |
|
|
|
414 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
415 |
<p class="short-description">Renvoie le booleen définissant si l'on affiche le contexte ou non</p>
|
|
|
416 |
<ul class="tags">
|
297 |
jpm |
417 |
<li><span class="field">return:</span> true si on affiche le contexte sinon false.</li>
|
159 |
jpm |
418 |
<li><span class="field">access:</span> public</li>
|
|
|
419 |
</ul>
|
|
|
420 |
|
|
|
421 |
<div class="method-signature">
|
297 |
jpm |
422 |
static <span class="method-result">bool</span>
|
159 |
jpm |
423 |
<span class="method-name">
|
|
|
424 |
getContexte
|
|
|
425 |
</span>
|
|
|
426 |
()
|
|
|
427 |
</div>
|
|
|
428 |
|
|
|
429 |
|
|
|
430 |
|
|
|
431 |
</div>
|
|
|
432 |
<a name="methodgetExceptions" id="getExceptions"><!-- --></a>
|
|
|
433 |
<div class="oddrow">
|
|
|
434 |
|
|
|
435 |
<div class="method-header">
|
297 |
jpm |
436 |
<span class="method-title">static getExceptions</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a123">123</a></span>)
|
159 |
jpm |
437 |
</div>
|
|
|
438 |
|
|
|
439 |
<!-- ========== Info from phpDoc block ========= -->
|
297 |
jpm |
440 |
<p class="short-description">Renvoie les exceptions au format (X)HTML ou bien au format texte suivant le mode d'utilisation de PHP.</p>
|
159 |
jpm |
441 |
<ul class="tags">
|
297 |
jpm |
442 |
<li><span class="field">return:</span> les exceptions formatées en texte ou (X)HTML.</li>
|
|
|
443 |
<li><span class="field">see:</span> <a href="../Framework/GestionnaireException.html#methodgetExceptionsFormatees">GestionnaireException::getExceptionsFormatees()</a></li>
|
|
|
444 |
<li><span class="field">deprecated:</span> </li>
|
|
|
445 |
<li><span class="field">since:</span> 0.3</li>
|
159 |
jpm |
446 |
<li><span class="field">access:</span> public</li>
|
|
|
447 |
</ul>
|
|
|
448 |
|
|
|
449 |
<div class="method-signature">
|
297 |
jpm |
450 |
static <span class="method-result">string</span>
|
159 |
jpm |
451 |
<span class="method-name">
|
|
|
452 |
getExceptions
|
|
|
453 |
</span>
|
|
|
454 |
()
|
|
|
455 |
</div>
|
|
|
456 |
|
|
|
457 |
|
|
|
458 |
|
|
|
459 |
</div>
|
297 |
jpm |
460 |
<a name="methodgetExceptionsFormatees" id="getExceptionsFormatees"><!-- --></a>
|
159 |
jpm |
461 |
<div class="evenrow">
|
|
|
462 |
|
|
|
463 |
<div class="method-header">
|
297 |
jpm |
464 |
<span class="method-title">static getExceptionsFormatees</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a132">132</a></span>)
|
159 |
jpm |
465 |
</div>
|
|
|
466 |
|
|
|
467 |
<!-- ========== Info from phpDoc block ========= -->
|
297 |
jpm |
468 |
<p class="short-description">Renvoie les exceptions au format (X)HTML ou bien au format texte suivant le mode d'utilisation de PHP.</p>
|
159 |
jpm |
469 |
<ul class="tags">
|
297 |
jpm |
470 |
<li><span class="field">return:</span> les exceptions formatées en texte ou (X)HTML.</li>
|
|
|
471 |
<li><span class="field">since:</span> 0.3</li>
|
159 |
jpm |
472 |
<li><span class="field">access:</span> public</li>
|
|
|
473 |
</ul>
|
|
|
474 |
|
|
|
475 |
<div class="method-signature">
|
297 |
jpm |
476 |
static <span class="method-result">string</span>
|
159 |
jpm |
477 |
<span class="method-name">
|
297 |
jpm |
478 |
getExceptionsFormatees
|
159 |
jpm |
479 |
</span>
|
|
|
480 |
()
|
|
|
481 |
</div>
|
|
|
482 |
|
|
|
483 |
|
|
|
484 |
|
|
|
485 |
</div>
|
297 |
jpm |
486 |
<a name="methodgetExceptionsNbre" id="getExceptionsNbre"><!-- --></a>
|
159 |
jpm |
487 |
<div class="oddrow">
|
|
|
488 |
|
|
|
489 |
<div class="method-header">
|
297 |
jpm |
490 |
<span class="method-title">static getExceptionsNbre</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a66">66</a></span>)
|
159 |
jpm |
491 |
</div>
|
|
|
492 |
|
|
|
493 |
<!-- ========== Info from phpDoc block ========= -->
|
297 |
jpm |
494 |
<p class="short-description">Renvoie le nombre d'exceptions et d'erreurs levées.</p>
|
159 |
jpm |
495 |
<ul class="tags">
|
297 |
jpm |
496 |
<li><span class="field">return:</span> le nombre d'exception actuellement levées</li>
|
|
|
497 |
<li><span class="field">see:</span> getExceptions() pour obtenir les exceptions formatées.</li>
|
|
|
498 |
<li><span class="field">since:</span> 0.3</li>
|
159 |
jpm |
499 |
<li><span class="field">access:</span> public</li>
|
|
|
500 |
</ul>
|
|
|
501 |
|
|
|
502 |
<div class="method-signature">
|
297 |
jpm |
503 |
static <span class="method-result">int</span>
|
159 |
jpm |
504 |
<span class="method-name">
|
297 |
jpm |
505 |
getExceptionsNbre
|
159 |
jpm |
506 |
</span>
|
297 |
jpm |
507 |
()
|
159 |
jpm |
508 |
</div>
|
|
|
509 |
|
|
|
510 |
|
|
|
511 |
|
|
|
512 |
</div>
|
297 |
jpm |
513 |
<a name="methodgetExceptionsTriees" id="getExceptionsTriees"><!-- --></a>
|
159 |
jpm |
514 |
<div class="evenrow">
|
|
|
515 |
|
|
|
516 |
<div class="method-header">
|
297 |
jpm |
517 |
<span class="method-title">static getExceptionsTriees</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a159">159</a></span>)
|
159 |
jpm |
518 |
</div>
|
|
|
519 |
|
|
|
520 |
<!-- ========== Info from phpDoc block ========= -->
|
297 |
jpm |
521 |
<p class="short-description">Renvoie le tableau d'objets Exception générées par le script PHP triées du niveau de sévérité le plus élevé au moins élevé.</p>
|
|
|
522 |
<p class="description"><p>Format du tableau : array{sévérité_1 = array{Exception1, Exception2, Exception3,...}, sévérité_1 = array{Exception1, Exception2, ...}, ...}; ATTENTION : si vous utilisez cette méthode, c'est à vous de gérer l'affichage des Exceptions. Le gestionnaire d'exception n'enverra plus rien au navigateur ou à la console.</p></p>
|
159 |
jpm |
523 |
<ul class="tags">
|
297 |
jpm |
524 |
<li><span class="field">return:</span> le tableau trié d'objet Exception.</li>
|
|
|
525 |
<li><span class="field">since:</span> 0.3</li>
|
159 |
jpm |
526 |
<li><span class="field">access:</span> public</li>
|
|
|
527 |
</ul>
|
|
|
528 |
|
|
|
529 |
<div class="method-signature">
|
297 |
jpm |
530 |
static <span class="method-result">array</span>
|
159 |
jpm |
531 |
<span class="method-name">
|
297 |
jpm |
532 |
getExceptionsTriees
|
159 |
jpm |
533 |
</span>
|
|
|
534 |
()
|
|
|
535 |
</div>
|
|
|
536 |
|
|
|
537 |
|
|
|
538 |
|
|
|
539 |
</div>
|
297 |
jpm |
540 |
<a name="methodinitialiser" id="initialiser"><!-- --></a>
|
159 |
jpm |
541 |
<div class="oddrow">
|
|
|
542 |
|
|
|
543 |
<div class="method-header">
|
297 |
jpm |
544 |
<span class="method-title">static initialiser</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a41">41</a></span>)
|
159 |
jpm |
545 |
</div>
|
|
|
546 |
|
|
|
547 |
<!-- ========== Info from phpDoc block ========= -->
|
297 |
jpm |
548 |
<p class="short-description">Initialise le Gestionnaire d'exceptions et d'erreur sans tenir comptes des paramêtres de config.</p>
|
|
|
549 |
<ul class="tags">
|
|
|
550 |
<li><span class="field">access:</span> public</li>
|
|
|
551 |
</ul>
|
|
|
552 |
|
|
|
553 |
<div class="method-signature">
|
|
|
554 |
static <span class="method-result">void</span>
|
|
|
555 |
<span class="method-name">
|
|
|
556 |
initialiser
|
|
|
557 |
</span>
|
|
|
558 |
()
|
|
|
559 |
</div>
|
|
|
560 |
|
|
|
561 |
|
|
|
562 |
|
|
|
563 |
</div>
|
|
|
564 |
<a name="methodsetContexte" id="setContexte"><!-- --></a>
|
|
|
565 |
<div class="evenrow">
|
|
|
566 |
|
|
|
567 |
<div class="method-header">
|
|
|
568 |
<span class="method-title">static setContexte</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a82">82</a></span>)
|
|
|
569 |
</div>
|
|
|
570 |
|
|
|
571 |
<!-- ========== Info from phpDoc block ========= -->
|
159 |
jpm |
572 |
<p class="short-description">Definit si l'on veut afficher le contexte ou non</p>
|
|
|
573 |
<ul class="tags">
|
|
|
574 |
<li><span class="field">access:</span> public</li>
|
|
|
575 |
</ul>
|
|
|
576 |
|
|
|
577 |
<div class="method-signature">
|
297 |
jpm |
578 |
static <span class="method-result">void</span>
|
159 |
jpm |
579 |
<span class="method-name">
|
|
|
580 |
setContexte
|
|
|
581 |
</span>
|
|
|
582 |
(<span class="var-type">bool</span> <span class="var-name">$contexte</span>)
|
|
|
583 |
</div>
|
|
|
584 |
|
|
|
585 |
<ul class="parameters">
|
|
|
586 |
<li>
|
|
|
587 |
<span class="var-type">bool</span>
|
|
|
588 |
<span class="var-name">$contexte</span><span class="var-description">: true si on veut afficher le contexte, false sinon, par défaut vaut false</span> </li>
|
|
|
589 |
</ul>
|
|
|
590 |
|
|
|
591 |
|
|
|
592 |
</div>
|
297 |
jpm |
593 |
<a name="method__destruct" id="__destruct"><!-- --></a>
|
|
|
594 |
<div class="oddrow">
|
|
|
595 |
|
|
|
596 |
<div class="method-header">
|
|
|
597 |
<span class="method-title">Destructor __destruct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a224">224</a></span>)
|
|
|
598 |
</div>
|
|
|
599 |
|
|
|
600 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
601 |
<p class="short-description">Lors de la destruction de la classe si des exceptions n'ont pas été affichées, et si le débogage est à true, elles sont affichées.</p>
|
|
|
602 |
<ul class="tags">
|
|
|
603 |
<li><span class="field">access:</span> public</li>
|
|
|
604 |
</ul>
|
|
|
605 |
|
|
|
606 |
<div class="method-signature">
|
|
|
607 |
<span class="method-result">void</span>
|
|
|
608 |
<span class="method-name">
|
|
|
609 |
__destruct
|
|
|
610 |
</span>
|
|
|
611 |
()
|
|
|
612 |
</div>
|
|
|
613 |
|
|
|
614 |
|
|
|
615 |
|
|
|
616 |
</div>
|
159 |
jpm |
617 |
|
|
|
618 |
</div>
|
|
|
619 |
</div>
|
|
|
620 |
|
297 |
jpm |
621 |
<a name="sec-consts"></a>
|
|
|
622 |
<div class="info-box">
|
|
|
623 |
<div class="info-box-title">Class Constants</div>
|
|
|
624 |
<div class="nav-bar">
|
|
|
625 |
<a href="#sec-description">Description</a> |
|
|
|
626 |
<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
|
|
|
627 |
|
|
|
628 |
|
|
|
629 |
|
|
|
|
630 |
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
|
|
631 |
|
|
|
632 |
</div>
|
|
|
633 |
<div class="info-box-body">
|
|
|
634 |
<a name="constMODE_CLI" id="MODE_CLI"><!-- --></A>
|
|
|
635 |
<div class="evenrow">
|
159 |
jpm |
636 |
|
297 |
jpm |
637 |
<div class="const-header">
|
|
|
638 |
<img src="../media/images/Variable.png" />
|
|
|
639 |
<span class="const-title">
|
|
|
640 |
<span class="const-name">MODE_CLI</span>
|
|
|
641 |
= <span class="const-default"> 'cli'</span>
|
|
|
642 |
(line <span class="line-number"><a href="../__filesource/fsource_Framework__GestionnaireException.php.html#a20">20</a></span>)
|
|
|
643 |
</span>
|
|
|
644 |
</div>
|
|
|
645 |
|
|
|
646 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
647 |
|
|
|
648 |
|
|
|
649 |
</div>
|
|
|
650 |
|
|
|
651 |
</div>
|
|
|
652 |
</div>
|
|
|
653 |
|
159 |
jpm |
654 |
<p class="notes" id="credit">
|
302 |
jpm |
655 |
Documentation generated on Tue, 18 Jan 2011 15:30:50 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
|
159 |
jpm |
656 |
</p>
|
|
|
657 |
</div></body>
|
|
|
658 |
</html>
|