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 |
|
465 |
jpm |
7 |
<title>Class Log</title>
|
464 |
jpm |
8 |
|
|
|
9 |
<script type="text/javascript" src="resources/combined.js?4205936287"></script>
|
465 |
jpm |
10 |
<script type="text/javascript" src="elementlist.js?4111837732"></script>
|
464 |
jpm |
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 class="active"><a href="class-Log.html">Log</a></li>
|
|
|
53 |
<li><a href="class-Registre.html">Registre</a></li>
|
|
|
54 |
<li><a href="class-RestClient.html">RestClient</a></li>
|
|
|
55 |
<li><a href="class-RestServeur.html">RestServeur</a></li>
|
|
|
56 |
<li><a href="class-RestService.html">RestService</a></li>
|
|
|
57 |
<li><a href="class-Script.html">Script</a></li>
|
|
|
58 |
<li><a href="class-SquelettePhp.html">SquelettePhp</a></li>
|
|
|
59 |
<li><a href="class-Url.html">Url</a></li>
|
|
|
60 |
</ul>
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
</div>
|
|
|
67 |
</div>
|
|
|
68 |
</div>
|
|
|
69 |
|
|
|
70 |
<div id="splitter"></div>
|
|
|
71 |
|
|
|
72 |
<div id="right">
|
|
|
73 |
<div id="rightInner">
|
|
|
74 |
<form id="search">
|
|
|
75 |
<input type="hidden" name="cx" value="">
|
|
|
76 |
<input type="hidden" name="ie" value="UTF-8">
|
|
|
77 |
<input type="text" name="q" class="text">
|
|
|
78 |
<input type="submit" value="Search">
|
|
|
79 |
</form>
|
|
|
80 |
|
|
|
81 |
<div id="navigation">
|
|
|
82 |
<ul>
|
|
|
83 |
<li>
|
|
|
84 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
85 |
</li>
|
|
|
86 |
<li>
|
|
|
87 |
<a href="package-Framework.html" title="Summary of Framework"><span>Package</span></a>
|
|
|
88 |
</li>
|
|
|
89 |
<li class="active">
|
|
|
90 |
<span>Class</span> </li>
|
|
|
91 |
</ul>
|
|
|
92 |
<ul>
|
|
|
93 |
<li>
|
|
|
94 |
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
|
|
|
95 |
</li>
|
|
|
96 |
<li>
|
|
|
97 |
<a href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a>
|
|
|
98 |
</li>
|
|
|
99 |
<li>
|
|
|
100 |
<a href="todo.html" title="Todo list"><span>Todo</span></a>
|
|
|
101 |
</li>
|
|
|
102 |
</ul>
|
|
|
103 |
<ul>
|
|
|
104 |
</ul>
|
|
|
105 |
</div>
|
|
|
106 |
|
|
|
107 |
<div id="content" class="class">
|
|
|
108 |
<h1>Class Log</h1>
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
<div class="description">
|
|
|
112 |
|
|
|
113 |
<p>Classe permettant de logger des messages dans les fichier situés dans le
|
|
|
114 |
dossier de log.</p>
|
|
|
115 |
|
|
|
116 |
</div>
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
|
|
|
124 |
|
|
|
125 |
|
|
|
126 |
<div class="info">
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
<b>Package:</b> <a href="package-Framework.html">Framework</a><br>
|
|
|
131 |
|
|
|
132 |
<b>Category:</b>
|
|
|
133 |
PHP 5.2<br>
|
|
|
134 |
<b>Copyright:</b>
|
|
|
135 |
Copyright (c) 2009, Tela Botanica (<a
|
|
|
136 |
href="mailto:accueil@tela-botanica.org">accueil@<!-- -->tela-botanica.org</a>)<br>
|
|
|
137 |
<b>License:</b>
|
|
|
138 |
<a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a><br>
|
|
|
139 |
<b>License:</b>
|
|
|
140 |
<a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a><br>
|
|
|
141 |
<b>Author:</b>
|
|
|
142 |
Aurélien PERONNET <<a
|
|
|
143 |
href="mailto:aurelien@tela-botanica.org">aurelien@<!-- -->tela-botanica.org</a>><br>
|
|
|
144 |
<b>Author:</b>
|
|
|
145 |
Jean-Pascal MILCENT <<a
|
|
|
146 |
href="mailto:jpm@tela-botanica.org">jpm@<!-- -->tela-botanica.org</a>><br>
|
|
|
147 |
<b>Version:</b>
|
|
|
148 |
$Id: Log.php 274 2010-12-28 15:37:22Z jpm $<br>
|
|
|
149 |
<b>Link:</b>
|
|
|
150 |
/doc/framework/<br>
|
465 |
jpm |
151 |
<b>Located at</b> <a href="source-class-Log.html#3-148" title="Go to source code">Log.php</a><br>
|
464 |
jpm |
152 |
</div>
|
|
|
153 |
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
<table class="summary" id="methods">
|
|
|
157 |
<caption>Methods summary</caption>
|
|
|
158 |
<tr data-order="initialiser" id="_initialiser">
|
|
|
159 |
|
|
|
160 |
<td class="attributes"><code>
|
|
|
161 |
public static
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
</code>
|
|
|
165 |
</td>
|
|
|
166 |
|
|
|
167 |
<td class="name"><div>
|
|
|
168 |
<a class="anchor" href="#_initialiser">#</a>
|
|
|
169 |
<code><a href="source-class-Log.html#45-55" title="Go to source code">initialiser</a>( )</code>
|
|
|
170 |
|
|
|
171 |
<div class="description short">
|
|
|
172 |
|
|
|
173 |
<p>Initialiser les logs par défaut, sans tenir comptes des paramêtres de
|
|
|
174 |
config.</p>
|
|
|
175 |
|
|
|
176 |
</div>
|
|
|
177 |
|
|
|
178 |
<div class="description detailed hidden">
|
|
|
179 |
|
|
|
180 |
<p>Initialiser les logs par défaut, sans tenir comptes des paramêtres de
|
|
|
181 |
config.</p>
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
</div>
|
|
|
191 |
</div></td>
|
|
|
192 |
</tr>
|
|
|
193 |
<tr data-order="configurer" id="_configurer">
|
|
|
194 |
|
|
|
195 |
<td class="attributes"><code>
|
|
|
196 |
public static
|
|
|
197 |
|
|
|
198 |
|
|
|
199 |
</code>
|
|
|
200 |
</td>
|
|
|
201 |
|
|
|
202 |
<td class="name"><div>
|
|
|
203 |
<a class="anchor" href="#_configurer">#</a>
|
|
|
204 |
<code><a href="source-class-Log.html#57-65" title="Go to source code">configurer</a>( )</code>
|
|
|
205 |
|
|
|
206 |
<div class="description short">
|
|
|
207 |
|
|
|
208 |
<p>Configure le Log à partir des paramêtres de config.</p>
|
|
|
209 |
|
|
|
210 |
</div>
|
|
|
211 |
|
|
|
212 |
<div class="description detailed hidden">
|
|
|
213 |
|
|
|
214 |
<p>Configure le Log à partir des paramêtres de config.</p>
|
|
|
215 |
|
|
|
216 |
|
|
|
217 |
|
|
|
218 |
|
|
|
219 |
|
|
|
220 |
|
|
|
221 |
|
|
|
222 |
|
|
|
223 |
</div>
|
|
|
224 |
</div></td>
|
|
|
225 |
</tr>
|
|
|
226 |
<tr data-order="ajouterEntree" id="_ajouterEntree">
|
|
|
227 |
|
|
|
228 |
<td class="attributes"><code>
|
|
|
229 |
public static
|
|
|
230 |
|
|
|
231 |
|
|
|
232 |
</code>
|
|
|
233 |
</td>
|
|
|
234 |
|
|
|
235 |
<td class="name"><div>
|
|
|
236 |
<a class="anchor" href="#_ajouterEntree">#</a>
|
|
|
237 |
<code><a href="source-class-Log.html#67-82" title="Go to source code">ajouterEntree</a>( <span>string <var>$nomFichier</var></span>, <span>mixed <var>$entree</var></span>, <span>mixed <var>$mode</var> = <span class="php-quote">'a+'</span></span> )</code>
|
|
|
238 |
|
|
|
239 |
<div class="description short">
|
|
|
240 |
|
|
|
241 |
<p>Ajoute une entrée au log spécifié par le paramètre $nomFichier</p>
|
|
|
242 |
|
|
|
243 |
</div>
|
|
|
244 |
|
|
|
245 |
<div class="description detailed hidden">
|
|
|
246 |
|
|
|
247 |
<p>Ajoute une entrée au log spécifié par le paramètre $nomFichier</p>
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
<h4>Parameters</h4>
|
|
|
252 |
<div class="list"><dl>
|
|
|
253 |
<dt><var>$nomFichier</var></dt>
|
|
|
254 |
<dd><code>string</code><br>$nomFichier le nom du fichier dans lequel écrire</dd>
|
|
|
255 |
<dt><var>$entree</var></dt>
|
|
|
256 |
<dd></dd>
|
|
|
257 |
<dt><var>$mode</var></dt>
|
|
|
258 |
<dd></dd>
|
|
|
259 |
</dl></div>
|
|
|
260 |
|
|
|
261 |
|
|
|
262 |
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
</div>
|
|
|
266 |
</div></td>
|
|
|
267 |
</tr>
|
|
|
268 |
<tr data-order="viderLog" id="_viderLog">
|
|
|
269 |
|
|
|
270 |
<td class="attributes"><code>
|
|
|
271 |
public static
|
|
|
272 |
|
|
|
273 |
|
|
|
274 |
</code>
|
|
|
275 |
</td>
|
|
|
276 |
|
|
|
277 |
<td class="name"><div>
|
|
|
278 |
<a class="anchor" href="#_viderLog">#</a>
|
|
|
279 |
<code><a href="source-class-Log.html#84-90" title="Go to source code">viderLog</a>( <span>string <var>$nomFichier</var></span> )</code>
|
|
|
280 |
|
|
|
281 |
<div class="description short">
|
|
|
282 |
|
|
|
283 |
<p>Vide un fichier log indiqué</p>
|
|
|
284 |
|
|
|
285 |
</div>
|
|
|
286 |
|
|
|
287 |
<div class="description detailed hidden">
|
|
|
288 |
|
|
|
289 |
<p>Vide un fichier log indiqué</p>
|
|
|
290 |
|
|
|
291 |
|
|
|
292 |
|
|
|
293 |
<h4>Parameters</h4>
|
|
|
294 |
<div class="list"><dl>
|
|
|
295 |
<dt><var>$nomFichier</var></dt>
|
|
|
296 |
<dd><code>string</code><br>$nomFichier le nom du fichier à vider</dd>
|
|
|
297 |
</dl></div>
|
|
|
298 |
|
|
|
299 |
|
|
|
300 |
|
|
|
301 |
|
|
|
302 |
|
|
|
303 |
</div>
|
|
|
304 |
</div></td>
|
|
|
305 |
</tr>
|
|
|
306 |
<tr data-order="verifierOuvrirFichier" id="_verifierOuvrirFichier">
|
|
|
307 |
|
|
|
308 |
<td class="attributes"><code>
|
|
|
309 |
public static
|
|
|
310 |
boolean
|
|
|
311 |
|
|
|
312 |
</code>
|
|
|
313 |
</td>
|
|
|
314 |
|
|
|
315 |
<td class="name"><div>
|
|
|
316 |
<a class="anchor" href="#_verifierOuvrirFichier">#</a>
|
|
|
317 |
<code><a href="source-class-Log.html#92-112" title="Go to source code">verifierOuvrirFichier</a>( <span>string <var>$nomFichier</var></span>, <span>mixed <var>$mode</var></span> )</code>
|
|
|
318 |
|
|
|
319 |
<div class="description short">
|
|
|
320 |
|
|
|
321 |
<p>Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,
|
|
|
322 |
l'ouvre si nécessaire.</p>
|
|
|
323 |
|
|
|
324 |
</div>
|
|
|
325 |
|
|
|
326 |
<div class="description detailed hidden">
|
|
|
327 |
|
|
|
328 |
<p>Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,
|
|
|
329 |
l'ouvre si nécessaire.</p>
|
|
|
330 |
|
|
|
331 |
|
|
|
332 |
|
|
|
333 |
<h4>Parameters</h4>
|
|
|
334 |
<div class="list"><dl>
|
|
|
335 |
<dt><var>$nomFichier</var></dt>
|
|
|
336 |
<dd><code>string</code><br>$nomFichier le nom du fichier dont on doit vérifier la présence</dd>
|
|
|
337 |
<dt><var>$mode</var></dt>
|
|
|
338 |
<dd></dd>
|
|
|
339 |
</dl></div>
|
|
|
340 |
|
|
|
341 |
<h4>Returns</h4>
|
|
|
342 |
<div class="list">
|
|
|
343 |
<code>boolean</code><br>true si le fichier est ouvert ou maintenant accessible, false sinon<br>
|
|
|
344 |
</div>
|
|
|
345 |
|
|
|
346 |
|
|
|
347 |
|
|
|
348 |
|
|
|
349 |
</div>
|
|
|
350 |
</div></td>
|
|
|
351 |
</tr>
|
|
|
352 |
<tr data-order="__destruct" id="___destruct">
|
|
|
353 |
|
|
|
354 |
<td class="attributes"><code>
|
|
|
355 |
public
|
|
|
356 |
|
|
|
357 |
|
|
|
358 |
</code>
|
|
|
359 |
</td>
|
|
|
360 |
|
|
|
361 |
<td class="name"><div>
|
|
|
362 |
<a class="anchor" href="#___destruct">#</a>
|
|
|
363 |
<code><a href="source-class-Log.html#142-147" title="Go to source code">__destruct</a>( )</code>
|
|
|
364 |
|
|
|
365 |
<div class="description short">
|
|
|
366 |
|
|
|
367 |
<p>Destructeur de classe, ferme les descripteurs ouverts.</p>
|
|
|
368 |
|
|
|
369 |
</div>
|
|
|
370 |
|
|
|
371 |
<div class="description detailed hidden">
|
|
|
372 |
|
|
|
373 |
<p>Destructeur de classe, ferme les descripteurs ouverts.</p>
|
|
|
374 |
|
|
|
375 |
|
|
|
376 |
|
|
|
377 |
|
|
|
378 |
|
|
|
379 |
|
|
|
380 |
|
|
|
381 |
|
|
|
382 |
</div>
|
|
|
383 |
</div></td>
|
|
|
384 |
</tr>
|
|
|
385 |
</table>
|
|
|
386 |
|
|
|
387 |
|
|
|
388 |
|
|
|
389 |
|
|
|
390 |
|
|
|
391 |
|
|
|
392 |
|
|
|
393 |
|
|
|
394 |
|
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
|
399 |
|
|
|
400 |
|
|
|
401 |
|
|
|
402 |
|
|
|
403 |
|
|
|
404 |
</div>
|
|
|
405 |
|
|
|
406 |
<div id="footer">
|
465 |
jpm |
407 |
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
|
464 |
jpm |
408 |
</div>
|
|
|
409 |
</div>
|
|
|
410 |
</div>
|
|
|
411 |
</body>
|
|
|
412 |
</html>
|