Subversion Repositories Applications.framework

Rev

Rev 464 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 464 Rev 465
1
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<html>
2
<html>
3
<head>
3
<head>
4
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
	<meta name="generator" content="ApiGen 2.8.0">
5
	<meta name="generator" content="ApiGen 2.8.0">
6
 
6
 
7
	<title>Class CacheFichier | TBFramework - v0.4</title>
7
	<title>Class CacheFichier</title>
8
 
8
 
9
	<script type="text/javascript" src="resources/combined.js?4205936287"></script>
9
	<script type="text/javascript" src="resources/combined.js?4205936287"></script>
10
	<script type="text/javascript" src="elementlist.js?1964084359"></script>
10
	<script type="text/javascript" src="elementlist.js?4111837732"></script>
11
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360">
11
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360">
12
 
12
 
13
</head>
13
</head>
14
 
14
 
15
<body>
15
<body>
16
<div id="left">
16
<div id="left">
17
	<div id="menu">
17
	<div id="menu">
18
		<a href="index.html" title="Overview"><span>Overview</span></a>
18
		<a href="index.html" title="Overview"><span>Overview</span></a>
19
 
19
 
20
 
20
 
21
		<div id="groups">
21
		<div id="groups">
22
			<h3>Packages</h3>
22
			<h3>Packages</h3>
23
			<ul>
23
			<ul>
24
				<li><a href="package-Framework.html">Framework</a>
24
				<li><a href="package-Framework.html">Framework</a>
25
						</li>
25
						</li>
26
				<li class="active"><a href="package-None.html">None</a>
26
				<li class="active"><a href="package-None.html">None</a>
27
						</li>
27
						</li>
28
				<li><a href="package-PHP.html">PHP</a>
28
				<li><a href="package-PHP.html">PHP</a>
29
						</li>
29
						</li>
30
				<li><a href="package-Utilitaire.html">Utilitaire</a>
30
				<li><a href="package-Utilitaire.html">Utilitaire</a>
31
						</li>
31
						</li>
32
			</ul>
32
			</ul>
33
		</div>
33
		</div>
34
 
34
 
35
		<hr>
35
		<hr>
36
 
36
 
37
 
37
 
38
		<div id="elements">
38
		<div id="elements">
39
			<h3>Classes</h3>
39
			<h3>Classes</h3>
40
			<ul>
40
			<ul>
41
				<li class="active"><a href="class-CacheFichier.html">CacheFichier</a></li>
41
				<li class="active"><a href="class-CacheFichier.html">CacheFichier</a></li>
42
				<li><a href="class-CacheSqlite.html">CacheSqlite</a></li>
42
				<li><a href="class-CacheSqlite.html">CacheSqlite</a></li>
43
				<li><a href="class-MonScript.html">MonScript</a></li>
-
 
44
			</ul>
43
			</ul>
45
 
44
 
46
 
45
 
47
 
46
 
48
 
47
 
49
 
48
 
50
		</div>
49
		</div>
51
	</div>
50
	</div>
52
</div>
51
</div>
53
 
52
 
54
<div id="splitter"></div>
53
<div id="splitter"></div>
55
 
54
 
56
<div id="right">
55
<div id="right">
57
<div id="rightInner">
56
<div id="rightInner">
58
	<form id="search">
57
	<form id="search">
59
		<input type="hidden" name="cx" value="">
58
		<input type="hidden" name="cx" value="">
60
		<input type="hidden" name="ie" value="UTF-8">
59
		<input type="hidden" name="ie" value="UTF-8">
61
		<input type="text" name="q" class="text">
60
		<input type="text" name="q" class="text">
62
		<input type="submit" value="Search">
61
		<input type="submit" value="Search">
63
	</form>
62
	</form>
64
 
63
 
65
	<div id="navigation">
64
	<div id="navigation">
66
		<ul>
65
		<ul>
67
			<li>
66
			<li>
68
				<a href="index.html" title="Overview"><span>Overview</span></a>
67
				<a href="index.html" title="Overview"><span>Overview</span></a>
69
			</li>
68
			</li>
70
			<li>
69
			<li>
71
				<a href="package-None.html" title="Summary of None"><span>Package</span></a>
70
				<a href="package-None.html" title="Summary of None"><span>Package</span></a>
72
			</li>
71
			</li>
73
			<li class="active">
72
			<li class="active">
74
<span>Class</span>			</li>
73
<span>Class</span>			</li>
75
		</ul>
74
		</ul>
76
		<ul>
75
		<ul>
77
			<li>
76
			<li>
78
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
77
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
79
			</li>
78
			</li>
80
			<li>
79
			<li>
81
				<a href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a>
80
				<a href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a>
82
			</li>
81
			</li>
83
			<li>
82
			<li>
84
				<a href="todo.html" title="Todo list"><span>Todo</span></a>
83
				<a href="todo.html" title="Todo list"><span>Todo</span></a>
85
			</li>
84
			</li>
86
		</ul>
85
		</ul>
87
		<ul>
86
		<ul>
88
		</ul>
87
		</ul>
89
	</div>
88
	</div>
90
 
89
 
91
<div id="content" class="class">
90
<div id="content" class="class">
92
	<h1>Class CacheFichier</h1>
91
	<h1>Class CacheFichier</h1>
93
 
92
 
94
 
93
 
95
 
94
 
96
 
95
 
97
 
96
 
98
 
97
 
99
 
98
 
100
 
99
 
101
 
100
 
102
 
101
 
103
 
102
 
104
	<div class="info">
103
	<div class="info">
105
		
104
		
106
		
105
		
107
		
106
		
108
		
107
		
109
 
108
 
110
		<b>Located at</b> <a href="source-class-CacheFichier.html#2-870" title="Go to source code">framework/CacheFichier.php</a><br>
109
		<b>Located at</b> <a href="source-class-CacheFichier.html#2-870" title="Go to source code">CacheFichier.php</a><br>
111
	</div>
110
	</div>
112
 
111
 
113
 
112
 
114
 
113
 
115
	<table class="summary" id="methods">
114
	<table class="summary" id="methods">
116
	<caption>Methods summary</caption>
115
	<caption>Methods summary</caption>
117
	<tr data-order="__construct" id="___construct">
116
	<tr data-order="__construct" id="___construct">
118
 
117
 
119
		<td class="attributes"><code>
118
		<td class="attributes"><code>
120
			 public 
119
			 public 
121
			
120
			
122
			
121
			
123
			</code>
122
			</code>
124
		</td>
123
		</td>
125
 
124
 
126
		<td class="name"><div>
125
		<td class="name"><div>
127
		<a class="anchor" href="#___construct">#</a>
126
		<a class="anchor" href="#___construct">#</a>
128
		<code><a href="source-class-CacheFichier.html#73-101" title="Go to source code">__construct</a>( <span>array <var>$options</var> = <span class="php-keyword1">array</span>()</span>, <span><code><a href="class-Cache.html">Cache</a></code> <var>$cache</var></span> )</code>
127
		<code><a href="source-class-CacheFichier.html#73-101" title="Go to source code">__construct</a>( <span>array <var>$options</var> = <span class="php-keyword1">array</span>()</span>, <span><code><a href="class-Cache.html">Cache</a></code> <var>$cache</var></span> )</code>
129
 
128
 
130
		<div class="description short">
129
		<div class="description short">
131
			
130
			
132
<p>Constructor</p>
131
<p>Constructor</p>
133
 
132
 
134
		</div>
133
		</div>
135
 
134
 
136
		<div class="description detailed hidden">
135
		<div class="description detailed hidden">
137
			
136
			
138
<p>Constructor</p>
137
<p>Constructor</p>
139
 
138
 
140
 
139
 
141
 
140
 
142
				<h4>Parameters</h4>
141
				<h4>Parameters</h4>
143
				<div class="list"><dl>
142
				<div class="list"><dl>
144
					<dt><var>$options</var></dt>
143
					<dt><var>$options</var></dt>
145
					<dd><code>array</code><br>$options associative array of options</dd>
144
					<dd><code>array</code><br>$options associative array of options</dd>
146
					<dt><var>$cache</var></dt>
145
					<dt><var>$cache</var></dt>
147
					<dd></dd>
146
					<dd></dd>
148
				</dl></div>
147
				</dl></div>
149
 
148
 
150
 
149
 
151
				<h4>Throws</h4>
150
				<h4>Throws</h4>
152
				<div class="list">
151
				<div class="list">
153
					<code>Zend_Cache_Exception</code><br>
152
					<code>Zend_Cache_Exception</code><br>
154
				</div>
153
				</div>
155
 
154
 
156
 
155
 
157
 
156
 
158
		</div>
157
		</div>
159
		</div></td>
158
		</div></td>
160
	</tr>
159
	</tr>
161
	<tr data-order="setEmplacement" id="_setEmplacement">
160
	<tr data-order="setEmplacement" id="_setEmplacement">
162
 
161
 
163
		<td class="attributes"><code>
162
		<td class="attributes"><code>
164
			 public 
163
			 public 
165
			
164
			
166
			
165
			
167
			</code>
166
			</code>
168
		</td>
167
		</td>
169
 
168
 
170
		<td class="name"><div>
169
		<td class="name"><div>
171
		<a class="anchor" href="#_setEmplacement">#</a>
170
		<a class="anchor" href="#_setEmplacement">#</a>
172
		<code><a href="source-class-CacheFichier.html#123-132" title="Go to source code">setEmplacement</a>( <span>mixed <var>$emplacement</var></span> )</code>
171
		<code><a href="source-class-CacheFichier.html#123-132" title="Go to source code">setEmplacement</a>( <span>mixed <var>$emplacement</var></span> )</code>
173
 
172
 
174
		<div class="description short">
173
		<div class="description short">
175
			
174
			
176
		</div>
175
		</div>
177
 
176
 
178
		<div class="description detailed hidden">
177
		<div class="description detailed hidden">
179
			
178
			
180
 
179
 
181
 
180
 
182
 
181
 
183
 
182
 
184
 
183
 
185
 
184
 
186
 
185
 
187
		</div>
186
		</div>
188
		</div></td>
187
		</div></td>
189
	</tr>
188
	</tr>
190
	<tr data-order="charger" id="_charger">
189
	<tr data-order="charger" id="_charger">
191
 
190
 
192
		<td class="attributes"><code>
191
		<td class="attributes"><code>
193
			 public 
192
			 public 
194
			string|false
193
			string|false
195
			
194
			
196
			</code>
195
			</code>
197
		</td>
196
		</td>
198
 
197
 
199
		<td class="name"><div>
198
		<td class="name"><div>
200
		<a class="anchor" href="#_charger">#</a>
199
		<a class="anchor" href="#_charger">#</a>
201
		<code><a href="source-class-CacheFichier.html#134-159" title="Go to source code">charger</a>( <span>string <var>$id</var></span>, <span>boolean <var>$ne_pas_tester_validiter_du_cache</var> = <span class="php-keyword1">false</span></span> )</code>
200
		<code><a href="source-class-CacheFichier.html#134-159" title="Go to source code">charger</a>( <span>string <var>$id</var></span>, <span>boolean <var>$ne_pas_tester_validiter_du_cache</var> = <span class="php-keyword1">false</span></span> )</code>
202
 
201
 
203
		<div class="description short">
202
		<div class="description short">
204
			
203
			
205
<p>Test if a cache is available for the given id and (if yes) return it (false
204
<p>Test if a cache is available for the given id and (if yes) return it (false
206
else)</p>
205
else)</p>
207
 
206
 
208
		</div>
207
		</div>
209
 
208
 
210
		<div class="description detailed hidden">
209
		<div class="description detailed hidden">
211
			
210
			
212
<p>Test if a cache is available for the given id and (if yes) return it (false
211
<p>Test if a cache is available for the given id and (if yes) return it (false
213
else)</p>
212
else)</p>
214
 
213
 
215
 
214
 
216
 
215
 
217
				<h4>Parameters</h4>
216
				<h4>Parameters</h4>
218
				<div class="list"><dl>
217
				<div class="list"><dl>
219
					<dt><var>$id</var></dt>
218
					<dt><var>$id</var></dt>
220
					<dd><code>string</code><br>$id cache id</dd>
219
					<dd><code>string</code><br>$id cache id</dd>
221
					<dt><var>$ne_pas_tester_validiter_du_cache</var></dt>
220
					<dt><var>$ne_pas_tester_validiter_du_cache</var></dt>
222
					<dd><code>boolean</code><br>$doNotTestCacheValidity if set to true, the cache validity won't be tested</dd>
221
					<dd><code>boolean</code><br>$doNotTestCacheValidity if set to true, the cache validity won't be tested</dd>
223
				</dl></div>
222
				</dl></div>
224
 
223
 
225
				<h4>Returns</h4>
224
				<h4>Returns</h4>
226
				<div class="list">
225
				<div class="list">
227
					<code>string|false</code><br>cached datas<br>
226
					<code>string|false</code><br>cached datas<br>
228
				</div>
227
				</div>
229
 
228
 
230
 
229
 
231
 
230
 
232
 
231
 
233
		</div>
232
		</div>
234
		</div></td>
233
		</div></td>
235
	</tr>
234
	</tr>
236
	<tr data-order="tester" id="_tester">
235
	<tr data-order="tester" id="_tester">
237
 
236
 
238
		<td class="attributes"><code>
237
		<td class="attributes"><code>
239
			 public 
238
			 public 
240
			mixed
239
			mixed
241
			
240
			
242
			</code>
241
			</code>
243
		</td>
242
		</td>
244
 
243
 
245
		<td class="name"><div>
244
		<td class="name"><div>
246
		<a class="anchor" href="#_tester">#</a>
245
		<a class="anchor" href="#_tester">#</a>
247
		<code><a href="source-class-CacheFichier.html#161-170" title="Go to source code">tester</a>( <span>string <var>$id</var></span> )</code>
246
		<code><a href="source-class-CacheFichier.html#161-170" title="Go to source code">tester</a>( <span>string <var>$id</var></span> )</code>
248
 
247
 
249
		<div class="description short">
248
		<div class="description short">
250
			
249
			
251
<p>Teste si un enregistrement en cache est disponible ou pas (pour l'id passé
250
<p>Teste si un enregistrement en cache est disponible ou pas (pour l'id passé
252
en paramètre).</p>
251
en paramètre).</p>
253
 
252
 
254
		</div>
253
		</div>
255
 
254
 
256
		<div class="description detailed hidden">
255
		<div class="description detailed hidden">
257
			
256
			
258
<p>Teste si un enregistrement en cache est disponible ou pas (pour l'id passé
257
<p>Teste si un enregistrement en cache est disponible ou pas (pour l'id passé
259
en paramètre).</p>
258
en paramètre).</p>
260
 
259
 
261
 
260
 
262
 
261
 
263
				<h4>Parameters</h4>
262
				<h4>Parameters</h4>
264
				<div class="list"><dl>
263
				<div class="list"><dl>
265
					<dt><var>$id</var></dt>
264
					<dt><var>$id</var></dt>
266
					<dd><code>string</code><br>$id identifiant de cache.</dd>
265
					<dd><code>string</code><br>$id identifiant de cache.</dd>
267
				</dl></div>
266
				</dl></div>
268
 
267
 
269
				<h4>Returns</h4>
268
				<h4>Returns</h4>
270
				<div class="list">
269
				<div class="list">
271
					<code>mixed</code><br>false (le cache n'est pas disponible) ou timestamp (int) "de dernière
270
					<code>mixed</code><br>false (le cache n'est pas disponible) ou timestamp (int) "de dernière
272
modification" de l'enregistrement en cache<br>
271
modification" de l'enregistrement en cache<br>
273
				</div>
272
				</div>
274
 
273
 
275
 
274
 
276
 
275
 
277
 
276
 
278
		</div>
277
		</div>
279
		</div></td>
278
		</div></td>
280
	</tr>
279
	</tr>
281
	<tr data-order="sauver" id="_sauver">
280
	<tr data-order="sauver" id="_sauver">
282
 
281
 
283
		<td class="attributes"><code>
282
		<td class="attributes"><code>
284
			 public 
283
			 public 
285
			boolean
284
			boolean
286
			
285
			
287
			</code>
286
			</code>
288
		</td>
287
		</td>
289
 
288
 
290
		<td class="name"><div>
289
		<td class="name"><div>
291
		<a class="anchor" href="#_sauver">#</a>
290
		<a class="anchor" href="#_sauver">#</a>
292
		<code><a href="source-class-CacheFichier.html#172-221" title="Go to source code">sauver</a>( <span>string <var>$donnees</var></span>, <span>string <var>$id</var></span>, <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span>, <span>integer <var>$duree_vie_specifique</var> = <span class="php-keyword1">false</span></span> )</code>
291
		<code><a href="source-class-CacheFichier.html#172-221" title="Go to source code">sauver</a>( <span>string <var>$donnees</var></span>, <span>string <var>$id</var></span>, <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span>, <span>integer <var>$duree_vie_specifique</var> = <span class="php-keyword1">false</span></span> )</code>
293
 
292
 
294
		<div class="description short">
293
		<div class="description short">
295
			
294
			
296
<p>Save some string datas into a cache record</p>
295
<p>Save some string datas into a cache record</p>
297
 
296
 
298
		</div>
297
		</div>
299
 
298
 
300
		<div class="description detailed hidden">
299
		<div class="description detailed hidden">
301
			
300
			
302
<p>Save some string datas into a cache record</p>
301
<p>Save some string datas into a cache record</p>
303
 
302
 
304
<p>Note : $data is always "string" (serialization is done by the core not by the
303
<p>Note : $data is always "string" (serialization is done by the core not by the
305
backend)</p>
304
backend)</p>
306
 
305
 
307
 
306
 
308
 
307
 
309
				<h4>Parameters</h4>
308
				<h4>Parameters</h4>
310
				<div class="list"><dl>
309
				<div class="list"><dl>
311
					<dt><var>$donnees</var></dt>
310
					<dt><var>$donnees</var></dt>
312
					<dd><code>string</code><br>$data Datas to cache</dd>
311
					<dd><code>string</code><br>$data Datas to cache</dd>
313
					<dt><var>$id</var></dt>
312
					<dt><var>$id</var></dt>
314
					<dd><code>string</code><br>$id Cache id</dd>
313
					<dd><code>string</code><br>$id Cache id</dd>
315
					<dt><var>$tags</var></dt>
314
					<dt><var>$tags</var></dt>
316
					<dd><code>array</code><br>$tags Array of strings, the cache record will be tagged by each string entry</dd>
315
					<dd><code>array</code><br>$tags Array of strings, the cache record will be tagged by each string entry</dd>
317
					<dt><var>$duree_vie_specifique</var></dt>
316
					<dt><var>$duree_vie_specifique</var></dt>
318
					<dd><code>integer</code><br>$specificLifetime If != false, set a specific lifetime for this cache record
317
					<dd><code>integer</code><br>$specificLifetime If != false, set a specific lifetime for this cache record
319
(null =&gt; infinite lifetime)</dd>
318
(null =&gt; infinite lifetime)</dd>
320
				</dl></div>
319
				</dl></div>
321
 
320
 
322
				<h4>Returns</h4>
321
				<h4>Returns</h4>
323
				<div class="list">
322
				<div class="list">
324
					<code>boolean</code><br>true if no problem<br>
323
					<code>boolean</code><br>true if no problem<br>
325
				</div>
324
				</div>
326
 
325
 
327
 
326
 
328
 
327
 
329
 
328
 
330
		</div>
329
		</div>
331
		</div></td>
330
		</div></td>
332
	</tr>
331
	</tr>
333
	<tr data-order="supprimer" id="_supprimer">
332
	<tr data-order="supprimer" id="_supprimer">
334
 
333
 
335
		<td class="attributes"><code>
334
		<td class="attributes"><code>
336
			 public 
335
			 public 
337
			boolean
336
			boolean
338
			
337
			
339
			</code>
338
			</code>
340
		</td>
339
		</td>
341
 
340
 
342
		<td class="name"><div>
341
		<td class="name"><div>
343
		<a class="anchor" href="#_supprimer">#</a>
342
		<a class="anchor" href="#_supprimer">#</a>
344
		<code><a href="source-class-CacheFichier.html#223-234" title="Go to source code">supprimer</a>( <span>string <var>$id</var></span> )</code>
343
		<code><a href="source-class-CacheFichier.html#223-234" title="Go to source code">supprimer</a>( <span>string <var>$id</var></span> )</code>
345
 
344
 
346
		<div class="description short">
345
		<div class="description short">
347
			
346
			
348
<p>Remove a cache record</p>
347
<p>Remove a cache record</p>
349
 
348
 
350
		</div>
349
		</div>
351
 
350
 
352
		<div class="description detailed hidden">
351
		<div class="description detailed hidden">
353
			
352
			
354
<p>Remove a cache record</p>
353
<p>Remove a cache record</p>
355
 
354
 
356
 
355
 
357
 
356
 
358
				<h4>Parameters</h4>
357
				<h4>Parameters</h4>
359
				<div class="list"><dl>
358
				<div class="list"><dl>
360
					<dt><var>$id</var></dt>
359
					<dt><var>$id</var></dt>
361
					<dd><code>string</code><br>$id cache id</dd>
360
					<dd><code>string</code><br>$id cache id</dd>
362
				</dl></div>
361
				</dl></div>
363
 
362
 
364
				<h4>Returns</h4>
363
				<h4>Returns</h4>
365
				<div class="list">
364
				<div class="list">
366
					<code>boolean</code><br>true if no problem<br>
365
					<code>boolean</code><br>true if no problem<br>
367
				</div>
366
				</div>
368
 
367
 
369
 
368
 
370
 
369
 
371
 
370
 
372
		</div>
371
		</div>
373
		</div></td>
372
		</div></td>
374
	</tr>
373
	</tr>
375
	<tr data-order="nettoyer" id="_nettoyer">
374
	<tr data-order="nettoyer" id="_nettoyer">
376
 
375
 
377
		<td class="attributes"><code>
376
		<td class="attributes"><code>
378
			 public 
377
			 public 
379
			boolean
378
			boolean
380
			
379
			
381
			</code>
380
			</code>
382
		</td>
381
		</td>
383
 
382
 
384
		<td class="name"><div>
383
		<td class="name"><div>
385
		<a class="anchor" href="#_nettoyer">#</a>
384
		<a class="anchor" href="#_nettoyer">#</a>
386
		<code><a href="source-class-CacheFichier.html#236-257" title="Go to source code">nettoyer</a>( <span>string <var>$mode</var> = <code><a href="class-Cache.html#NETTOYAGE_MODE_TOUS">Cache::<b>NETTOYAGE_MODE_TOUS</b></a></code></span>, <span>tags <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
385
		<code><a href="source-class-CacheFichier.html#236-257" title="Go to source code">nettoyer</a>( <span>string <var>$mode</var> = <code><a href="class-Cache.html#NETTOYAGE_MODE_TOUS">Cache::<b>NETTOYAGE_MODE_TOUS</b></a></code></span>, <span>tags <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
387
 
386
 
388
		<div class="description short">
387
		<div class="description short">
389
			
388
			
390
<p>Clean some cache records</p>
389
<p>Clean some cache records</p>
391
 
390
 
392
		</div>
391
		</div>
393
 
392
 
394
		<div class="description detailed hidden">
393
		<div class="description detailed hidden">
395
			
394
			
396
<p>Clean some cache records</p>
395
<p>Clean some cache records</p>
397
 
396
 
398
<p>Available modes are : 'all' (default) =&gt; remove all cache entries ($tags
397
<p>Available modes are : 'all' (default) =&gt; remove all cache entries ($tags
399
is not used) 'old' =&gt; remove too old cache entries ($tags is not used)
398
is not used) 'old' =&gt; remove too old cache entries ($tags is not used)
400
'matchingTag' =&gt; remove cache entries matching all given tags ($tags can be
399
'matchingTag' =&gt; remove cache entries matching all given tags ($tags can be
401
an array of strings or a single string) 'notMatchingTag' =&gt; remove cache
400
an array of strings or a single string) 'notMatchingTag' =&gt; remove cache
402
entries not matching one of the given tags ($tags can be an array of strings or
401
entries not matching one of the given tags ($tags can be an array of strings or
403
a single string) 'matchingAnyTag' =&gt; remove cache entries matching any given
402
a single string) 'matchingAnyTag' =&gt; remove cache entries matching any given
404
tags ($tags can be an array of strings or a single string)</p>
403
tags ($tags can be an array of strings or a single string)</p>
405
 
404
 
406
 
405
 
407
 
406
 
408
				<h4>Parameters</h4>
407
				<h4>Parameters</h4>
409
				<div class="list"><dl>
408
				<div class="list"><dl>
410
					<dt><var>$mode</var></dt>
409
					<dt><var>$mode</var></dt>
411
					<dd><code>string</code><br>$mode clean mode</dd>
410
					<dd><code>string</code><br>$mode clean mode</dd>
412
					<dt><var>$tags</var></dt>
411
					<dt><var>$tags</var></dt>
413
					<dd><code>tags</code><br>array $tags array of tags</dd>
412
					<dd><code>tags</code><br>array $tags array of tags</dd>
414
				</dl></div>
413
				</dl></div>
415
 
414
 
416
				<h4>Returns</h4>
415
				<h4>Returns</h4>
417
				<div class="list">
416
				<div class="list">
418
					<code>boolean</code><br>true if no problem<br>
417
					<code>boolean</code><br>true if no problem<br>
419
				</div>
418
				</div>
420
 
419
 
421
 
420
 
422
 
421
 
423
 
422
 
424
		</div>
423
		</div>
425
		</div></td>
424
		</div></td>
426
	</tr>
425
	</tr>
427
	<tr data-order="getIds" id="_getIds">
426
	<tr data-order="getIds" id="_getIds">
428
 
427
 
429
		<td class="attributes"><code>
428
		<td class="attributes"><code>
430
			 public 
429
			 public 
431
			array
430
			array
432
			
431
			
433
			</code>
432
			</code>
434
		</td>
433
		</td>
435
 
434
 
436
		<td class="name"><div>
435
		<td class="name"><div>
437
		<a class="anchor" href="#_getIds">#</a>
436
		<a class="anchor" href="#_getIds">#</a>
438
		<code><a href="source-class-CacheFichier.html#259-266" title="Go to source code">getIds</a>( )</code>
437
		<code><a href="source-class-CacheFichier.html#259-266" title="Go to source code">getIds</a>( )</code>
439
 
438
 
440
		<div class="description short">
439
		<div class="description short">
441
			
440
			
442
<p>Return an array of stored cache ids</p>
441
<p>Return an array of stored cache ids</p>
443
 
442
 
444
		</div>
443
		</div>
445
 
444
 
446
		<div class="description detailed hidden">
445
		<div class="description detailed hidden">
447
			
446
			
448
<p>Return an array of stored cache ids</p>
447
<p>Return an array of stored cache ids</p>
449
 
448
 
450
 
449
 
451
 
450
 
452
 
451
 
453
				<h4>Returns</h4>
452
				<h4>Returns</h4>
454
				<div class="list">
453
				<div class="list">
455
					<code>array</code><br>array of stored cache ids (string)<br>
454
					<code>array</code><br>array of stored cache ids (string)<br>
456
				</div>
455
				</div>
457
 
456
 
458
 
457
 
459
 
458
 
460
 
459
 
461
		</div>
460
		</div>
462
		</div></td>
461
		</div></td>
463
	</tr>
462
	</tr>
464
	<tr data-order="getTags" id="_getTags">
463
	<tr data-order="getTags" id="_getTags">
465
 
464
 
466
		<td class="attributes"><code>
465
		<td class="attributes"><code>
467
			 public 
466
			 public 
468
			array
467
			array
469
			
468
			
470
			</code>
469
			</code>
471
		</td>
470
		</td>
472
 
471
 
473
		<td class="name"><div>
472
		<td class="name"><div>
474
		<a class="anchor" href="#_getTags">#</a>
473
		<a class="anchor" href="#_getTags">#</a>
475
		<code><a href="source-class-CacheFichier.html#268-275" title="Go to source code">getTags</a>( )</code>
474
		<code><a href="source-class-CacheFichier.html#268-275" title="Go to source code">getTags</a>( )</code>
476
 
475
 
477
		<div class="description short">
476
		<div class="description short">
478
			
477
			
479
<p>Return an array of stored tags</p>
478
<p>Return an array of stored tags</p>
480
 
479
 
481
		</div>
480
		</div>
482
 
481
 
483
		<div class="description detailed hidden">
482
		<div class="description detailed hidden">
484
			
483
			
485
<p>Return an array of stored tags</p>
484
<p>Return an array of stored tags</p>
486
 
485
 
487
 
486
 
488
 
487
 
489
 
488
 
490
				<h4>Returns</h4>
489
				<h4>Returns</h4>
491
				<div class="list">
490
				<div class="list">
492
					<code>array</code><br>array of stored tags (string)<br>
491
					<code>array</code><br>array of stored tags (string)<br>
493
				</div>
492
				</div>
494
 
493
 
495
 
494
 
496
 
495
 
497
 
496
 
498
		</div>
497
		</div>
499
		</div></td>
498
		</div></td>
500
	</tr>
499
	</tr>
501
	<tr data-order="getIdsAvecLesTags" id="_getIdsAvecLesTags">
500
	<tr data-order="getIdsAvecLesTags" id="_getIdsAvecLesTags">
502
 
501
 
503
		<td class="attributes"><code>
502
		<td class="attributes"><code>
504
			 public 
503
			 public 
505
			array
504
			array
506
			
505
			
507
			</code>
506
			</code>
508
		</td>
507
		</td>
509
 
508
 
510
		<td class="name"><div>
509
		<td class="name"><div>
511
		<a class="anchor" href="#_getIdsAvecLesTags">#</a>
510
		<a class="anchor" href="#_getIdsAvecLesTags">#</a>
512
		<code><a href="source-class-CacheFichier.html#277-287" title="Go to source code">getIdsAvecLesTags</a>( <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
511
		<code><a href="source-class-CacheFichier.html#277-287" title="Go to source code">getIdsAvecLesTags</a>( <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
513
 
512
 
514
		<div class="description short">
513
		<div class="description short">
515
			
514
			
516
<p>Return an array of stored cache ids which match given tags</p>
515
<p>Return an array of stored cache ids which match given tags</p>
517
 
516
 
518
		</div>
517
		</div>
519
 
518
 
520
		<div class="description detailed hidden">
519
		<div class="description detailed hidden">
521
			
520
			
522
<p>Return an array of stored cache ids which match given tags</p>
521
<p>Return an array of stored cache ids which match given tags</p>
523
 
522
 
524
<p>In case of multiple tags, a logical AND is made between tags</p>
523
<p>In case of multiple tags, a logical AND is made between tags</p>
525
 
524
 
526
 
525
 
527
 
526
 
528
				<h4>Parameters</h4>
527
				<h4>Parameters</h4>
529
				<div class="list"><dl>
528
				<div class="list"><dl>
530
					<dt><var>$tags</var></dt>
529
					<dt><var>$tags</var></dt>
531
					<dd><code>array</code><br>$tags array of tags</dd>
530
					<dd><code>array</code><br>$tags array of tags</dd>
532
				</dl></div>
531
				</dl></div>
533
 
532
 
534
				<h4>Returns</h4>
533
				<h4>Returns</h4>
535
				<div class="list">
534
				<div class="list">
536
					<code>array</code><br>array of matching cache ids (string)<br>
535
					<code>array</code><br>array of matching cache ids (string)<br>
537
				</div>
536
				</div>
538
 
537
 
539
 
538
 
540
 
539
 
541
 
540
 
542
		</div>
541
		</div>
543
		</div></td>
542
		</div></td>
544
	</tr>
543
	</tr>
545
	<tr data-order="getIdsSansLesTags" id="_getIdsSansLesTags">
544
	<tr data-order="getIdsSansLesTags" id="_getIdsSansLesTags">
546
 
545
 
547
		<td class="attributes"><code>
546
		<td class="attributes"><code>
548
			 public 
547
			 public 
549
			array
548
			array
550
			
549
			
551
			</code>
550
			</code>
552
		</td>
551
		</td>
553
 
552
 
554
		<td class="name"><div>
553
		<td class="name"><div>
555
		<a class="anchor" href="#_getIdsSansLesTags">#</a>
554
		<a class="anchor" href="#_getIdsSansLesTags">#</a>
556
		<code><a href="source-class-CacheFichier.html#289-299" title="Go to source code">getIdsSansLesTags</a>( <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
555
		<code><a href="source-class-CacheFichier.html#289-299" title="Go to source code">getIdsSansLesTags</a>( <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
557
 
556
 
558
		<div class="description short">
557
		<div class="description short">
559
			
558
			
560
<p>Return an array of stored cache ids which don't match given tags</p>
559
<p>Return an array of stored cache ids which don't match given tags</p>
561
 
560
 
562
		</div>
561
		</div>
563
 
562
 
564
		<div class="description detailed hidden">
563
		<div class="description detailed hidden">
565
			
564
			
566
<p>Return an array of stored cache ids which don't match given tags</p>
565
<p>Return an array of stored cache ids which don't match given tags</p>
567
 
566
 
568
<p>In case of multiple tags, a logical OR is made between tags</p>
567
<p>In case of multiple tags, a logical OR is made between tags</p>
569
 
568
 
570
 
569
 
571
 
570
 
572
				<h4>Parameters</h4>
571
				<h4>Parameters</h4>
573
				<div class="list"><dl>
572
				<div class="list"><dl>
574
					<dt><var>$tags</var></dt>
573
					<dt><var>$tags</var></dt>
575
					<dd><code>array</code><br>$tags array of tags</dd>
574
					<dd><code>array</code><br>$tags array of tags</dd>
576
				</dl></div>
575
				</dl></div>
577
 
576
 
578
				<h4>Returns</h4>
577
				<h4>Returns</h4>
579
				<div class="list">
578
				<div class="list">
580
					<code>array</code><br>array of not matching cache ids (string)<br>
579
					<code>array</code><br>array of not matching cache ids (string)<br>
581
				</div>
580
				</div>
582
 
581
 
583
 
582
 
584
 
583
 
585
 
584
 
586
		</div>
585
		</div>
587
		</div></td>
586
		</div></td>
588
	</tr>
587
	</tr>
589
	<tr data-order="getIdsAvecUnTag" id="_getIdsAvecUnTag">
588
	<tr data-order="getIdsAvecUnTag" id="_getIdsAvecUnTag">
590
 
589
 
591
		<td class="attributes"><code>
590
		<td class="attributes"><code>
592
			 public 
591
			 public 
593
			array
592
			array
594
			
593
			
595
			</code>
594
			</code>
596
		</td>
595
		</td>
597
 
596
 
598
		<td class="name"><div>
597
		<td class="name"><div>
599
		<a class="anchor" href="#_getIdsAvecUnTag">#</a>
598
		<a class="anchor" href="#_getIdsAvecUnTag">#</a>
600
		<code><a href="source-class-CacheFichier.html#301-311" title="Go to source code">getIdsAvecUnTag</a>( <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
599
		<code><a href="source-class-CacheFichier.html#301-311" title="Go to source code">getIdsAvecUnTag</a>( <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
601
 
600
 
602
		<div class="description short">
601
		<div class="description short">
603
			
602
			
604
<p>Return an array of stored cache ids which match any given tags</p>
603
<p>Return an array of stored cache ids which match any given tags</p>
605
 
604
 
606
		</div>
605
		</div>
607
 
606
 
608
		<div class="description detailed hidden">
607
		<div class="description detailed hidden">
609
			
608
			
610
<p>Return an array of stored cache ids which match any given tags</p>
609
<p>Return an array of stored cache ids which match any given tags</p>
611
 
610
 
612
<p>In case of multiple tags, a logical AND is made between tags</p>
611
<p>In case of multiple tags, a logical AND is made between tags</p>
613
 
612
 
614
 
613
 
615
 
614
 
616
				<h4>Parameters</h4>
615
				<h4>Parameters</h4>
617
				<div class="list"><dl>
616
				<div class="list"><dl>
618
					<dt><var>$tags</var></dt>
617
					<dt><var>$tags</var></dt>
619
					<dd><code>array</code><br>$tags array of tags</dd>
618
					<dd><code>array</code><br>$tags array of tags</dd>
620
				</dl></div>
619
				</dl></div>
621
 
620
 
622
				<h4>Returns</h4>
621
				<h4>Returns</h4>
623
				<div class="list">
622
				<div class="list">
624
					<code>array</code><br>array of any matching cache ids (string)<br>
623
					<code>array</code><br>array of any matching cache ids (string)<br>
625
				</div>
624
				</div>
626
 
625
 
627
 
626
 
628
 
627
 
629
 
628
 
630
		</div>
629
		</div>
631
		</div></td>
630
		</div></td>
632
	</tr>
631
	</tr>
633
	<tr data-order="getPourcentageRemplissage" id="_getPourcentageRemplissage">
632
	<tr data-order="getPourcentageRemplissage" id="_getPourcentageRemplissage">
634
 
633
 
635
		<td class="attributes"><code>
634
		<td class="attributes"><code>
636
			 public 
635
			 public 
637
			integer
636
			integer
638
			
637
			
639
			</code>
638
			</code>
640
		</td>
639
		</td>
641
 
640
 
642
		<td class="name"><div>
641
		<td class="name"><div>
643
		<a class="anchor" href="#_getPourcentageRemplissage">#</a>
642
		<a class="anchor" href="#_getPourcentageRemplissage">#</a>
644
		<code><a href="source-class-CacheFichier.html#313-330" title="Go to source code">getPourcentageRemplissage</a>( )</code>
643
		<code><a href="source-class-CacheFichier.html#313-330" title="Go to source code">getPourcentageRemplissage</a>( )</code>
645
 
644
 
646
		<div class="description short">
645
		<div class="description short">
647
			
646
			
648
<p>Return the filling percentage of the backend storage</p>
647
<p>Return the filling percentage of the backend storage</p>
649
 
648
 
650
		</div>
649
		</div>
651
 
650
 
652
		<div class="description detailed hidden">
651
		<div class="description detailed hidden">
653
			
652
			
654
<p>Return the filling percentage of the backend storage</p>
653
<p>Return the filling percentage of the backend storage</p>
655
 
654
 
656
 
655
 
657
 
656
 
658
 
657
 
659
				<h4>Returns</h4>
658
				<h4>Returns</h4>
660
				<div class="list">
659
				<div class="list">
661
					<code>integer</code><br>integer between 0 and 100<br>
660
					<code>integer</code><br>integer between 0 and 100<br>
662
				</div>
661
				</div>
663
 
662
 
664
				<h4>Throws</h4>
663
				<h4>Throws</h4>
665
				<div class="list">
664
				<div class="list">
666
					<code>Zend_Cache_Exception</code><br>
665
					<code>Zend_Cache_Exception</code><br>
667
				</div>
666
				</div>
668
 
667
 
669
 
668
 
670
 
669
 
671
		</div>
670
		</div>
672
		</div></td>
671
		</div></td>
673
	</tr>
672
	</tr>
674
	<tr data-order="getMetadonnees" id="_getMetadonnees">
673
	<tr data-order="getMetadonnees" id="_getMetadonnees">
675
 
674
 
676
		<td class="attributes"><code>
675
		<td class="attributes"><code>
677
			 public 
676
			 public 
678
			array
677
			array
679
			
678
			
680
			</code>
679
			</code>
681
		</td>
680
		</td>
682
 
681
 
683
		<td class="name"><div>
682
		<td class="name"><div>
684
		<a class="anchor" href="#_getMetadonnees">#</a>
683
		<a class="anchor" href="#_getMetadonnees">#</a>
685
		<code><a href="source-class-CacheFichier.html#332-357" title="Go to source code">getMetadonnees</a>( <span>string <var>$id</var></span> )</code>
684
		<code><a href="source-class-CacheFichier.html#332-357" title="Go to source code">getMetadonnees</a>( <span>string <var>$id</var></span> )</code>
686
 
685
 
687
		<div class="description short">
686
		<div class="description short">
688
			
687
			
689
<p>Return an array of metadatas for the given cache id</p>
688
<p>Return an array of metadatas for the given cache id</p>
690
 
689
 
691
		</div>
690
		</div>
692
 
691
 
693
		<div class="description detailed hidden">
692
		<div class="description detailed hidden">
694
			
693
			
695
<p>Return an array of metadatas for the given cache id</p>
694
<p>Return an array of metadatas for the given cache id</p>
696
 
695
 
697
<p>The array must include these keys :</p>
696
<p>The array must include these keys :</p>
698
 
697
 
699
<ul>
698
<ul>
700
	<li>expire : the expire timestamp</li>
699
	<li>expire : the expire timestamp</li>
701
 
700
 
702
	<li>tags : a string array of tags</li>
701
	<li>tags : a string array of tags</li>
703
 
702
 
704
	<li>mtime : timestamp of last modification time</li>
703
	<li>mtime : timestamp of last modification time</li>
705
</ul>
704
</ul>
706
 
705
 
707
 
706
 
708
 
707
 
709
				<h4>Parameters</h4>
708
				<h4>Parameters</h4>
710
				<div class="list"><dl>
709
				<div class="list"><dl>
711
					<dt><var>$id</var></dt>
710
					<dt><var>$id</var></dt>
712
					<dd><code>string</code><br>$id cache id</dd>
711
					<dd><code>string</code><br>$id cache id</dd>
713
				</dl></div>
712
				</dl></div>
714
 
713
 
715
				<h4>Returns</h4>
714
				<h4>Returns</h4>
716
				<div class="list">
715
				<div class="list">
717
					<code>array</code><br>array of metadatas (false if the cache id is not found)<br>
716
					<code>array</code><br>array of metadatas (false if the cache id is not found)<br>
718
				</div>
717
				</div>
719
 
718
 
720
 
719
 
721
 
720
 
722
 
721
 
723
		</div>
722
		</div>
724
		</div></td>
723
		</div></td>
725
	</tr>
724
	</tr>
726
	<tr data-order="ajouterSupplementDureeDeVie" id="_ajouterSupplementDureeDeVie">
725
	<tr data-order="ajouterSupplementDureeDeVie" id="_ajouterSupplementDureeDeVie">
727
 
726
 
728
		<td class="attributes"><code>
727
		<td class="attributes"><code>
729
			 public 
728
			 public 
730
			boolean
729
			boolean
731
			
730
			
732
			</code>
731
			</code>
733
		</td>
732
		</td>
734
 
733
 
735
		<td class="name"><div>
734
		<td class="name"><div>
736
		<a class="anchor" href="#_ajouterSupplementDureeDeVie">#</a>
735
		<a class="anchor" href="#_ajouterSupplementDureeDeVie">#</a>
737
		<code><a href="source-class-CacheFichier.html#359-382" title="Go to source code">ajouterSupplementDureeDeVie</a>( <span>string <var>$id</var></span>, <span>integer <var>$supplement_duree_de_vie</var></span> )</code>
736
		<code><a href="source-class-CacheFichier.html#359-382" title="Go to source code">ajouterSupplementDureeDeVie</a>( <span>string <var>$id</var></span>, <span>integer <var>$supplement_duree_de_vie</var></span> )</code>
738
 
737
 
739
		<div class="description short">
738
		<div class="description short">
740
			
739
			
741
<p>Give (if possible) an extra lifetime to the given cache id</p>
740
<p>Give (if possible) an extra lifetime to the given cache id</p>
742
 
741
 
743
		</div>
742
		</div>
744
 
743
 
745
		<div class="description detailed hidden">
744
		<div class="description detailed hidden">
746
			
745
			
747
<p>Give (if possible) an extra lifetime to the given cache id</p>
746
<p>Give (if possible) an extra lifetime to the given cache id</p>
748
 
747
 
749
 
748
 
750
 
749
 
751
				<h4>Parameters</h4>
750
				<h4>Parameters</h4>
752
				<div class="list"><dl>
751
				<div class="list"><dl>
753
					<dt><var>$id</var></dt>
752
					<dt><var>$id</var></dt>
754
					<dd><code>string</code><br>$id cache id</dd>
753
					<dd><code>string</code><br>$id cache id</dd>
755
					<dt><var>$supplement_duree_de_vie</var></dt>
754
					<dt><var>$supplement_duree_de_vie</var></dt>
756
					<dd><code>integer</code><br>$extraLifetime</dd>
755
					<dd><code>integer</code><br>$extraLifetime</dd>
757
				</dl></div>
756
				</dl></div>
758
 
757
 
759
				<h4>Returns</h4>
758
				<h4>Returns</h4>
760
				<div class="list">
759
				<div class="list">
761
					<code>boolean</code><br>true if ok<br>
760
					<code>boolean</code><br>true if ok<br>
762
				</div>
761
				</div>
763
 
762
 
764
 
763
 
765
 
764
 
766
 
765
 
767
		</div>
766
		</div>
768
		</div></td>
767
		</div></td>
769
	</tr>
768
	</tr>
770
	<tr data-order="getMetadonneesFichier" id="_getMetadonneesFichier">
769
	<tr data-order="getMetadonneesFichier" id="_getMetadonneesFichier">
771
 
770
 
772
		<td class="attributes"><code>
771
		<td class="attributes"><code>
773
			 protected 
772
			 protected 
774
			array|false
773
			array|false
775
			
774
			
776
			</code>
775
			</code>
777
		</td>
776
		</td>
778
 
777
 
779
		<td class="name"><div>
778
		<td class="name"><div>
780
		<a class="anchor" href="#_getMetadonneesFichier">#</a>
779
		<a class="anchor" href="#_getMetadonneesFichier">#</a>
781
		<code><a href="source-class-CacheFichier.html#384-400" title="Go to source code">getMetadonneesFichier</a>( <span>string <var>$id</var></span> )</code>
780
		<code><a href="source-class-CacheFichier.html#384-400" title="Go to source code">getMetadonneesFichier</a>( <span>string <var>$id</var></span> )</code>
782
 
781
 
783
		<div class="description short">
782
		<div class="description short">
784
			
783
			
785
<p>Get a metadatas record</p>
784
<p>Get a metadatas record</p>
786
 
785
 
787
		</div>
786
		</div>
788
 
787
 
789
		<div class="description detailed hidden">
788
		<div class="description detailed hidden">
790
			
789
			
791
<p>Get a metadatas record</p>
790
<p>Get a metadatas record</p>
792
 
791
 
793
 
792
 
794
 
793
 
795
				<h4>Parameters</h4>
794
				<h4>Parameters</h4>
796
				<div class="list"><dl>
795
				<div class="list"><dl>
797
					<dt><var>$id</var></dt>
796
					<dt><var>$id</var></dt>
798
					<dd><code>string</code><br>$id Cache id</dd>
797
					<dd><code>string</code><br>$id Cache id</dd>
799
				</dl></div>
798
				</dl></div>
800
 
799
 
801
				<h4>Returns</h4>
800
				<h4>Returns</h4>
802
				<div class="list">
801
				<div class="list">
803
					<code>array|false</code><br>Associative array of metadatas<br>
802
					<code>array|false</code><br>Associative array of metadatas<br>
804
				</div>
803
				</div>
805
 
804
 
806
 
805
 
807
 
806
 
808
 
807
 
809
		</div>
808
		</div>
810
		</div></td>
809
		</div></td>
811
	</tr>
810
	</tr>
812
	<tr data-order="setMetadonnees" id="_setMetadonnees">
811
	<tr data-order="setMetadonnees" id="_setMetadonnees">
813
 
812
 
814
		<td class="attributes"><code>
813
		<td class="attributes"><code>
815
			 protected 
814
			 protected 
816
			boolean
815
			boolean
817
			
816
			
818
			</code>
817
			</code>
819
		</td>
818
		</td>
820
 
819
 
821
		<td class="name"><div>
820
		<td class="name"><div>
822
		<a class="anchor" href="#_setMetadonnees">#</a>
821
		<a class="anchor" href="#_setMetadonnees">#</a>
823
		<code><a href="source-class-CacheFichier.html#402-424" title="Go to source code">setMetadonnees</a>( <span>string <var>$id</var></span>, <span>array <var>$metadonnees</var></span>, <span>boolean <var>$sauvegarde</var> = <span class="php-keyword1">true</span></span> )</code>
822
		<code><a href="source-class-CacheFichier.html#402-424" title="Go to source code">setMetadonnees</a>( <span>string <var>$id</var></span>, <span>array <var>$metadonnees</var></span>, <span>boolean <var>$sauvegarde</var> = <span class="php-keyword1">true</span></span> )</code>
824
 
823
 
825
		<div class="description short">
824
		<div class="description short">
826
			
825
			
827
<p>Set a metadatas record</p>
826
<p>Set a metadatas record</p>
828
 
827
 
829
		</div>
828
		</div>
830
 
829
 
831
		<div class="description detailed hidden">
830
		<div class="description detailed hidden">
832
			
831
			
833
<p>Set a metadatas record</p>
832
<p>Set a metadatas record</p>
834
 
833
 
835
 
834
 
836
 
835
 
837
				<h4>Parameters</h4>
836
				<h4>Parameters</h4>
838
				<div class="list"><dl>
837
				<div class="list"><dl>
839
					<dt><var>$id</var></dt>
838
					<dt><var>$id</var></dt>
840
					<dd><code>string</code><br>$id Cache id</dd>
839
					<dd><code>string</code><br>$id Cache id</dd>
841
					<dt><var>$metadonnees</var></dt>
840
					<dt><var>$metadonnees</var></dt>
842
					<dd><code>array</code><br>$metadatas Associative array of metadatas</dd>
841
					<dd><code>array</code><br>$metadatas Associative array of metadatas</dd>
843
					<dt><var>$sauvegarde</var></dt>
842
					<dt><var>$sauvegarde</var></dt>
844
					<dd><code>boolean</code><br>$save optional pass false to disable saving to file</dd>
843
					<dd><code>boolean</code><br>$save optional pass false to disable saving to file</dd>
845
				</dl></div>
844
				</dl></div>
846
 
845
 
847
				<h4>Returns</h4>
846
				<h4>Returns</h4>
848
				<div class="list">
847
				<div class="list">
849
					<code>boolean</code><br>True if no problem<br>
848
					<code>boolean</code><br>True if no problem<br>
850
				</div>
849
				</div>
851
 
850
 
852
 
851
 
853
 
852
 
854
 
853
 
855
		</div>
854
		</div>
856
		</div></td>
855
		</div></td>
857
	</tr>
856
	</tr>
858
	<tr data-order="supprimerMetadonnees" id="_supprimerMetadonnees">
857
	<tr data-order="supprimerMetadonnees" id="_supprimerMetadonnees">
859
 
858
 
860
		<td class="attributes"><code>
859
		<td class="attributes"><code>
861
			 protected 
860
			 protected 
862
			boolean
861
			boolean
863
			
862
			
864
			</code>
863
			</code>
865
		</td>
864
		</td>
866
 
865
 
867
		<td class="name"><div>
866
		<td class="name"><div>
868
		<a class="anchor" href="#_supprimerMetadonnees">#</a>
867
		<a class="anchor" href="#_supprimerMetadonnees">#</a>
869
		<code><a href="source-class-CacheFichier.html#426-438" title="Go to source code">supprimerMetadonnees</a>( <span>string <var>$id</var></span> )</code>
868
		<code><a href="source-class-CacheFichier.html#426-438" title="Go to source code">supprimerMetadonnees</a>( <span>string <var>$id</var></span> )</code>
870
 
869
 
871
		<div class="description short">
870
		<div class="description short">
872
			
871
			
873
<p>Drop a metadata record</p>
872
<p>Drop a metadata record</p>
874
 
873
 
875
		</div>
874
		</div>
876
 
875
 
877
		<div class="description detailed hidden">
876
		<div class="description detailed hidden">
878
			
877
			
879
<p>Drop a metadata record</p>
878
<p>Drop a metadata record</p>
880
 
879
 
881
 
880
 
882
 
881
 
883
				<h4>Parameters</h4>
882
				<h4>Parameters</h4>
884
				<div class="list"><dl>
883
				<div class="list"><dl>
885
					<dt><var>$id</var></dt>
884
					<dt><var>$id</var></dt>
886
					<dd><code>string</code><br>$id Cache id</dd>
885
					<dd><code>string</code><br>$id Cache id</dd>
887
				</dl></div>
886
				</dl></div>
888
 
887
 
889
				<h4>Returns</h4>
888
				<h4>Returns</h4>
890
				<div class="list">
889
				<div class="list">
891
					<code>boolean</code><br>True if no problem<br>
890
					<code>boolean</code><br>True if no problem<br>
892
				</div>
891
				</div>
893
 
892
 
894
 
893
 
895
 
894
 
896
 
895
 
897
		</div>
896
		</div>
898
		</div></td>
897
		</div></td>
899
	</tr>
898
	</tr>
900
	<tr data-order="nettoyerMetadonnees" id="_nettoyerMetadonnees">
899
	<tr data-order="nettoyerMetadonnees" id="_nettoyerMetadonnees">
901
 
900
 
902
		<td class="attributes"><code>
901
		<td class="attributes"><code>
903
			 protected 
902
			 protected 
904
			
903
			
905
			
904
			
906
			</code>
905
			</code>
907
		</td>
906
		</td>
908
 
907
 
909
		<td class="name"><div>
908
		<td class="name"><div>
910
		<a class="anchor" href="#_nettoyerMetadonnees">#</a>
909
		<a class="anchor" href="#_nettoyerMetadonnees">#</a>
911
		<code><a href="source-class-CacheFichier.html#440-447" title="Go to source code">nettoyerMetadonnees</a>( )</code>
910
		<code><a href="source-class-CacheFichier.html#440-447" title="Go to source code">nettoyerMetadonnees</a>( )</code>
912
 
911
 
913
		<div class="description short">
912
		<div class="description short">
914
			
913
			
915
<p>Clear the metadatas array</p>
914
<p>Clear the metadatas array</p>
916
 
915
 
917
		</div>
916
		</div>
918
 
917
 
919
		<div class="description detailed hidden">
918
		<div class="description detailed hidden">
920
			
919
			
921
<p>Clear the metadatas array</p>
920
<p>Clear the metadatas array</p>
922
 
921
 
923
 
922
 
924
 
923
 
925
 
924
 
926
 
925
 
927
 
926
 
928
 
927
 
929
 
928
 
930
		</div>
929
		</div>
931
		</div></td>
930
		</div></td>
932
	</tr>
931
	</tr>
933
	<tr data-order="chargerMetadonnees" id="_chargerMetadonnees">
932
	<tr data-order="chargerMetadonnees" id="_chargerMetadonnees">
934
 
933
 
935
		<td class="attributes"><code>
934
		<td class="attributes"><code>
936
			 protected 
935
			 protected 
937
			array|false
936
			array|false
938
			
937
			
939
			</code>
938
			</code>
940
		</td>
939
		</td>
941
 
940
 
942
		<td class="name"><div>
941
		<td class="name"><div>
943
		<a class="anchor" href="#_chargerMetadonnees">#</a>
942
		<a class="anchor" href="#_chargerMetadonnees">#</a>
944
		<code><a href="source-class-CacheFichier.html#449-461" title="Go to source code">chargerMetadonnees</a>( <span>string <var>$id</var></span> )</code>
943
		<code><a href="source-class-CacheFichier.html#449-461" title="Go to source code">chargerMetadonnees</a>( <span>string <var>$id</var></span> )</code>
945
 
944
 
946
		<div class="description short">
945
		<div class="description short">
947
			
946
			
948
<p>Load metadatas from disk</p>
947
<p>Load metadatas from disk</p>
949
 
948
 
950
		</div>
949
		</div>
951
 
950
 
952
		<div class="description detailed hidden">
951
		<div class="description detailed hidden">
953
			
952
			
954
<p>Load metadatas from disk</p>
953
<p>Load metadatas from disk</p>
955
 
954
 
956
 
955
 
957
 
956
 
958
				<h4>Parameters</h4>
957
				<h4>Parameters</h4>
959
				<div class="list"><dl>
958
				<div class="list"><dl>
960
					<dt><var>$id</var></dt>
959
					<dt><var>$id</var></dt>
961
					<dd><code>string</code><br>$id Cache id</dd>
960
					<dd><code>string</code><br>$id Cache id</dd>
962
				</dl></div>
961
				</dl></div>
963
 
962
 
964
				<h4>Returns</h4>
963
				<h4>Returns</h4>
965
				<div class="list">
964
				<div class="list">
966
					<code>array|false</code><br>Metadatas associative array<br>
965
					<code>array|false</code><br>Metadatas associative array<br>
967
				</div>
966
				</div>
968
 
967
 
969
 
968
 
970
 
969
 
971
 
970
 
972
		</div>
971
		</div>
973
		</div></td>
972
		</div></td>
974
	</tr>
973
	</tr>
975
	<tr data-order="sauverMetadonnees" id="_sauverMetadonnees">
974
	<tr data-order="sauverMetadonnees" id="_sauverMetadonnees">
976
 
975
 
977
		<td class="attributes"><code>
976
		<td class="attributes"><code>
978
			 protected 
977
			 protected 
979
			boolean
978
			boolean
980
			
979
			
981
			</code>
980
			</code>
982
		</td>
981
		</td>
983
 
982
 
984
		<td class="name"><div>
983
		<td class="name"><div>
985
		<a class="anchor" href="#_sauverMetadonnees">#</a>
984
		<a class="anchor" href="#_sauverMetadonnees">#</a>
986
		<code><a href="source-class-CacheFichier.html#463-474" title="Go to source code">sauverMetadonnees</a>( <span>string <var>$id</var></span>, <span>array <var>$metadonnees</var></span> )</code>
985
		<code><a href="source-class-CacheFichier.html#463-474" title="Go to source code">sauverMetadonnees</a>( <span>string <var>$id</var></span>, <span>array <var>$metadonnees</var></span> )</code>
987
 
986
 
988
		<div class="description short">
987
		<div class="description short">
989
			
988
			
990
<p>Save metadatas to disk</p>
989
<p>Save metadatas to disk</p>
991
 
990
 
992
		</div>
991
		</div>
993
 
992
 
994
		<div class="description detailed hidden">
993
		<div class="description detailed hidden">
995
			
994
			
996
<p>Save metadatas to disk</p>
995
<p>Save metadatas to disk</p>
997
 
996
 
998
 
997
 
999
 
998
 
1000
				<h4>Parameters</h4>
999
				<h4>Parameters</h4>
1001
				<div class="list"><dl>
1000
				<div class="list"><dl>
1002
					<dt><var>$id</var></dt>
1001
					<dt><var>$id</var></dt>
1003
					<dd><code>string</code><br>$id Cache id</dd>
1002
					<dd><code>string</code><br>$id Cache id</dd>
1004
					<dt><var>$metadonnees</var></dt>
1003
					<dt><var>$metadonnees</var></dt>
1005
					<dd><code>array</code><br>$metadatas Associative array</dd>
1004
					<dd><code>array</code><br>$metadatas Associative array</dd>
1006
				</dl></div>
1005
				</dl></div>
1007
 
1006
 
1008
				<h4>Returns</h4>
1007
				<h4>Returns</h4>
1009
				<div class="list">
1008
				<div class="list">
1010
					<code>boolean</code><br>True if no problem<br>
1009
					<code>boolean</code><br>True if no problem<br>
1011
				</div>
1010
				</div>
1012
 
1011
 
1013
 
1012
 
1014
 
1013
 
1015
 
1014
 
1016
		</div>
1015
		</div>
1017
		</div></td>
1016
		</div></td>
1018
	</tr>
1017
	</tr>
1019
	<tr data-order="getNomFichierMeta" id="_getNomFichierMeta">
1018
	<tr data-order="getNomFichierMeta" id="_getNomFichierMeta">
1020
 
1019
 
1021
		<td class="attributes"><code>
1020
		<td class="attributes"><code>
1022
			 protected 
1021
			 protected 
1023
			string
1022
			string
1024
			
1023
			
1025
			</code>
1024
			</code>
1026
		</td>
1025
		</td>
1027
 
1026
 
1028
		<td class="name"><div>
1027
		<td class="name"><div>
1029
		<a class="anchor" href="#_getNomFichierMeta">#</a>
1028
		<a class="anchor" href="#_getNomFichierMeta">#</a>
1030
		<code><a href="source-class-CacheFichier.html#476-486" title="Go to source code">getNomFichierMeta</a>( <span>string <var>$id</var></span> )</code>
1029
		<code><a href="source-class-CacheFichier.html#476-486" title="Go to source code">getNomFichierMeta</a>( <span>string <var>$id</var></span> )</code>
1031
 
1030
 
1032
		<div class="description short">
1031
		<div class="description short">
1033
			
1032
			
1034
<p>Make and return a file name (with path) for metadatas</p>
1033
<p>Make and return a file name (with path) for metadatas</p>
1035
 
1034
 
1036
		</div>
1035
		</div>
1037
 
1036
 
1038
		<div class="description detailed hidden">
1037
		<div class="description detailed hidden">
1039
			
1038
			
1040
<p>Make and return a file name (with path) for metadatas</p>
1039
<p>Make and return a file name (with path) for metadatas</p>
1041
 
1040
 
1042
 
1041
 
1043
 
1042
 
1044
				<h4>Parameters</h4>
1043
				<h4>Parameters</h4>
1045
				<div class="list"><dl>
1044
				<div class="list"><dl>
1046
					<dt><var>$id</var></dt>
1045
					<dt><var>$id</var></dt>
1047
					<dd><code>string</code><br>$id Cache id</dd>
1046
					<dd><code>string</code><br>$id Cache id</dd>
1048
				</dl></div>
1047
				</dl></div>
1049
 
1048
 
1050
				<h4>Returns</h4>
1049
				<h4>Returns</h4>
1051
				<div class="list">
1050
				<div class="list">
1052
					<code>string</code><br>Metadatas file name (with path)<br>
1051
					<code>string</code><br>Metadatas file name (with path)<br>
1053
				</div>
1052
				</div>
1054
 
1053
 
1055
 
1054
 
1056
 
1055
 
1057
 
1056
 
1058
		</div>
1057
		</div>
1059
		</div></td>
1058
		</div></td>
1060
	</tr>
1059
	</tr>
1061
	<tr data-order="etreFichierMeta" id="_etreFichierMeta">
1060
	<tr data-order="etreFichierMeta" id="_etreFichierMeta">
1062
 
1061
 
1063
		<td class="attributes"><code>
1062
		<td class="attributes"><code>
1064
			 protected 
1063
			 protected 
1065
			boolean
1064
			boolean
1066
			
1065
			
1067
			</code>
1066
			</code>
1068
		</td>
1067
		</td>
1069
 
1068
 
1070
		<td class="name"><div>
1069
		<td class="name"><div>
1071
		<a class="anchor" href="#_etreFichierMeta">#</a>
1070
		<a class="anchor" href="#_etreFichierMeta">#</a>
1072
		<code><a href="source-class-CacheFichier.html#488-497" title="Go to source code">etreFichierMeta</a>( <span>string <var>$fichier_nom</var></span> )</code>
1071
		<code><a href="source-class-CacheFichier.html#488-497" title="Go to source code">etreFichierMeta</a>( <span>string <var>$fichier_nom</var></span> )</code>
1073
 
1072
 
1074
		<div class="description short">
1073
		<div class="description short">
1075
			
1074
			
1076
<p>Check if the given filename is a metadatas one</p>
1075
<p>Check if the given filename is a metadatas one</p>
1077
 
1076
 
1078
		</div>
1077
		</div>
1079
 
1078
 
1080
		<div class="description detailed hidden">
1079
		<div class="description detailed hidden">
1081
			
1080
			
1082
<p>Check if the given filename is a metadatas one</p>
1081
<p>Check if the given filename is a metadatas one</p>
1083
 
1082
 
1084
 
1083
 
1085
 
1084
 
1086
				<h4>Parameters</h4>
1085
				<h4>Parameters</h4>
1087
				<div class="list"><dl>
1086
				<div class="list"><dl>
1088
					<dt><var>$fichier_nom</var></dt>
1087
					<dt><var>$fichier_nom</var></dt>
1089
					<dd><code>string</code><br>$fileName File name</dd>
1088
					<dd><code>string</code><br>$fileName File name</dd>
1090
				</dl></div>
1089
				</dl></div>
1091
 
1090
 
1092
				<h4>Returns</h4>
1091
				<h4>Returns</h4>
1093
				<div class="list">
1092
				<div class="list">
1094
					<code>boolean</code><br>True if it's a metadatas one<br>
1093
					<code>boolean</code><br>True if it's a metadatas one<br>
1095
				</div>
1094
				</div>
1096
 
1095
 
1097
 
1096
 
1098
 
1097
 
1099
 
1098
 
1100
		</div>
1099
		</div>
1101
		</div></td>
1100
		</div></td>
1102
	</tr>
1101
	</tr>
1103
	<tr data-order="supprimerFichier" id="_supprimerFichier">
1102
	<tr data-order="supprimerFichier" id="_supprimerFichier">
1104
 
1103
 
1105
		<td class="attributes"><code>
1104
		<td class="attributes"><code>
1106
			 protected 
1105
			 protected 
1107
			boolean
1106
			boolean
1108
			
1107
			
1109
			</code>
1108
			</code>
1110
		</td>
1109
		</td>
1111
 
1110
 
1112
		<td class="name"><div>
1111
		<td class="name"><div>
1113
		<a class="anchor" href="#_supprimerFichier">#</a>
1112
		<a class="anchor" href="#_supprimerFichier">#</a>
1114
		<code><a href="source-class-CacheFichier.html#499-516" title="Go to source code">supprimerFichier</a>( <span>string <var>$fichier</var></span> )</code>
1113
		<code><a href="source-class-CacheFichier.html#499-516" title="Go to source code">supprimerFichier</a>( <span>string <var>$fichier</var></span> )</code>
1115
 
1114
 
1116
		<div class="description short">
1115
		<div class="description short">
1117
			
1116
			
1118
<p>Remove a file</p>
1117
<p>Remove a file</p>
1119
 
1118
 
1120
		</div>
1119
		</div>
1121
 
1120
 
1122
		<div class="description detailed hidden">
1121
		<div class="description detailed hidden">
1123
			
1122
			
1124
<p>Remove a file</p>
1123
<p>Remove a file</p>
1125
 
1124
 
1126
<p>If we can't remove the file (because of locks or any problem), we will touch
1125
<p>If we can't remove the file (because of locks or any problem), we will touch
1127
the file to invalidate it</p>
1126
the file to invalidate it</p>
1128
 
1127
 
1129
 
1128
 
1130
 
1129
 
1131
				<h4>Parameters</h4>
1130
				<h4>Parameters</h4>
1132
				<div class="list"><dl>
1131
				<div class="list"><dl>
1133
					<dt><var>$fichier</var></dt>
1132
					<dt><var>$fichier</var></dt>
1134
					<dd><code>string</code><br>$file Complete file path</dd>
1133
					<dd><code>string</code><br>$file Complete file path</dd>
1135
				</dl></div>
1134
				</dl></div>
1136
 
1135
 
1137
				<h4>Returns</h4>
1136
				<h4>Returns</h4>
1138
				<div class="list">
1137
				<div class="list">
1139
					<code>boolean</code><br>True if ok<br>
1138
					<code>boolean</code><br>True if ok<br>
1140
				</div>
1139
				</div>
1141
 
1140
 
1142
 
1141
 
1143
 
1142
 
1144
 
1143
 
1145
		</div>
1144
		</div>
1146
		</div></td>
1145
		</div></td>
1147
	</tr>
1146
	</tr>
1148
	<tr data-order="nettoyerFichiers" id="_nettoyerFichiers">
1147
	<tr data-order="nettoyerFichiers" id="_nettoyerFichiers">
1149
 
1148
 
1150
		<td class="attributes"><code>
1149
		<td class="attributes"><code>
1151
			 protected 
1150
			 protected 
1152
			boolean
1151
			boolean
1153
			
1152
			
1154
			</code>
1153
			</code>
1155
		</td>
1154
		</td>
1156
 
1155
 
1157
		<td class="name"><div>
1156
		<td class="name"><div>
1158
		<a class="anchor" href="#_nettoyerFichiers">#</a>
1157
		<a class="anchor" href="#_nettoyerFichiers">#</a>
1159
		<code><a href="source-class-CacheFichier.html#518-626" title="Go to source code">nettoyerFichiers</a>( <span>string <var>$dossier</var></span>, <span>string <var>$mode</var> = <code><a href="class-Cache.html#NETTOYAGE_MODE_TOUS">Cache::<b>NETTOYAGE_MODE_TOUS</b></a></code></span>, <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
1158
		<code><a href="source-class-CacheFichier.html#518-626" title="Go to source code">nettoyerFichiers</a>( <span>string <var>$dossier</var></span>, <span>string <var>$mode</var> = <code><a href="class-Cache.html#NETTOYAGE_MODE_TOUS">Cache::<b>NETTOYAGE_MODE_TOUS</b></a></code></span>, <span>array <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
1160
 
1159
 
1161
		<div class="description short">
1160
		<div class="description short">
1162
			
1161
			
1163
<p>Clean some cache records (protected method used for recursive stuff)</p>
1162
<p>Clean some cache records (protected method used for recursive stuff)</p>
1164
 
1163
 
1165
		</div>
1164
		</div>
1166
 
1165
 
1167
		<div class="description detailed hidden">
1166
		<div class="description detailed hidden">
1168
			
1167
			
1169
<p>Clean some cache records (protected method used for recursive stuff)</p>
1168
<p>Clean some cache records (protected method used for recursive stuff)</p>
1170
 
1169
 
1171
<p>Available modes are : Zend_Cache::CLEANING_MODE_ALL (default) =&gt; remove
1170
<p>Available modes are : Zend_Cache::CLEANING_MODE_ALL (default) =&gt; remove
1172
all cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_OLD =&gt; remove
1171
all cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_OLD =&gt; remove
1173
too old cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_MATCHING_TAG
1172
too old cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_MATCHING_TAG
1174
=&gt; remove cache entries matching all given tags ($tags can be an array of
1173
=&gt; remove cache entries matching all given tags ($tags can be an array of
1175
strings or a single string) Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG =&gt;
1174
strings or a single string) Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG =&gt;
1176
remove cache entries not {matching one of the given tags} ($tags can be an array
1175
remove cache entries not {matching one of the given tags} ($tags can be an array
1177
of strings or a single string) Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG =&gt;
1176
of strings or a single string) Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG =&gt;
1178
remove cache entries matching any given tags ($tags can be an array of strings
1177
remove cache entries matching any given tags ($tags can be an array of strings
1179
or a single string)</p>
1178
or a single string)</p>
1180
 
1179
 
1181
 
1180
 
1182
 
1181
 
1183
				<h4>Parameters</h4>
1182
				<h4>Parameters</h4>
1184
				<div class="list"><dl>
1183
				<div class="list"><dl>
1185
					<dt><var>$dossier</var></dt>
1184
					<dt><var>$dossier</var></dt>
1186
					<dd><code>string</code><br>$dir Directory to clean</dd>
1185
					<dd><code>string</code><br>$dir Directory to clean</dd>
1187
					<dt><var>$mode</var></dt>
1186
					<dt><var>$mode</var></dt>
1188
					<dd><code>string</code><br>$mode Clean mode</dd>
1187
					<dd><code>string</code><br>$mode Clean mode</dd>
1189
					<dt><var>$tags</var></dt>
1188
					<dt><var>$tags</var></dt>
1190
					<dd><code>array</code><br>$tags Array of tags</dd>
1189
					<dd><code>array</code><br>$tags Array of tags</dd>
1191
				</dl></div>
1190
				</dl></div>
1192
 
1191
 
1193
				<h4>Returns</h4>
1192
				<h4>Returns</h4>
1194
				<div class="list">
1193
				<div class="list">
1195
					<code>boolean</code><br>True if no problem<br>
1194
					<code>boolean</code><br>True if no problem<br>
1196
				</div>
1195
				</div>
1197
 
1196
 
1198
				<h4>Throws</h4>
1197
				<h4>Throws</h4>
1199
				<div class="list">
1198
				<div class="list">
1200
					<code>Zend_Cache_Exception</code><br>
1199
					<code>Zend_Cache_Exception</code><br>
1201
				</div>
1200
				</div>
1202
 
1201
 
1203
 
1202
 
1204
 
1203
 
1205
		</div>
1204
		</div>
1206
		</div></td>
1205
		</div></td>
1207
	</tr>
1206
	</tr>
1208
	<tr data-order="analyserCache" id="_analyserCache">
1207
	<tr data-order="analyserCache" id="_analyserCache">
1209
 
1208
 
1210
		<td class="attributes"><code>
1209
		<td class="attributes"><code>
1211
			 protected 
1210
			 protected 
1212
			
1211
			
1213
			
1212
			
1214
			</code>
1213
			</code>
1215
		</td>
1214
		</td>
1216
 
1215
 
1217
		<td class="name"><div>
1216
		<td class="name"><div>
1218
		<a class="anchor" href="#_analyserCache">#</a>
1217
		<a class="anchor" href="#_analyserCache">#</a>
1219
		<code><a href="source-class-CacheFichier.html#628-709" title="Go to source code">analyserCache</a>( <span>mixed <var>$dossier</var></span>, <span>mixed <var>$mode</var></span>, <span>mixed <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
1218
		<code><a href="source-class-CacheFichier.html#628-709" title="Go to source code">analyserCache</a>( <span>mixed <var>$dossier</var></span>, <span>mixed <var>$mode</var></span>, <span>mixed <var>$tags</var> = <span class="php-keyword1">array</span>()</span> )</code>
1220
 
1219
 
1221
		<div class="description short">
1220
		<div class="description short">
1222
			
1221
			
1223
		</div>
1222
		</div>
1224
 
1223
 
1225
		<div class="description detailed hidden">
1224
		<div class="description detailed hidden">
1226
			
1225
			
1227
 
1226
 
1228
 
1227
 
1229
 
1228
 
1230
 
1229
 
1231
 
1230
 
1232
 
1231
 
1233
 
1232
 
1234
		</div>
1233
		</div>
1235
		</div></td>
1234
		</div></td>
1236
	</tr>
1235
	</tr>
1237
	<tr data-order="genererCleSecu" id="_genererCleSecu">
1236
	<tr data-order="genererCleSecu" id="_genererCleSecu">
1238
 
1237
 
1239
		<td class="attributes"><code>
1238
		<td class="attributes"><code>
1240
			 protected 
1239
			 protected 
1241
			string
1240
			string
1242
			
1241
			
1243
			</code>
1242
			</code>
1244
		</td>
1243
		</td>
1245
 
1244
 
1246
		<td class="name"><div>
1245
		<td class="name"><div>
1247
		<a class="anchor" href="#_genererCleSecu">#</a>
1246
		<a class="anchor" href="#_genererCleSecu">#</a>
1248
		<code><a href="source-class-CacheFichier.html#711-732" title="Go to source code">genererCleSecu</a>( <span>string <var>$donnees</var></span>, <span>string <var>$type_de_controle</var></span> )</code>
1247
		<code><a href="source-class-CacheFichier.html#711-732" title="Go to source code">genererCleSecu</a>( <span>string <var>$donnees</var></span>, <span>string <var>$type_de_controle</var></span> )</code>
1249
 
1248
 
1250
		<div class="description short">
1249
		<div class="description short">
1251
			
1250
			
1252
<p>Make a control key with the string containing datas</p>
1251
<p>Make a control key with the string containing datas</p>
1253
 
1252
 
1254
		</div>
1253
		</div>
1255
 
1254
 
1256
		<div class="description detailed hidden">
1255
		<div class="description detailed hidden">
1257
			
1256
			
1258
<p>Make a control key with the string containing datas</p>
1257
<p>Make a control key with the string containing datas</p>
1259
 
1258
 
1260
 
1259
 
1261
 
1260
 
1262
				<h4>Parameters</h4>
1261
				<h4>Parameters</h4>
1263
				<div class="list"><dl>
1262
				<div class="list"><dl>
1264
					<dt><var>$donnees</var></dt>
1263
					<dt><var>$donnees</var></dt>
1265
					<dd><code>string</code><br>$data Data</dd>
1264
					<dd><code>string</code><br>$data Data</dd>
1266
					<dt><var>$type_de_controle</var></dt>
1265
					<dt><var>$type_de_controle</var></dt>
1267
					<dd><code>string</code><br>$controlType Type of control 'md5', 'crc32' or 'strlen'</dd>
1266
					<dd><code>string</code><br>$controlType Type of control 'md5', 'crc32' or 'strlen'</dd>
1268
				</dl></div>
1267
				</dl></div>
1269
 
1268
 
1270
				<h4>Returns</h4>
1269
				<h4>Returns</h4>
1271
				<div class="list">
1270
				<div class="list">
1272
					<code>string</code><br>Control key<br>
1271
					<code>string</code><br>Control key<br>
1273
				</div>
1272
				</div>
1274
 
1273
 
1275
				<h4>Throws</h4>
1274
				<h4>Throws</h4>
1276
				<div class="list">
1275
				<div class="list">
1277
					<code>Zend_Cache_Exception</code><br>
1276
					<code>Zend_Cache_Exception</code><br>
1278
				</div>
1277
				</div>
1279
 
1278
 
1280
 
1279
 
1281
 
1280
 
1282
		</div>
1281
		</div>
1283
		</div></td>
1282
		</div></td>
1284
	</tr>
1283
	</tr>
1285
	<tr data-order="transformaterIdEnNomFichier" id="_transformaterIdEnNomFichier">
1284
	<tr data-order="transformaterIdEnNomFichier" id="_transformaterIdEnNomFichier">
1286
 
1285
 
1287
		<td class="attributes"><code>
1286
		<td class="attributes"><code>
1288
			 protected 
1287
			 protected 
1289
			string
1288
			string
1290
			
1289
			
1291
			</code>
1290
			</code>
1292
		</td>
1291
		</td>
1293
 
1292
 
1294
		<td class="name"><div>
1293
		<td class="name"><div>
1295
		<a class="anchor" href="#_transformaterIdEnNomFichier">#</a>
1294
		<a class="anchor" href="#_transformaterIdEnNomFichier">#</a>
1296
		<code><a href="source-class-CacheFichier.html#734-744" title="Go to source code">transformaterIdEnNomFichier</a>( <span>string <var>$id</var></span> )</code>
1295
		<code><a href="source-class-CacheFichier.html#734-744" title="Go to source code">transformaterIdEnNomFichier</a>( <span>string <var>$id</var></span> )</code>
1297
 
1296
 
1298
		<div class="description short">
1297
		<div class="description short">
1299
			
1298
			
1300
<p>Transform a cache id into a file name and return it</p>
1299
<p>Transform a cache id into a file name and return it</p>
1301
 
1300
 
1302
		</div>
1301
		</div>
1303
 
1302
 
1304
		<div class="description detailed hidden">
1303
		<div class="description detailed hidden">
1305
			
1304
			
1306
<p>Transform a cache id into a file name and return it</p>
1305
<p>Transform a cache id into a file name and return it</p>
1307
 
1306
 
1308
 
1307
 
1309
 
1308
 
1310
				<h4>Parameters</h4>
1309
				<h4>Parameters</h4>
1311
				<div class="list"><dl>
1310
				<div class="list"><dl>
1312
					<dt><var>$id</var></dt>
1311
					<dt><var>$id</var></dt>
1313
					<dd><code>string</code><br>$id Cache id</dd>
1312
					<dd><code>string</code><br>$id Cache id</dd>
1314
				</dl></div>
1313
				</dl></div>
1315
 
1314
 
1316
				<h4>Returns</h4>
1315
				<h4>Returns</h4>
1317
				<div class="list">
1316
				<div class="list">
1318
					<code>string</code><br>File name<br>
1317
					<code>string</code><br>File name<br>
1319
				</div>
1318
				</div>
1320
 
1319
 
1321
 
1320
 
1322
 
1321
 
1323
 
1322
 
1324
		</div>
1323
		</div>
1325
		</div></td>
1324
		</div></td>
1326
	</tr>
1325
	</tr>
1327
	<tr data-order="getFichierNom" id="_getFichierNom">
1326
	<tr data-order="getFichierNom" id="_getFichierNom">
1328
 
1327
 
1329
		<td class="attributes"><code>
1328
		<td class="attributes"><code>
1330
			 protected 
1329
			 protected 
1331
			string
1330
			string
1332
			
1331
			
1333
			</code>
1332
			</code>
1334
		</td>
1333
		</td>
1335
 
1334
 
1336
		<td class="name"><div>
1335
		<td class="name"><div>
1337
		<a class="anchor" href="#_getFichierNom">#</a>
1336
		<a class="anchor" href="#_getFichierNom">#</a>
1338
		<code><a href="source-class-CacheFichier.html#746-756" title="Go to source code">getFichierNom</a>( <span>string <var>$id</var></span> )</code>
1337
		<code><a href="source-class-CacheFichier.html#746-756" title="Go to source code">getFichierNom</a>( <span>string <var>$id</var></span> )</code>
1339
 
1338
 
1340
		<div class="description short">
1339
		<div class="description short">
1341
			
1340
			
1342
<p>Make and return a file name (with path)</p>
1341
<p>Make and return a file name (with path)</p>
1343
 
1342
 
1344
		</div>
1343
		</div>
1345
 
1344
 
1346
		<div class="description detailed hidden">
1345
		<div class="description detailed hidden">
1347
			
1346
			
1348
<p>Make and return a file name (with path)</p>
1347
<p>Make and return a file name (with path)</p>
1349
 
1348
 
1350
 
1349
 
1351
 
1350
 
1352
				<h4>Parameters</h4>
1351
				<h4>Parameters</h4>
1353
				<div class="list"><dl>
1352
				<div class="list"><dl>
1354
					<dt><var>$id</var></dt>
1353
					<dt><var>$id</var></dt>
1355
					<dd><code>string</code><br>$id Cache id</dd>
1354
					<dd><code>string</code><br>$id Cache id</dd>
1356
				</dl></div>
1355
				</dl></div>
1357
 
1356
 
1358
				<h4>Returns</h4>
1357
				<h4>Returns</h4>
1359
				<div class="list">
1358
				<div class="list">
1360
					<code>string</code><br>File name (with path)<br>
1359
					<code>string</code><br>File name (with path)<br>
1361
				</div>
1360
				</div>
1362
 
1361
 
1363
 
1362
 
1364
 
1363
 
1365
 
1364
 
1366
		</div>
1365
		</div>
1367
		</div></td>
1366
		</div></td>
1368
	</tr>
1367
	</tr>
1369
	<tr data-order="getChemin" id="_getChemin">
1368
	<tr data-order="getChemin" id="_getChemin">
1370
 
1369
 
1371
		<td class="attributes"><code>
1370
		<td class="attributes"><code>
1372
			 protected 
1371
			 protected 
1373
			string
1372
			string
1374
			
1373
			
1375
			</code>
1374
			</code>
1376
		</td>
1375
		</td>
1377
 
1376
 
1378
		<td class="name"><div>
1377
		<td class="name"><div>
1379
		<a class="anchor" href="#_getChemin">#</a>
1378
		<a class="anchor" href="#_getChemin">#</a>
1380
		<code><a href="source-class-CacheFichier.html#758-777" title="Go to source code">getChemin</a>( <span>string <var>$id</var></span>, <span>boolean <var>$decoupage</var> = <span class="php-keyword1">false</span></span> )</code>
1379
		<code><a href="source-class-CacheFichier.html#758-777" title="Go to source code">getChemin</a>( <span>string <var>$id</var></span>, <span>boolean <var>$decoupage</var> = <span class="php-keyword1">false</span></span> )</code>
1381
 
1380
 
1382
		<div class="description short">
1381
		<div class="description short">
1383
			
1382
			
1384
<p>Return the complete directory path of a filename (including
1383
<p>Return the complete directory path of a filename (including
1385
hashedDirectoryStructure)</p>
1384
hashedDirectoryStructure)</p>
1386
 
1385
 
1387
		</div>
1386
		</div>
1388
 
1387
 
1389
		<div class="description detailed hidden">
1388
		<div class="description detailed hidden">
1390
			
1389
			
1391
<p>Return the complete directory path of a filename (including
1390
<p>Return the complete directory path of a filename (including
1392
hashedDirectoryStructure)</p>
1391
hashedDirectoryStructure)</p>
1393
 
1392
 
1394
 
1393
 
1395
 
1394
 
1396
				<h4>Parameters</h4>
1395
				<h4>Parameters</h4>
1397
				<div class="list"><dl>
1396
				<div class="list"><dl>
1398
					<dt><var>$id</var></dt>
1397
					<dt><var>$id</var></dt>
1399
					<dd><code>string</code><br>$id Cache id</dd>
1398
					<dd><code>string</code><br>$id Cache id</dd>
1400
					<dt><var>$decoupage</var></dt>
1399
					<dt><var>$decoupage</var></dt>
1401
					<dd><code>boolean</code><br>$decoupage if true, returns array of directory parts instead of single string</dd>
1400
					<dd><code>boolean</code><br>$decoupage if true, returns array of directory parts instead of single string</dd>
1402
				</dl></div>
1401
				</dl></div>
1403
 
1402
 
1404
				<h4>Returns</h4>
1403
				<h4>Returns</h4>
1405
				<div class="list">
1404
				<div class="list">
1406
					<code>string</code><br>Complete directory path<br>
1405
					<code>string</code><br>Complete directory path<br>
1407
				</div>
1406
				</div>
1408
 
1407
 
1409
 
1408
 
1410
 
1409
 
1411
 
1410
 
1412
		</div>
1411
		</div>
1413
		</div></td>
1412
		</div></td>
1414
	</tr>
1413
	</tr>
1415
	<tr data-order="lancerMkdirEtChmodRecursif" id="_lancerMkdirEtChmodRecursif">
1414
	<tr data-order="lancerMkdirEtChmodRecursif" id="_lancerMkdirEtChmodRecursif">
1416
 
1415
 
1417
		<td class="attributes"><code>
1416
		<td class="attributes"><code>
1418
			 protected 
1417
			 protected 
1419
			boolean
1418
			boolean
1420
			
1419
			
1421
			</code>
1420
			</code>
1422
		</td>
1421
		</td>
1423
 
1422
 
1424
		<td class="name"><div>
1423
		<td class="name"><div>
1425
		<a class="anchor" href="#_lancerMkdirEtChmodRecursif">#</a>
1424
		<a class="anchor" href="#_lancerMkdirEtChmodRecursif">#</a>
1426
		<code><a href="source-class-CacheFichier.html#779-797" title="Go to source code">lancerMkdirEtChmodRecursif</a>( <span>string <var>$id</var></span> )</code>
1425
		<code><a href="source-class-CacheFichier.html#779-797" title="Go to source code">lancerMkdirEtChmodRecursif</a>( <span>string <var>$id</var></span> )</code>
1427
 
1426
 
1428
		<div class="description short">
1427
		<div class="description short">
1429
			
1428
			
1430
<p>Make the directory strucuture for the given id</p>
1429
<p>Make the directory strucuture for the given id</p>
1431
 
1430
 
1432
		</div>
1431
		</div>
1433
 
1432
 
1434
		<div class="description detailed hidden">
1433
		<div class="description detailed hidden">
1435
			
1434
			
1436
<p>Make the directory strucuture for the given id</p>
1435
<p>Make the directory strucuture for the given id</p>
1437
 
1436
 
1438
 
1437
 
1439
 
1438
 
1440
				<h4>Parameters</h4>
1439
				<h4>Parameters</h4>
1441
				<div class="list"><dl>
1440
				<div class="list"><dl>
1442
					<dt><var>$id</var></dt>
1441
					<dt><var>$id</var></dt>
1443
					<dd><code>string</code><br>$id cache id</dd>
1442
					<dd><code>string</code><br>$id cache id</dd>
1444
				</dl></div>
1443
				</dl></div>
1445
 
1444
 
1446
				<h4>Returns</h4>
1445
				<h4>Returns</h4>
1447
				<div class="list">
1446
				<div class="list">
1448
					<code>boolean</code><br>true<br>
1447
					<code>boolean</code><br>true<br>
1449
				</div>
1448
				</div>
1450
 
1449
 
1451
 
1450
 
1452
 
1451
 
1453
 
1452
 
1454
		</div>
1453
		</div>
1455
		</div></td>
1454
		</div></td>
1456
	</tr>
1455
	</tr>
1457
	<tr data-order="testerExistenceCache" id="_testerExistenceCache">
1456
	<tr data-order="testerExistenceCache" id="_testerExistenceCache">
1458
 
1457
 
1459
		<td class="attributes"><code>
1458
		<td class="attributes"><code>
1460
			 protected 
1459
			 protected 
1461
			boolean|mixed
1460
			boolean|mixed
1462
			
1461
			
1463
			</code>
1462
			</code>
1464
		</td>
1463
		</td>
1465
 
1464
 
1466
		<td class="name"><div>
1465
		<td class="name"><div>
1467
		<a class="anchor" href="#_testerExistenceCache">#</a>
1466
		<a class="anchor" href="#_testerExistenceCache">#</a>
1468
		<code><a href="source-class-CacheFichier.html#799-814" title="Go to source code">testerExistenceCache</a>( <span>string <var>$id</var></span>, <span>boolean <var>$ne_pas_tester_validiter_du_cache</var></span> )</code>
1467
		<code><a href="source-class-CacheFichier.html#799-814" title="Go to source code">testerExistenceCache</a>( <span>string <var>$id</var></span>, <span>boolean <var>$ne_pas_tester_validiter_du_cache</var></span> )</code>
1469
 
1468
 
1470
		<div class="description short">
1469
		<div class="description short">
1471
			
1470
			
1472
<p>Test if the given cache id is available (and still valid as a cache
1471
<p>Test if the given cache id is available (and still valid as a cache
1473
record)</p>
1472
record)</p>
1474
 
1473
 
1475
		</div>
1474
		</div>
1476
 
1475
 
1477
		<div class="description detailed hidden">
1476
		<div class="description detailed hidden">
1478
			
1477
			
1479
<p>Test if the given cache id is available (and still valid as a cache
1478
<p>Test if the given cache id is available (and still valid as a cache
1480
record)</p>
1479
record)</p>
1481
 
1480
 
1482
 
1481
 
1483
 
1482
 
1484
				<h4>Parameters</h4>
1483
				<h4>Parameters</h4>
1485
				<div class="list"><dl>
1484
				<div class="list"><dl>
1486
					<dt><var>$id</var></dt>
1485
					<dt><var>$id</var></dt>
1487
					<dd><code>string</code><br>$id Cache id</dd>
1486
					<dd><code>string</code><br>$id Cache id</dd>
1488
					<dt><var>$ne_pas_tester_validiter_du_cache</var></dt>
1487
					<dt><var>$ne_pas_tester_validiter_du_cache</var></dt>
1489
					<dd><code>boolean</code><br>$doNotTestCacheValidity If set to true, the cache validity won't be tested</dd>
1488
					<dd><code>boolean</code><br>$doNotTestCacheValidity If set to true, the cache validity won't be tested</dd>
1490
				</dl></div>
1489
				</dl></div>
1491
 
1490
 
1492
				<h4>Returns</h4>
1491
				<h4>Returns</h4>
1493
				<div class="list">
1492
				<div class="list">
1494
					<code>boolean|mixed</code><br>false (a cache is not available) or "last modified" timestamp (int) of the
1493
					<code>boolean|mixed</code><br>false (a cache is not available) or "last modified" timestamp (int) of the
1495
available cache record<br>
1494
available cache record<br>
1496
				</div>
1495
				</div>
1497
 
1496
 
1498
 
1497
 
1499
 
1498
 
1500
 
1499
 
1501
		</div>
1500
		</div>
1502
		</div></td>
1501
		</div></td>
1503
	</tr>
1502
	</tr>
1504
	<tr data-order="getContenuFichier" id="_getContenuFichier">
1503
	<tr data-order="getContenuFichier" id="_getContenuFichier">
1505
 
1504
 
1506
		<td class="attributes"><code>
1505
		<td class="attributes"><code>
1507
			 protected 
1506
			 protected 
1508
			string
1507
			string
1509
			
1508
			
1510
			</code>
1509
			</code>
1511
		</td>
1510
		</td>
1512
 
1511
 
1513
		<td class="name"><div>
1512
		<td class="name"><div>
1514
		<a class="anchor" href="#_getContenuFichier">#</a>
1513
		<a class="anchor" href="#_getContenuFichier">#</a>
1515
		<code><a href="source-class-CacheFichier.html#816-834" title="Go to source code">getContenuFichier</a>( <span>string <var>$fichier</var></span> )</code>
1514
		<code><a href="source-class-CacheFichier.html#816-834" title="Go to source code">getContenuFichier</a>( <span>string <var>$fichier</var></span> )</code>
1516
 
1515
 
1517
		<div class="description short">
1516
		<div class="description short">
1518
			
1517
			
1519
<p>Return the file content of the given file</p>
1518
<p>Return the file content of the given file</p>
1520
 
1519
 
1521
		</div>
1520
		</div>
1522
 
1521
 
1523
		<div class="description detailed hidden">
1522
		<div class="description detailed hidden">
1524
			
1523
			
1525
<p>Return the file content of the given file</p>
1524
<p>Return the file content of the given file</p>
1526
 
1525
 
1527
 
1526
 
1528
 
1527
 
1529
				<h4>Parameters</h4>
1528
				<h4>Parameters</h4>
1530
				<div class="list"><dl>
1529
				<div class="list"><dl>
1531
					<dt><var>$fichier</var></dt>
1530
					<dt><var>$fichier</var></dt>
1532
					<dd><code>string</code><br>$file File complete path</dd>
1531
					<dd><code>string</code><br>$file File complete path</dd>
1533
				</dl></div>
1532
				</dl></div>
1534
 
1533
 
1535
				<h4>Returns</h4>
1534
				<h4>Returns</h4>
1536
				<div class="list">
1535
				<div class="list">
1537
					<code>string</code><br>File content (or false if problem)<br>
1536
					<code>string</code><br>File content (or false if problem)<br>
1538
				</div>
1537
				</div>
1539
 
1538
 
1540
 
1539
 
1541
 
1540
 
1542
 
1541
 
1543
		</div>
1542
		</div>
1544
		</div></td>
1543
		</div></td>
1545
	</tr>
1544
	</tr>
1546
	<tr data-order="setContenuFichier" id="_setContenuFichier">
1545
	<tr data-order="setContenuFichier" id="_setContenuFichier">
1547
 
1546
 
1548
		<td class="attributes"><code>
1547
		<td class="attributes"><code>
1549
			 protected 
1548
			 protected 
1550
			boolean
1549
			boolean
1551
			
1550
			
1552
			</code>
1551
			</code>
1553
		</td>
1552
		</td>
1554
 
1553
 
1555
		<td class="name"><div>
1554
		<td class="name"><div>
1556
		<a class="anchor" href="#_setContenuFichier">#</a>
1555
		<a class="anchor" href="#_setContenuFichier">#</a>
1557
		<code><a href="source-class-CacheFichier.html#836-858" title="Go to source code">setContenuFichier</a>( <span>string <var>$fichier</var></span>, <span>string <var>$chaine</var></span> )</code>
1556
		<code><a href="source-class-CacheFichier.html#836-858" title="Go to source code">setContenuFichier</a>( <span>string <var>$fichier</var></span>, <span>string <var>$chaine</var></span> )</code>
1558
 
1557
 
1559
		<div class="description short">
1558
		<div class="description short">
1560
			
1559
			
1561
<p>Put the given string into the given file</p>
1560
<p>Put the given string into the given file</p>
1562
 
1561
 
1563
		</div>
1562
		</div>
1564
 
1563
 
1565
		<div class="description detailed hidden">
1564
		<div class="description detailed hidden">
1566
			
1565
			
1567
<p>Put the given string into the given file</p>
1566
<p>Put the given string into the given file</p>
1568
 
1567
 
1569
 
1568
 
1570
 
1569
 
1571
				<h4>Parameters</h4>
1570
				<h4>Parameters</h4>
1572
				<div class="list"><dl>
1571
				<div class="list"><dl>
1573
					<dt><var>$fichier</var></dt>
1572
					<dt><var>$fichier</var></dt>
1574
					<dd><code>string</code><br>$file File complete path</dd>
1573
					<dd><code>string</code><br>$file File complete path</dd>
1575
					<dt><var>$chaine</var></dt>
1574
					<dt><var>$chaine</var></dt>
1576
					<dd><code>string</code><br>$string String to put in file</dd>
1575
					<dd><code>string</code><br>$string String to put in file</dd>
1577
				</dl></div>
1576
				</dl></div>
1578
 
1577
 
1579
				<h4>Returns</h4>
1578
				<h4>Returns</h4>
1580
				<div class="list">
1579
				<div class="list">
1581
					<code>boolean</code><br>true if no problem<br>
1580
					<code>boolean</code><br>true if no problem<br>
1582
				</div>
1581
				</div>
1583
 
1582
 
1584
 
1583
 
1585
 
1584
 
1586
 
1585
 
1587
		</div>
1586
		</div>
1588
		</div></td>
1587
		</div></td>
1589
	</tr>
1588
	</tr>
1590
	<tr data-order="transformerNomFichierEnId" id="_transformerNomFichierEnId">
1589
	<tr data-order="transformerNomFichierEnId" id="_transformerNomFichierEnId">
1591
 
1590
 
1592
		<td class="attributes"><code>
1591
		<td class="attributes"><code>
1593
			 protected 
1592
			 protected 
1594
			string
1593
			string
1595
			
1594
			
1596
			</code>
1595
			</code>
1597
		</td>
1596
		</td>
1598
 
1597
 
1599
		<td class="name"><div>
1598
		<td class="name"><div>
1600
		<a class="anchor" href="#_transformerNomFichierEnId">#</a>
1599
		<a class="anchor" href="#_transformerNomFichierEnId">#</a>
1601
		<code><a href="source-class-CacheFichier.html#860-869" title="Go to source code">transformerNomFichierEnId</a>( <span>string <var>$nom_de_fichier</var></span> )</code>
1600
		<code><a href="source-class-CacheFichier.html#860-869" title="Go to source code">transformerNomFichierEnId</a>( <span>string <var>$nom_de_fichier</var></span> )</code>
1602
 
1601
 
1603
		<div class="description short">
1602
		<div class="description short">
1604
			
1603
			
1605
<p>Transform a file name into cache id and return it</p>
1604
<p>Transform a file name into cache id and return it</p>
1606
 
1605
 
1607
		</div>
1606
		</div>
1608
 
1607
 
1609
		<div class="description detailed hidden">
1608
		<div class="description detailed hidden">
1610
			
1609
			
1611
<p>Transform a file name into cache id and return it</p>
1610
<p>Transform a file name into cache id and return it</p>
1612
 
1611
 
1613
 
1612
 
1614
 
1613
 
1615
				<h4>Parameters</h4>
1614
				<h4>Parameters</h4>
1616
				<div class="list"><dl>
1615
				<div class="list"><dl>
1617
					<dt><var>$nom_de_fichier</var></dt>
1616
					<dt><var>$nom_de_fichier</var></dt>
1618
					<dd><code>string</code><br>$fileName File name</dd>
1617
					<dd><code>string</code><br>$fileName File name</dd>
1619
				</dl></div>
1618
				</dl></div>
1620
 
1619
 
1621
				<h4>Returns</h4>
1620
				<h4>Returns</h4>
1622
				<div class="list">
1621
				<div class="list">
1623
					<code>string</code><br>Cache id<br>
1622
					<code>string</code><br>Cache id<br>
1624
				</div>
1623
				</div>
1625
 
1624
 
1626
 
1625
 
1627
 
1626
 
1628
 
1627
 
1629
		</div>
1628
		</div>
1630
		</div></td>
1629
		</div></td>
1631
	</tr>
1630
	</tr>
1632
	</table>
1631
	</table>
1633
 
1632
 
1634
 
1633
 
1635
 
1634
 
1636
 
1635
 
1637
 
1636
 
1638
 
1637
 
1639
 
1638
 
1640
 
1639
 
1641
 
1640
 
1642
 
1641
 
1643
 
1642
 
1644
 
1643
 
1645
	<table class="summary" id="properties">
1644
	<table class="summary" id="properties">
1646
	<caption>Properties summary</caption>
1645
	<caption>Properties summary</caption>
1647
	<tr data-order="options" id="$options">
1646
	<tr data-order="options" id="$options">
1648
		<td class="attributes"><code>
1647
		<td class="attributes"><code>
1649
			protected  
1648
			protected  
1650
			array
1649
			array
1651
		</code></td>
1650
		</code></td>
1652
 
1651
 
1653
		<td class="name">
1652
		<td class="name">
1654
				<a href="source-class-CacheFichier.html#3-62" title="Go to source code"><var>$options</var></a>
1653
				<a href="source-class-CacheFichier.html#3-62" title="Go to source code"><var>$options</var></a>
1655
		</td>
1654
		</td>
1656
		<td class="value"><code><span class="php-keyword1">array</span>(
1655
		<td class="value"><code><span class="php-keyword1">array</span>(
1657
	<span class="php-quote">'stockage_chemin'</span> =&gt; <span class="php-keyword1">null</span>,
1656
	<span class="php-quote">'stockage_chemin'</span> =&gt; <span class="php-keyword1">null</span>,
1658
	<span class="php-quote">'fichier_verrou'</span> =&gt; <span class="php-keyword1">true</span>,
1657
	<span class="php-quote">'fichier_verrou'</span> =&gt; <span class="php-keyword1">true</span>,
1659
	<span class="php-quote">'controle_lecture'</span> =&gt; <span class="php-keyword1">true</span>,
1658
	<span class="php-quote">'controle_lecture'</span> =&gt; <span class="php-keyword1">true</span>,
1660
	<span class="php-quote">'controle_lecture_type'</span> =&gt; <span class="php-quote">'crc32'</span>,
1659
	<span class="php-quote">'controle_lecture_type'</span> =&gt; <span class="php-quote">'crc32'</span>,
1661
	<span class="php-quote">'dossier_niveau'</span> =&gt; <span class="php-num">0</span>,
1660
	<span class="php-quote">'dossier_niveau'</span> =&gt; <span class="php-num">0</span>,
1662
	<span class="php-quote">'dossier_umask'</span> =&gt; <span class="php-num">0700</span>,
1661
	<span class="php-quote">'dossier_umask'</span> =&gt; <span class="php-num">0700</span>,
1663
	<span class="php-quote">'fichier_prefixe'</span> =&gt; <span class="php-quote">'tbf'</span>,
1662
	<span class="php-quote">'fichier_prefixe'</span> =&gt; <span class="php-quote">'tbf'</span>,
1664
	<span class="php-quote">'fichier_umask'</span> =&gt; <span class="php-num">0600</span>,
1663
	<span class="php-quote">'fichier_umask'</span> =&gt; <span class="php-num">0600</span>,
1665
	<span class="php-quote">'metadonnees_max_taille'</span> =&gt; <span class="php-num">100</span>
1664
	<span class="php-quote">'metadonnees_max_taille'</span> =&gt; <span class="php-num">100</span>
1666
)</code></td>
1665
)</code></td>
1667
		<td class="description"><div>
1666
		<td class="description"><div>
1668
			<a href="#$options" class="anchor">#</a>
1667
			<a href="#$options" class="anchor">#</a>
1669
 
1668
 
1670
			<div class="description short">
1669
			<div class="description short">
1671
				
1670
				
1672
<p>Options disponibles</p>
1671
<p>Options disponibles</p>
1673
 
1672
 
1674
			</div>
1673
			</div>
1675
 
1674
 
1676
			<div class="description detailed hidden">
1675
			<div class="description detailed hidden">
1677
				
1676
				
1678
<p>Options disponibles</p>
1677
<p>Options disponibles</p>
1679
 
1678
 
1680
<h2>&gt; (string) stockage_chemin :</h2>
1679
<h2>&gt; (string) stockage_chemin :</h2>
1681
 
1680
 
1682
<p>Chemin vers le dossier devant contenir l'arborescence du cache.</p>
1681
<p>Chemin vers le dossier devant contenir l'arborescence du cache.</p>
1683
 
1682
 
1684
<h1>&gt; (boolean) fichier_verrou :</h1>
1683
<h1>&gt; (boolean) fichier_verrou :</h1>
1685
 
1684
 
1686
<ul>
1685
<ul>
1687
	<li>Active / Désactive le verrouillage des fichiers</li>
1686
	<li>Active / Désactive le verrouillage des fichiers</li>
1688
 
1687
 
1689
	<li>Peut éviter la corruption du cache dans de mauvaises circonstances, mais
1688
	<li>Peut éviter la corruption du cache dans de mauvaises circonstances, mais
1690
	cela ne fonctionne pas sur des serveur</li>
1689
	cela ne fonctionne pas sur des serveur</li>
1691
</ul>
1690
</ul>
1692
 
1691
 
1693
<p>multithread et sur les systèmes de fichiers NFS par exemple.</p>
1692
<p>multithread et sur les systèmes de fichiers NFS par exemple.</p>
1694
 
1693
 
1695
<h1>&gt; (boolean) controle_lecture :</h1>
1694
<h1>&gt; (boolean) controle_lecture :</h1>
1696
 
1695
 
1697
<ul>
1696
<ul>
1698
	<li>Activer / désactiver le contrôle de lecture</li>
1697
	<li>Activer / désactiver le contrôle de lecture</li>
1699
 
1698
 
1700
	<li>S'il est activé, une clé de contrôle est ajoutée dans le fichier de
1699
	<li>S'il est activé, une clé de contrôle est ajoutée dans le fichier de
1701
	cache et cette clé est comparée avec celle calculée</li>
1700
	cache et cette clé est comparée avec celle calculée</li>
1702
</ul>
1701
</ul>
1703
 
1702
 
1704
<p>après la lecture.</p>
1703
<p>après la lecture.</p>
1705
 
1704
 
1706
<h1>&gt; (string) controle_lecture_type :</h1>
1705
<h1>&gt; (string) controle_lecture_type :</h1>
1707
 
1706
 
1708
<p>Type de contrôle de lecture (seulement si le contrôle de lecture est
1707
<p>Type de contrôle de lecture (seulement si le contrôle de lecture est
1709
activé). Les valeurs disponibles sont:</p>
1708
activé). Les valeurs disponibles sont:</p>
1710
 
1709
 
1711
<ul>
1710
<ul>
1712
	<li>«md5» pour un contrôle md5 (le meilleur mais le plus lent)</li>
1711
	<li>«md5» pour un contrôle md5 (le meilleur mais le plus lent)</li>
1713
 
1712
 
1714
	<li>«crc32» pour un contrôle de hachage crc32 (un peu moins sécurisé, mais
1713
	<li>«crc32» pour un contrôle de hachage crc32 (un peu moins sécurisé, mais
1715
	plus rapide, un meilleur choix)</li>
1714
	plus rapide, un meilleur choix)</li>
1716
 
1715
 
1717
	<li>«adler32» pour un contrôle de hachage adler32 (excellent choix aussi,
1716
	<li>«adler32» pour un contrôle de hachage adler32 (excellent choix aussi,
1718
	plus rapide que crc32)</li>
1717
	plus rapide que crc32)</li>
1719
 
1718
 
1720
	<li>«strlen» pour un test de longueur uniquement (le plus rapide)</li>
1719
	<li>«strlen» pour un test de longueur uniquement (le plus rapide)</li>
1721
</ul>
1720
</ul>
1722
 
1721
 
1723
<h1>&gt; (int) dossier_niveau :</h1>
1722
<h1>&gt; (int) dossier_niveau :</h1>
1724
 
1723
 
1725
<ul>
1724
<ul>
1726
	<li>Permet de réglez le nombre de niveau de sous-dossier que contiendra
1725
	<li>Permet de réglez le nombre de niveau de sous-dossier que contiendra
1727
	l'arborescence des dossiers du cache.</li>
1726
	l'arborescence des dossiers du cache.</li>
1728
</ul>
1727
</ul>
1729
 
1728
 
1730
<p>0 signifie "pas de sous-dossier pour le cache", 1 signifie "un niveau de
1729
<p>0 signifie "pas de sous-dossier pour le cache", 1 signifie "un niveau de
1731
sous-dossier", 2 signifie "deux niveaux" ... Cette option peut accélérer le
1730
sous-dossier", 2 signifie "deux niveaux" ... Cette option peut accélérer le
1732
cache seulement lorsque vous avez plusieurs centaines de fichiers de cache.
1731
cache seulement lorsque vous avez plusieurs centaines de fichiers de cache.
1733
Seuls des tests spécifiques peuvent vous aider à choisir la meilleure valeur
1732
Seuls des tests spécifiques peuvent vous aider à choisir la meilleure valeur
1734
possible pour vous. 1 ou 2 peut être est un bon début.</p>
1733
possible pour vous. 1 ou 2 peut être est un bon début.</p>
1735
 
1734
 
1736
<h1>&gt; (int) dossier_umask :</h1>
1735
<h1>&gt; (int) dossier_umask :</h1>
1737
 
1736
 
1738
<ul>
1737
<ul>
1739
	<li>Umask pour les sous-dossiers de l'arborescence du cache.</li>
1738
	<li>Umask pour les sous-dossiers de l'arborescence du cache.</li>
1740
</ul>
1739
</ul>
1741
 
1740
 
1742
<h1>&gt; (string) fichier_prefixe :</h1>
1741
<h1>&gt; (string) fichier_prefixe :</h1>
1743
 
1742
 
1744
<ul>
1743
<ul>
1745
	<li>préfixe pour les fichiers du cache</li>
1744
	<li>préfixe pour les fichiers du cache</li>
1746
 
1745
 
1747
	<li>ATTENTION : faite vraiment attention avec cette option, car une valeur trop
1746
	<li>ATTENTION : faite vraiment attention avec cette option, car une valeur trop
1748
	générique dans le dossier cache du système</li>
1747
	générique dans le dossier cache du système</li>
1749
</ul>
1748
</ul>
1750
 
1749
 
1751
<p>(comme /tmp) peut provoquer des catastrophes lors du nettoyage du cache.</p>
1750
<p>(comme /tmp) peut provoquer des catastrophes lors du nettoyage du cache.</p>
1752
 
1751
 
1753
<h1>&gt; (int) fichier_umask :</h1>
1752
<h1>&gt; (int) fichier_umask :</h1>
1754
 
1753
 
1755
<ul>
1754
<ul>
1756
	<li>Umask pour les fichiers de cache</li>
1755
	<li>Umask pour les fichiers de cache</li>
1757
</ul>
1756
</ul>
1758
 
1757
 
1759
<h1>&gt; (int) metadonnees_max_taille :</h1>
1758
<h1>&gt; (int) metadonnees_max_taille :</h1>
1760
 
1759
 
1761
<ul>
1760
<ul>
1762
	<li>taille maximum pour le tableau de métadonnées du cache (ne changer pas
1761
	<li>taille maximum pour le tableau de métadonnées du cache (ne changer pas
1763
	cette valeur sauf si vous savez ce que vous faite)</li>
1762
	cette valeur sauf si vous savez ce que vous faite)</li>
1764
</ul>
1763
</ul>
1765
 
1764
 
1766
 
1765
 
1767
			</div>
1766
			</div>
1768
		</div></td>
1767
		</div></td>
1769
	</tr>
1768
	</tr>
1770
	<tr data-order="metadonnees" id="$metadonnees">
1769
	<tr data-order="metadonnees" id="$metadonnees">
1771
		<td class="attributes"><code>
1770
		<td class="attributes"><code>
1772
			protected  
1771
			protected  
1773
			array
1772
			array
1774
		</code></td>
1773
		</code></td>
1775
 
1774
 
1776
		<td class="name">
1775
		<td class="name">
1777
				<a href="source-class-CacheFichier.html#64-69" title="Go to source code"><var>$metadonnees</var></a>
1776
				<a href="source-class-CacheFichier.html#64-69" title="Go to source code"><var>$metadonnees</var></a>
1778
		</td>
1777
		</td>
1779
		<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
1778
		<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
1780
		<td class="description"><div>
1779
		<td class="description"><div>
1781
			<a href="#$metadonnees" class="anchor">#</a>
1780
			<a href="#$metadonnees" class="anchor">#</a>
1782
 
1781
 
1783
			<div class="description short">
1782
			<div class="description short">
1784
				
1783
				
1785
<p>Array of metadatas (each item is an associative array)</p>
1784
<p>Array of metadatas (each item is an associative array)</p>
1786
 
1785
 
1787
			</div>
1786
			</div>
1788
 
1787
 
1789
			<div class="description detailed hidden">
1788
			<div class="description detailed hidden">
1790
				
1789
				
1791
<p>Array of metadatas (each item is an associative array)</p>
1790
<p>Array of metadatas (each item is an associative array)</p>
1792
 
1791
 
1793
 
1792
 
1794
			</div>
1793
			</div>
1795
		</div></td>
1794
		</div></td>
1796
	</tr>
1795
	</tr>
1797
	</table>
1796
	</table>
1798
 
1797
 
1799
 
1798
 
1800
 
1799
 
1801
 
1800
 
1802
 
1801
 
1803
 
1802
 
1804
</div>
1803
</div>
1805
 
1804
 
1806
	<div id="footer">
1805
	<div id="footer">
1807
		TBFramework - v0.4 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
1806
		 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
1808
	</div>
1807
	</div>
1809
</div>
1808
</div>
1810
</div>
1809
</div>
1811
</body>
1810
</body>
1812
</html>
1811
</html>