159 |
jpm |
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
3 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
4 |
<head>
|
|
|
5 |
<!-- template designed by Marco Von Ballmoos -->
|
|
|
6 |
<title>Docs For Class Debug</title>
|
|
|
7 |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
|
|
|
8 |
<link rel="stylesheet" href="../media/stylesheet.css" />
|
|
|
9 |
<script src="../media/lib/classTree.js"></script>
|
|
|
10 |
<script language="javascript" type="text/javascript">
|
|
|
11 |
var imgPlus = new Image();
|
|
|
12 |
var imgMinus = new Image();
|
|
|
13 |
imgPlus.src = "../media/images/plus.png";
|
|
|
14 |
imgMinus.src = "../media/images/minus.png";
|
|
|
15 |
|
|
|
16 |
function showNode(Node){
|
|
|
17 |
switch(navigator.family){
|
|
|
18 |
case 'nn4':
|
|
|
19 |
// Nav 4.x code fork...
|
|
|
20 |
var oTable = document.layers["span" + Node];
|
|
|
21 |
var oImg = document.layers["img" + Node];
|
|
|
22 |
break;
|
|
|
23 |
case 'ie4':
|
|
|
24 |
// IE 4/5 code fork...
|
|
|
25 |
var oTable = document.all["span" + Node];
|
|
|
26 |
var oImg = document.all["img" + Node];
|
|
|
27 |
break;
|
|
|
28 |
case 'gecko':
|
|
|
29 |
// Standards Compliant code fork...
|
|
|
30 |
var oTable = document.getElementById("span" + Node);
|
|
|
31 |
var oImg = document.getElementById("img" + Node);
|
|
|
32 |
break;
|
|
|
33 |
}
|
|
|
34 |
oImg.src = imgMinus.src;
|
|
|
35 |
oTable.style.display = "block";
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
function hideNode(Node){
|
|
|
39 |
switch(navigator.family){
|
|
|
40 |
case 'nn4':
|
|
|
41 |
// Nav 4.x code fork...
|
|
|
42 |
var oTable = document.layers["span" + Node];
|
|
|
43 |
var oImg = document.layers["img" + Node];
|
|
|
44 |
break;
|
|
|
45 |
case 'ie4':
|
|
|
46 |
// IE 4/5 code fork...
|
|
|
47 |
var oTable = document.all["span" + Node];
|
|
|
48 |
var oImg = document.all["img" + Node];
|
|
|
49 |
break;
|
|
|
50 |
case 'gecko':
|
|
|
51 |
// Standards Compliant code fork...
|
|
|
52 |
var oTable = document.getElementById("span" + Node);
|
|
|
53 |
var oImg = document.getElementById("img" + Node);
|
|
|
54 |
break;
|
|
|
55 |
}
|
|
|
56 |
oImg.src = imgPlus.src;
|
|
|
57 |
oTable.style.display = "none";
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
function nodeIsVisible(Node){
|
|
|
61 |
switch(navigator.family){
|
|
|
62 |
case 'nn4':
|
|
|
63 |
// Nav 4.x code fork...
|
|
|
64 |
var oTable = document.layers["span" + Node];
|
|
|
65 |
break;
|
|
|
66 |
case 'ie4':
|
|
|
67 |
// IE 4/5 code fork...
|
|
|
68 |
var oTable = document.all["span" + Node];
|
|
|
69 |
break;
|
|
|
70 |
case 'gecko':
|
|
|
71 |
// Standards Compliant code fork...
|
|
|
72 |
var oTable = document.getElementById("span" + Node);
|
|
|
73 |
break;
|
|
|
74 |
}
|
|
|
75 |
return (oTable && oTable.style.display == "block");
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
function toggleNodeVisibility(Node){
|
|
|
79 |
if (nodeIsVisible(Node)){
|
|
|
80 |
hideNode(Node);
|
|
|
81 |
}else{
|
|
|
82 |
showNode(Node);
|
|
|
83 |
}
|
|
|
84 |
}
|
|
|
85 |
</script>
|
|
|
86 |
</head>
|
|
|
87 |
<body>
|
|
|
88 |
<div class="page-body">
|
|
|
89 |
<h2 class="class-name">Class Debug</h2>
|
|
|
90 |
|
|
|
91 |
<a name="sec-description"></a>
|
|
|
92 |
<div class="info-box">
|
|
|
93 |
<div class="info-box-title">Description</div>
|
|
|
94 |
<div class="nav-bar">
|
|
|
95 |
<span class="disabled">Description</span> |
|
|
|
96 |
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
|
|
|
97 |
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
|
|
98 |
|
|
|
99 |
</div>
|
|
|
100 |
<div class="info-box-body">
|
|
|
101 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
102 |
<p class="short-description">Classe fournissant des fonctions de débogage équivalante à var_dump et print_r.</p>
|
|
|
103 |
<p class="description"><p>L'affichage et l'utilisation de ces fonctions sont améliorés via cette classe. Cette classe est inspirée de la classe Zend_Debug.</p><p>PHP version 5</p></p>
|
|
|
104 |
<ul class="tags">
|
|
|
105 |
<li><span class="field">author:</span> Jean-Pascal MILCENT <<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>></li>
|
|
|
106 |
<li><span class="field">version:</span> $$Id: Debug.php 153 2010-03-04 10:48:32Z jpm $$</li>
|
|
|
107 |
<li><span class="field">copyright:</span> 1999-2009 Tela Botanica (accueil@tela-botanica.org)</li>
|
|
|
108 |
<li><span class="field">license:</span> GPL</li>
|
|
|
109 |
<li><span class="field">license:</span> CECILL</li>
|
|
|
110 |
</ul>
|
|
|
111 |
<p class="notes">
|
|
|
112 |
Located in <a class="field" href="_Debug.php.html">/Debug.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__Debug.php.html#a20">20</a></span>)
|
|
|
113 |
</p>
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
<pre></pre>
|
|
|
117 |
|
|
|
118 |
</div>
|
|
|
119 |
</div>
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
<a name="sec-var-summary"></a>
|
|
|
124 |
<div class="info-box">
|
|
|
125 |
<div class="info-box-title">Variable Summary</span></div>
|
|
|
126 |
<div class="nav-bar">
|
|
|
127 |
<a href="#sec-description">Description</a> |
|
|
|
128 |
<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
|
|
|
129 |
|
|
|
|
130 |
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
|
|
131 |
|
|
|
132 |
</div>
|
|
|
133 |
<div class="info-box-body">
|
|
|
134 |
<div class="var-summary">
|
|
|
135 |
<div class="var-title">
|
|
|
136 |
static <span class="var-type">mixed</span>
|
|
|
137 |
<a href="#$mode" title="details" class="var-name">$mode</a>
|
|
|
138 |
</div>
|
|
|
139 |
</div>
|
|
|
140 |
</div>
|
|
|
141 |
</div>
|
|
|
142 |
|
|
|
143 |
<a name="sec-method-summary"></a>
|
|
|
144 |
<div class="info-box">
|
|
|
145 |
<div class="info-box-title">Method Summary</span></div>
|
|
|
146 |
<div class="nav-bar">
|
|
|
147 |
<a href="#sec-description">Description</a> |
|
|
|
148 |
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
|
|
|
149 |
|
|
|
150 |
|
|
|
|
151 |
<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
|
|
|
152 |
</div>
|
|
|
153 |
<div class="info-box-body">
|
|
|
154 |
<div class="method-summary">
|
|
|
155 |
|
|
|
156 |
<div class="method-definition">
|
|
|
157 |
static <span class="method-result">string</span>
|
|
|
158 |
<a href="#dump" title="details" class="method-name">dump</a>
|
|
|
159 |
(<span class="var-type">mixed</span> <span class="var-name">$variable</span>, [<span class="var-type">string</span> <span class="var-name">$mot_cle</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$echo</span> = <span class="var-default">true</span>])
|
|
|
160 |
</div>
|
|
|
161 |
|
|
|
162 |
<div class="method-definition">
|
|
|
163 |
static <span class="method-result">string</span>
|
|
|
164 |
<a href="#getMode" title="details" class="method-name">getMode</a>
|
|
|
165 |
()
|
|
|
166 |
</div>
|
|
|
167 |
|
|
|
168 |
<div class="method-definition">
|
|
|
169 |
static <span class="method-result">string</span>
|
|
|
170 |
<a href="#printr" title="details" class="method-name">printr</a>
|
|
|
171 |
(<span class="var-type">mixed</span> <span class="var-name">$variable</span>, [<span class="var-type">string</span> <span class="var-name">$mot_cle</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$echo</span> = <span class="var-default">true</span>])
|
|
|
172 |
</div>
|
|
|
173 |
</div>
|
|
|
174 |
</div>
|
|
|
175 |
</div>
|
|
|
176 |
|
|
|
177 |
<a name="sec-vars"></a>
|
|
|
178 |
<div class="info-box">
|
|
|
179 |
<div class="info-box-title">Variables</div>
|
|
|
180 |
<div class="nav-bar">
|
|
|
181 |
<a href="#sec-description">Description</a> |
|
|
|
182 |
<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
|
186 |
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
|
|
|
187 |
|
|
|
188 |
</div>
|
|
|
189 |
<div class="info-box-body">
|
|
|
190 |
<a name="var$mode" id="$mode"><!-- --></A>
|
|
|
191 |
<div class="evenrow">
|
|
|
192 |
|
|
|
193 |
<div class="var-header">
|
|
|
194 |
<span class="var-title">
|
|
|
195 |
static <span class="var-type">mixed</span>
|
|
|
196 |
<span class="var-name">$mode</span>
|
|
|
197 |
= <span class="var-default"> null</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Debug.php.html#a25">25</a></span>)
|
|
|
198 |
</span>
|
|
|
199 |
</div>
|
|
|
200 |
|
|
|
201 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
202 |
<p class="short-description">mode de php (cli ou sapi)</p>
|
|
|
203 |
<ul class="tags">
|
|
|
204 |
<li><span class="field">access:</span> protected</li>
|
|
|
205 |
</ul>
|
|
|
206 |
|
|
|
207 |
|
|
|
208 |
|
|
|
209 |
|
|
|
210 |
|
|
|
211 |
</div>
|
|
|
212 |
|
|
|
213 |
|
|
|
214 |
</div>
|
|
|
215 |
</div>
|
|
|
216 |
|
|
|
217 |
<a name="sec-methods"></a>
|
|
|
218 |
<div class="info-box">
|
|
|
219 |
<div class="info-box-title">Methods</div>
|
|
|
220 |
<div class="nav-bar">
|
|
|
221 |
<a href="#sec-description">Description</a> |
|
|
|
222 |
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
|
|
|
223 |
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
|
|
|
224 |
|
|
|
225 |
</div>
|
|
|
226 |
<div class="info-box-body">
|
|
|
227 |
<A NAME='method_detail'></A>
|
|
|
228 |
<a name="methoddump" id="dump"><!-- --></a>
|
|
|
229 |
<div class="oddrow">
|
|
|
230 |
|
|
|
231 |
<div class="method-header">
|
|
|
232 |
<span class="method-title">static dump</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Debug.php.html#a45">45</a></span>)
|
|
|
233 |
</div>
|
|
|
234 |
|
|
|
235 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
236 |
<p class="short-description">Equivalent de var_dump</p>
|
|
|
237 |
<ul class="tags">
|
|
|
238 |
<li><span class="field">return:</span> la chaine à afficher representant le dump ou null si echo</li>
|
|
|
239 |
<li><span class="field">access:</span> public</li>
|
|
|
240 |
</ul>
|
|
|
241 |
|
|
|
242 |
<div class="method-signature">
|
|
|
243 |
static <span class="method-result">string</span>
|
|
|
244 |
<span class="method-name">
|
|
|
245 |
dump
|
|
|
246 |
</span>
|
|
|
247 |
(<span class="var-type">mixed</span> <span class="var-name">$variable</span>, [<span class="var-type">string</span> <span class="var-name">$mot_cle</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$echo</span> = <span class="var-default">true</span>])
|
|
|
248 |
</div>
|
|
|
249 |
|
|
|
250 |
<ul class="parameters">
|
|
|
251 |
<li>
|
|
|
252 |
<span class="var-type">mixed</span>
|
|
|
253 |
<span class="var-name">$variable</span><span class="var-description">: la variable à dumper</span> </li>
|
|
|
254 |
<li>
|
|
|
255 |
<span class="var-type">string</span>
|
|
|
256 |
<span class="var-name">$mot_cle</span><span class="var-description">: le mot cle à associer à la variable</span> </li>
|
|
|
257 |
<li>
|
|
|
258 |
<span class="var-type">boolean</span>
|
|
|
259 |
<span class="var-name">$echo</span><span class="var-description">: si true on affiche le résultat, si false on ne renvoie que la chaine sans l'afficher</span> </li>
|
|
|
260 |
</ul>
|
|
|
261 |
|
|
|
262 |
|
|
|
263 |
</div>
|
|
|
264 |
<a name="methodgetMode" id="getMode"><!-- --></a>
|
|
|
265 |
<div class="evenrow">
|
|
|
266 |
|
|
|
267 |
<div class="method-header">
|
|
|
268 |
<span class="method-title">static getMode</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Debug.php.html#a31">31</a></span>)
|
|
|
269 |
</div>
|
|
|
270 |
|
|
|
271 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
272 |
<p class="short-description">Accesseur pour le mode</p>
|
|
|
273 |
<ul class="tags">
|
|
|
274 |
<li><span class="field">return:</span> le mode de php</li>
|
|
|
275 |
<li><span class="field">access:</span> public</li>
|
|
|
276 |
</ul>
|
|
|
277 |
|
|
|
278 |
<div class="method-signature">
|
|
|
279 |
static <span class="method-result">string</span>
|
|
|
280 |
<span class="method-name">
|
|
|
281 |
getMode
|
|
|
282 |
</span>
|
|
|
283 |
()
|
|
|
284 |
</div>
|
|
|
285 |
|
|
|
286 |
|
|
|
287 |
|
|
|
288 |
</div>
|
|
|
289 |
<a name="methodprintr" id="printr"><!-- --></a>
|
|
|
290 |
<div class="oddrow">
|
|
|
291 |
|
|
|
292 |
<div class="method-header">
|
|
|
293 |
<span class="method-title">static printr</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__Debug.php.html#a65">65</a></span>)
|
|
|
294 |
</div>
|
|
|
295 |
|
|
|
296 |
<!-- ========== Info from phpDoc block ========= -->
|
|
|
297 |
<p class="short-description">Equivalent de print_r</p>
|
|
|
298 |
<ul class="tags">
|
|
|
299 |
<li><span class="field">return:</span> la chaine contenant la variable printée ou null si echo</li>
|
|
|
300 |
<li><span class="field">access:</span> public</li>
|
|
|
301 |
</ul>
|
|
|
302 |
|
|
|
303 |
<div class="method-signature">
|
|
|
304 |
static <span class="method-result">string</span>
|
|
|
305 |
<span class="method-name">
|
|
|
306 |
printr
|
|
|
307 |
</span>
|
|
|
308 |
(<span class="var-type">mixed</span> <span class="var-name">$variable</span>, [<span class="var-type">string</span> <span class="var-name">$mot_cle</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$echo</span> = <span class="var-default">true</span>])
|
|
|
309 |
</div>
|
|
|
310 |
|
|
|
311 |
<ul class="parameters">
|
|
|
312 |
<li>
|
|
|
313 |
<span class="var-type">mixed</span>
|
|
|
314 |
<span class="var-name">$variable</span><span class="var-description">: la variable à afficher</span> </li>
|
|
|
315 |
<li>
|
|
|
316 |
<span class="var-type">string</span>
|
|
|
317 |
<span class="var-name">$mot_cle</span><span class="var-description">: le mot cle à associer</span> </li>
|
|
|
318 |
<li>
|
|
|
319 |
<span class="var-type">boolean</span>
|
|
|
320 |
<span class="var-name">$echo</span><span class="var-description">: faire un echo ou non</span> </li>
|
|
|
321 |
</ul>
|
|
|
322 |
|
|
|
323 |
|
|
|
324 |
</div>
|
|
|
325 |
|
|
|
326 |
</div>
|
|
|
327 |
</div>
|
|
|
328 |
|
|
|
329 |
|
|
|
330 |
<p class="notes" id="credit">
|
|
|
331 |
Documentation generated on Thu, 04 Mar 2010 19:27:21 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
|
|
|
332 |
</p>
|
|
|
333 |
</div></body>
|
|
|
334 |
</html>
|