Subversion Repositories Applications.framework

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
297 jpm 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
  <html xmlns="http://www.w3.org/1999/xhtml">
3
		<head>
4
			<!-- template designed by Marco Von Ballmoos  -->
5
			<title>Docs For Class CacheSqlite</title>
6
			<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
7
			<link rel="stylesheet" href="../media/stylesheet.css" />
8
						<script src="../media/lib/classTree.js"></script>
9
												<script language="javascript" type="text/javascript">
10
				var imgPlus = new Image();
11
				var imgMinus = new Image();
12
				imgPlus.src = "../media/images/plus.png";
13
				imgMinus.src = "../media/images/minus.png";
14
 
15
				function showNode(Node){
16
							switch(navigator.family){
17
								case 'nn4':
18
									// Nav 4.x code fork...
19
							var oTable = document.layers["span" + Node];
20
							var oImg = document.layers["img" + Node];
21
									break;
22
								case 'ie4':
23
									// IE 4/5 code fork...
24
							var oTable = document.all["span" + Node];
25
							var oImg = document.all["img" + Node];
26
									break;
27
								case 'gecko':
28
									// Standards Compliant code fork...
29
							var oTable = document.getElementById("span" + Node);
30
							var oImg = document.getElementById("img" + Node);
31
									break;
32
							}
33
					oImg.src = imgMinus.src;
34
					oTable.style.display = "block";
35
				}
36
 
37
				function hideNode(Node){
38
							switch(navigator.family){
39
								case 'nn4':
40
									// Nav 4.x code fork...
41
							var oTable = document.layers["span" + Node];
42
							var oImg = document.layers["img" + Node];
43
									break;
44
								case 'ie4':
45
									// IE 4/5 code fork...
46
							var oTable = document.all["span" + Node];
47
							var oImg = document.all["img" + Node];
48
									break;
49
								case 'gecko':
50
									// Standards Compliant code fork...
51
							var oTable = document.getElementById("span" + Node);
52
							var oImg = document.getElementById("img" + Node);
53
									break;
54
							}
55
					oImg.src = imgPlus.src;
56
					oTable.style.display = "none";
57
				}
58
 
59
				function nodeIsVisible(Node){
60
							switch(navigator.family){
61
								case 'nn4':
62
									// Nav 4.x code fork...
63
							var oTable = document.layers["span" + Node];
64
									break;
65
								case 'ie4':
66
									// IE 4/5 code fork...
67
							var oTable = document.all["span" + Node];
68
									break;
69
								case 'gecko':
70
									// Standards Compliant code fork...
71
							var oTable = document.getElementById("span" + Node);
72
									break;
73
							}
74
					return (oTable && oTable.style.display == "block");
75
				}
76
 
77
				function toggleNodeVisibility(Node){
78
					if (nodeIsVisible(Node)){
79
						hideNode(Node);
80
					}else{
81
						showNode(Node);
82
					}
83
				}
84
			</script>
85
					</head>
86
		<body>
87
			<div class="page-body">
88
<h2 class="class-name">Class CacheSqlite</h2>
89
 
90
<a name="sec-description"></a>
91
<div class="info-box">
92
	<div class="info-box-title">Description</div>
93
	<div class="nav-bar">
94
					<span class="disabled">Description</span> |
95
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
96
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
97
 
98
					</div>
99
	<div class="info-box-body">
100
        		<!-- ========== Info from phpDoc block ========= -->
101
		<p class="notes">
102
			Located in <a class="field" href="_CacheSqlite.php.html">/CacheSqlite.php</a> (line <span class="field"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a2">2</a></span>)
103
		</p>
104
 
105
 
106
		<pre></pre>
107
 
108
			</div>
109
</div>
110
 
111
 
112
 
113
	<a name="sec-var-summary"></a>
114
	<div class="info-box">
115
		<div class="info-box-title">Variable Summary</span></div>
116
		<div class="nav-bar">
117
			<a href="#sec-description">Description</a> |
118
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
119
							|
120
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
121
 
122
								</div>
123
		<div class="info-box-body">
124
			<div class="var-summary">
125
																								<div class="var-title">
126
					<span class="var-type">array</span>
127
					<a href="#$options" title="details" class="var-name">$options</a>
128
				</div>
129
											</div>
130
		</div>
131
	</div>
132
 
133
	<a name="sec-method-summary"></a>
134
	<div class="info-box">
135
		<div class="info-box-title">Method Summary</span></div>
136
		<div class="nav-bar">
137
			<a href="#sec-description">Description</a> |
138
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
139
 
140
				|
141
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
142
		</div>
143
		<div class="info-box-body">
144
			<div class="method-summary">
145
 
146
				<div class="method-definition">
147
											<span class="method-result">void</span>
148
										<a href="#__construct" title="details" class="method-name">__construct</a>
149
											([<span class="var-type"></span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">array()</span>], <span class="var-type"><a href="../Framework/Cache.html">Cache</a></span>&nbsp;<span class="var-name">$cache</span>)
150
									</div>
151
 
152
				<div class="method-definition">
153
											<span class="method-result">void</span>
154
										<a href="#__destruct" title="details" class="method-name">__destruct</a>
155
										()
156
									</div>
157
 
158
				<div class="method-definition">
159
											<span class="method-result">boolean</span>
160
										<a href="#ajouterSupplementDureeDeVie" title="details" class="method-name">ajouterSupplementDureeDeVie</a>
161
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$supplement_duree_de_vie</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$extraLifetime</span>)
162
									</div>
163
 
164
				<div class="method-definition">
165
											<span class="method-result">string|false</span>
166
										<a href="#charger" title="details" class="method-name">charger</a>
167
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$ne_pas_tester_validiter_du_cache</span> = <span class="var-default">false</span>], <span class="var-type">boolean</span>&nbsp;<span class="var-name">$doNotTestCacheValidity</span>)
168
									</div>
169
 
170
				<div class="method-definition">
171
											<span class="method-result">array</span>
172
										<a href="#getIds" title="details" class="method-name">getIds</a>
173
										()
174
									</div>
175
 
176
				<div class="method-definition">
177
											<span class="method-result">array</span>
178
										<a href="#getIdsAvecLesTags" title="details" class="method-name">getIdsAvecLesTags</a>
179
											([<span class="var-type">array</span>&nbsp;<span class="var-name">$tags</span> = <span class="var-default">array()</span>])
180
									</div>
181
 
182
				<div class="method-definition">
183
											<span class="method-result">array</span>
184
										<a href="#getIdsAvecUnTag" title="details" class="method-name">getIdsAvecUnTag</a>
185
											([<span class="var-type">array</span>&nbsp;<span class="var-name">$tags</span> = <span class="var-default">array()</span>])
186
									</div>
187
 
188
				<div class="method-definition">
189
											<span class="method-result">array</span>
190
										<a href="#getIdsSansLesTags" title="details" class="method-name">getIdsSansLesTags</a>
191
											([<span class="var-type">array</span>&nbsp;<span class="var-name">$tags</span> = <span class="var-default">array()</span>])
192
									</div>
193
 
194
				<div class="method-definition">
195
											<span class="method-result">array</span>
196
										<a href="#getMetadonnees" title="details" class="method-name">getMetadonnees</a>
197
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>)
198
									</div>
199
 
200
				<div class="method-definition">
201
											<span class="method-result">int</span>
202
										<a href="#getPourcentageRemplissage" title="details" class="method-name">getPourcentageRemplissage</a>
203
										()
204
									</div>
205
 
206
				<div class="method-definition">
207
											<span class="method-result">array</span>
208
										<a href="#getTags" title="details" class="method-name">getTags</a>
209
										()
210
									</div>
211
 
212
				<div class="method-definition">
213
											<span class="method-result">boolean</span>
214
										<a href="#nettoyer" title="details" class="method-name">nettoyer</a>
215
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$mode</span> = <span class="var-default">Cache::NETTOYAGE_MODE_TOUS</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$tags</span> = <span class="var-default">array()</span>])
216
									</div>
217
 
218
				<div class="method-definition">
219
											<span class="method-result">boolean</span>
220
										<a href="#sauver" title="details" class="method-name">sauver</a>
221
											(<span class="var-type"></span>&nbsp;<span class="var-name">$donnees</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$tags</span> = <span class="var-default">array()</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$duree_vie_specifique</span> = <span class="var-default">false</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$data</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$specificLifetime</span>)
222
									</div>
223
 
224
				<div class="method-definition">
225
											<span class="method-result">void</span>
226
										<a href="#setEmplacement" title="details" class="method-name">setEmplacement</a>
227
											(<span class="var-type"></span>&nbsp;<span class="var-name">$emplacement</span>)
228
									</div>
229
 
230
				<div class="method-definition">
231
											<span class="method-result">boolean</span>
232
										<a href="#supprimer" title="details" class="method-name">supprimer</a>
233
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>)
234
									</div>
235
 
236
				<div class="method-definition">
237
											<span class="method-result">mixed|false</span>
238
										<a href="#tester" title="details" class="method-name">tester</a>
239
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>)
240
									</div>
241
											</div>
242
		</div>
243
	</div>
244
 
245
	<a name="sec-vars"></a>
246
	<div class="info-box">
247
		<div class="info-box-title">Variables</div>
248
		<div class="nav-bar">
249
			<a href="#sec-description">Description</a> |
250
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
251
 
252
 
253
										|
254
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
255
 
256
					</div>
257
		<div class="info-box-body">
258
 
259
<a name="var$options" id="$options"><!-- --></A>
260
<div class="evenrow">
261
 
262
	<div class="var-header">
263
		<span class="var-title">
264
			<span class="var-type">array</span>
265
			<span class="var-name">$options</span>
266
			 = <span class="var-default">array(<br />		'stockage_chemin' =&gt; null,<br />		'defragmentation_auto' =&gt; 10<br />	)</span>			(line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a20">20</a></span>)
267
		</span>
268
	</div>
269
 
270
	<!-- ========== Info from phpDoc block ========= -->
271
<p class="short-description">Options disponibles :</p>
272
<p class="description"><p>====&gt; (string) stockage_chemin :  Chemin vers le fichier contenant la base SQLite.</p><p>====&gt; (int) defragmentation_auto : <ul><li>Désactive / Régler le processus de défragmentation automatique</li><li>Le processus de défragmentation automatiques réduit la taille du fichier contenant la base de données
273
   quand un ajout ou une suppression de cache est réalisée :</li></ul>	 0			   =&gt; pas de défragmentation automatique 	 1			   =&gt; défragmentation automatique systématique 	 x (integer) &gt; 1 =&gt; défragmentation automatique toutes les 1 fois (au hasard) sur x ajout ou suppression de cache</p></p>
274
	<ul class="tags">
275
				<li><span class="field">var:</span> options disponibles</li>
276
				<li><span class="field">access:</span> protected</li>
277
			</ul>
278
 
279
 
280
 
281
 
282
 
283
</div>
284
 
285
		</div>
286
	</div>
287
 
288
	<a name="sec-methods"></a>
289
	<div class="info-box">
290
		<div class="info-box-title">Methods</div>
291
		<div class="nav-bar">
292
			<a href="#sec-description">Description</a> |
293
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
294
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
295
 
296
		</div>
297
		<div class="info-box-body">
298
			<A NAME='method_detail'></A>
299
<a name="method__construct" id="__construct"><!-- --></a>
300
<div class="oddrow">
301
 
302
	<div class="method-header">
303
		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a48">48</a></span>)
304
	</div>
305
 
306
	<!-- ========== Info from phpDoc block ========= -->
307
<p class="short-description">Constructor</p>
308
	<ul class="tags">
309
				<li><span class="field">throws:</span> Zend_cache_Exception</li>
310
				<li><span class="field">access:</span> public</li>
311
			</ul>
312
 
313
	<div class="method-signature">
314
		<span class="method-result">void</span>
315
		<span class="method-name">
316
			__construct
317
		</span>
318
					([<span class="var-type"></span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">array()</span>], <span class="var-type"><a href="../Framework/Cache.html">Cache</a></span>&nbsp;<span class="var-name">$cache</span>)
319
			</div>
320
 
321
			<ul class="parameters">
322
					<li>
323
				<span class="var-type">array</span>
324
				<span class="var-name">$options</span><span class="var-description">: Associative array of options</span>			</li>
325
					<li>
326
				<span class="var-type"><a href="../Framework/Cache.html">Cache</a></span>
327
				<span class="var-name">$cache</span>			</li>
328
				</ul>
329
 
330
 
331
	</div>
332
<a name="method__destruct" id="__destruct"><!-- --></a>
333
<div class="evenrow">
334
 
335
	<div class="method-header">
336
		<span class="method-title">Destructor __destruct</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a72">72</a></span>)
337
	</div>
338
 
339
	<!-- ========== Info from phpDoc block ========= -->
340
<p class="short-description">Destructor</p>
341
	<ul class="tags">
342
				<li><span class="field">access:</span> public</li>
343
			</ul>
344
 
345
	<div class="method-signature">
346
		<span class="method-result">void</span>
347
		<span class="method-name">
348
			__destruct
349
		</span>
350
				()
351
			</div>
352
 
353
 
354
 
355
	</div>
356
<a name="methodajouterSupplementDureeDeVie" id="ajouterSupplementDureeDeVie"><!-- --></a>
357
<div class="oddrow">
358
 
359
	<div class="method-header">
360
		<span class="method-title">ajouterSupplementDureeDeVie</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a403">403</a></span>)
361
	</div>
362
 
363
	<!-- ========== Info from phpDoc block ========= -->
364
<p class="short-description">Give (if possible) an extra lifetime to the given cache id</p>
365
	<ul class="tags">
366
				<li><span class="field">return:</span> true if ok</li>
367
				<li><span class="field">access:</span> public</li>
368
			</ul>
369
 
370
	<div class="method-signature">
371
		<span class="method-result">boolean</span>
372
		<span class="method-name">
373
			ajouterSupplementDureeDeVie
374
		</span>
375
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$supplement_duree_de_vie</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$extraLifetime</span>)
376
			</div>
377
 
378
			<ul class="parameters">
379
					<li>
380
				<span class="var-type">string</span>
381
				<span class="var-name">$id</span><span class="var-description">: cache id</span>			</li>
382
					<li>
383
				<span class="var-type">int</span>
384
				<span class="var-name">$extraLifetime</span>			</li>
385
					<li>
386
				<span class="var-type"></span>
387
				<span class="var-name">$supplement_duree_de_vie</span>			</li>
388
				</ul>
389
 
390
 
391
	</div>
392
<a name="methodcharger" id="charger"><!-- --></a>
393
<div class="evenrow">
394
 
395
	<div class="method-header">
396
		<span class="method-title">charger</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a104">104</a></span>)
397
	</div>
398
 
399
	<!-- ========== Info from phpDoc block ========= -->
400
<p class="short-description">Test if a cache is available for the given id and (if yes) return it (false else)</p>
401
	<ul class="tags">
402
				<li><span class="field">return:</span> Cached datas</li>
403
				<li><span class="field">access:</span> public</li>
404
			</ul>
405
 
406
	<div class="method-signature">
407
		<span class="method-result">string|false</span>
408
		<span class="method-name">
409
			charger
410
		</span>
411
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$ne_pas_tester_validiter_du_cache</span> = <span class="var-default">false</span>], <span class="var-type">boolean</span>&nbsp;<span class="var-name">$doNotTestCacheValidity</span>)
412
			</div>
413
 
414
			<ul class="parameters">
415
					<li>
416
				<span class="var-type">string</span>
417
				<span class="var-name">$id</span><span class="var-description">: Cache id</span>			</li>
418
					<li>
419
				<span class="var-type">boolean</span>
420
				<span class="var-name">$doNotTestCacheValidity</span><span class="var-description">: If set to true, the cache validity won't be tested</span>			</li>
421
					<li>
422
				<span class="var-type"></span>
423
				<span class="var-name">$ne_pas_tester_validiter_du_cache</span>			</li>
424
				</ul>
425
 
426
 
427
	</div>
428
<a name="methodgetIds" id="getIds"><!-- --></a>
429
<div class="oddrow">
430
 
431
	<div class="method-header">
432
		<span class="method-title">getIds</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a209">209</a></span>)
433
	</div>
434
 
435
	<!-- ========== Info from phpDoc block ========= -->
436
<p class="short-description">Return an array of stored cache ids</p>
437
	<ul class="tags">
438
				<li><span class="field">return:</span> array of stored cache ids (string)</li>
439
				<li><span class="field">access:</span> public</li>
440
			</ul>
441
 
442
	<div class="method-signature">
443
		<span class="method-result">array</span>
444
		<span class="method-name">
445
			getIds
446
		</span>
447
				()
448
			</div>
449
 
450
 
451
 
452
	</div>
453
<a name="methodgetIdsAvecLesTags" id="getIdsAvecLesTags"><!-- --></a>
454
<div class="evenrow">
455
 
456
	<div class="method-header">
457
		<span class="method-title">getIdsAvecLesTags</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a242">242</a></span>)
458
	</div>
459
 
460
	<!-- ========== Info from phpDoc block ========= -->
461
<p class="short-description">Return an array of stored cache ids which match given tags</p>
462
<p class="description"><p>In case of multiple tags, a logical AND is made between tags</p></p>
463
	<ul class="tags">
464
				<li><span class="field">return:</span> array of matching cache ids (string)</li>
465
				<li><span class="field">access:</span> public</li>
466
			</ul>
467
 
468
	<div class="method-signature">
469
		<span class="method-result">array</span>
470
		<span class="method-name">
471
			getIdsAvecLesTags
472
		</span>
473
					([<span class="var-type">array</span>&nbsp;<span class="var-name">$tags</span> = <span class="var-default">array()</span>])
474
			</div>
475
 
476
			<ul class="parameters">
477
					<li>
478
				<span class="var-type">array</span>
479
				<span class="var-name">$tags</span><span class="var-description">: array of tags</span>			</li>
480
				</ul>
481
 
482
 
483
	</div>
484
<a name="methodgetIdsAvecUnTag" id="getIdsAvecUnTag"><!-- --></a>
485
<div class="oddrow">
486
 
487
	<div class="method-header">
488
		<span class="method-title">getIdsAvecUnTag</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a312">312</a></span>)
489
	</div>
490
 
491
	<!-- ========== Info from phpDoc block ========= -->
492
<p class="short-description">Return an array of stored cache ids which match any given tags</p>
493
<p class="description"><p>In case of multiple tags, a logical AND is made between tags</p></p>
494
	<ul class="tags">
495
				<li><span class="field">return:</span> array of any matching cache ids (string)</li>
496
				<li><span class="field">access:</span> public</li>
497
			</ul>
498
 
499
	<div class="method-signature">
500
		<span class="method-result">array</span>
501
		<span class="method-name">
502
			getIdsAvecUnTag
503
		</span>
504
					([<span class="var-type">array</span>&nbsp;<span class="var-name">$tags</span> = <span class="var-default">array()</span>])
505
			</div>
506
 
507
			<ul class="parameters">
508
					<li>
509
				<span class="var-type">array</span>
510
				<span class="var-name">$tags</span><span class="var-description">: array of tags</span>			</li>
511
				</ul>
512
 
513
 
514
	</div>
515
<a name="methodgetIdsSansLesTags" id="getIdsSansLesTags"><!-- --></a>
516
<div class="evenrow">
517
 
518
	<div class="method-header">
519
		<span class="method-title">getIdsSansLesTags</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a280">280</a></span>)
520
	</div>
521
 
522
	<!-- ========== Info from phpDoc block ========= -->
523
<p class="short-description">Return an array of stored cache ids which don't match given tags</p>
524
<p class="description"><p>In case of multiple tags, a logical OR is made between tags</p></p>
525
	<ul class="tags">
526
				<li><span class="field">return:</span> array of not matching cache ids (string)</li>
527
				<li><span class="field">access:</span> public</li>
528
			</ul>
529
 
530
	<div class="method-signature">
531
		<span class="method-result">array</span>
532
		<span class="method-name">
533
			getIdsSansLesTags
534
		</span>
535
					([<span class="var-type">array</span>&nbsp;<span class="var-name">$tags</span> = <span class="var-default">array()</span>])
536
			</div>
537
 
538
			<ul class="parameters">
539
					<li>
540
				<span class="var-type">array</span>
541
				<span class="var-name">$tags</span><span class="var-description">: array of tags</span>			</li>
542
				</ul>
543
 
544
 
545
	</div>
546
<a name="methodgetMetadonnees" id="getMetadonnees"><!-- --></a>
547
<div class="oddrow">
548
 
549
	<div class="method-header">
550
		<span class="method-title">getMetadonnees</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a373">373</a></span>)
551
	</div>
552
 
553
	<!-- ========== Info from phpDoc block ========= -->
554
<p class="short-description">Return an array of metadatas for the given cache id</p>
555
<p class="description"><p>The array must include these keys : <ul><li>expire : the expire timestamp</li><li>tags : a string array of tags</li><li>mtime : timestamp of last modification time</li></ul></p></p>
556
	<ul class="tags">
557
				<li><span class="field">return:</span> array of metadatas (false if the cache id is not found)</li>
558
				<li><span class="field">access:</span> public</li>
559
			</ul>
560
 
561
	<div class="method-signature">
562
		<span class="method-result">array</span>
563
		<span class="method-name">
564
			getMetadonnees
565
		</span>
566
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>)
567
			</div>
568
 
569
			<ul class="parameters">
570
					<li>
571
				<span class="var-type">string</span>
572
				<span class="var-name">$id</span><span class="var-description">: cache id</span>			</li>
573
				</ul>
574
 
575
 
576
	</div>
577
<a name="methodgetPourcentageRemplissage" id="getPourcentageRemplissage"><!-- --></a>
578
<div class="evenrow">
579
 
580
	<div class="method-header">
581
		<span class="method-title">getPourcentageRemplissage</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a348">348</a></span>)
582
	</div>
583
 
584
	<!-- ========== Info from phpDoc block ========= -->
585
<p class="short-description">Return the filling percentage of the backend storage</p>
586
	<ul class="tags">
587
				<li><span class="field">return:</span> integer between 0 and 100</li>
588
				<li><span class="field">throws:</span> Zend_Cache_Exception</li>
589
				<li><span class="field">access:</span> public</li>
590
			</ul>
591
 
592
	<div class="method-signature">
593
		<span class="method-result">int</span>
594
		<span class="method-name">
595
			getPourcentageRemplissage
596
		</span>
597
				()
598
			</div>
599
 
600
 
601
 
602
	</div>
603
<a name="methodgetTags" id="getTags"><!-- --></a>
604
<div class="oddrow">
605
 
606
	<div class="method-header">
607
		<span class="method-title">getTags</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a224">224</a></span>)
608
	</div>
609
 
610
	<!-- ========== Info from phpDoc block ========= -->
611
<p class="short-description">Return an array of stored tags</p>
612
	<ul class="tags">
613
				<li><span class="field">return:</span> array of stored tags (string)</li>
614
				<li><span class="field">access:</span> public</li>
615
			</ul>
616
 
617
	<div class="method-signature">
618
		<span class="method-result">array</span>
619
		<span class="method-name">
620
			getTags
621
		</span>
622
				()
623
			</div>
624
 
625
 
626
 
627
	</div>
628
<a name="methodnettoyer" id="nettoyer"><!-- --></a>
629
<div class="evenrow">
630
 
631
	<div class="method-header">
632
		<span class="method-title">nettoyer</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a197">197</a></span>)
633
	</div>
634
 
635
	<!-- ========== Info from phpDoc block ========= -->
636
<p class="short-description">Clean some cache records</p>
637
<p class="description"><p>Available modes are :  Zend_Cache::CLEANING_MODE_ALL (default)	=&gt; remove all cache entries ($tags is not used)  Zend_Cache::CLEANING_MODE_OLD			  =&gt; remove too old cache entries ($tags is not used)  Zend_Cache::CLEANING_MODE_MATCHING_TAG	 =&gt; remove cache entries matching all given tags 											   ($tags can be an array of strings or a single string)  Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG =&gt; remove cache entries not {matching one of the given tags} 											   ($tags can be an array of strings or a single string)  Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG =&gt; remove cache entries matching any given tags 											   ($tags can be an array of strings or a single string)</p></p>
638
	<ul class="tags">
639
				<li><span class="field">return:</span> True if no problem</li>
640
				<li><span class="field">access:</span> public</li>
641
			</ul>
642
 
643
	<div class="method-signature">
644
		<span class="method-result">boolean</span>
645
		<span class="method-name">
646
			nettoyer
647
		</span>
648
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$mode</span> = <span class="var-default">Cache::NETTOYAGE_MODE_TOUS</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$tags</span> = <span class="var-default">array()</span>])
649
			</div>
650
 
651
			<ul class="parameters">
652
					<li>
653
				<span class="var-type">string</span>
654
				<span class="var-name">$mode</span><span class="var-description">: Clean mode</span>			</li>
655
					<li>
656
				<span class="var-type">array</span>
657
				<span class="var-name">$tags</span><span class="var-description">: Array of tags</span>			</li>
658
				</ul>
659
 
660
 
661
	</div>
662
<a name="methodsauver" id="sauver"><!-- --></a>
663
<div class="oddrow">
664
 
665
	<div class="method-header">
666
		<span class="method-title">sauver</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a140">140</a></span>)
667
	</div>
668
 
669
	<!-- ========== Info from phpDoc block ========= -->
670
<p class="short-description">Save some string datas into a cache record</p>
671
<p class="description"><p>Note : $data is always &quot;string&quot; (serialization is done by the  core not by the backend)</p></p>
672
	<ul class="tags">
673
				<li><span class="field">return:</span> True if no problem</li>
674
				<li><span class="field">throws:</span> Zend_Cache_Exception</li>
675
				<li><span class="field">access:</span> public</li>
676
			</ul>
677
 
678
	<div class="method-signature">
679
		<span class="method-result">boolean</span>
680
		<span class="method-name">
681
			sauver
682
		</span>
683
					(<span class="var-type"></span>&nbsp;<span class="var-name">$donnees</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$tags</span> = <span class="var-default">array()</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$duree_vie_specifique</span> = <span class="var-default">false</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$data</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$specificLifetime</span>)
684
			</div>
685
 
686
			<ul class="parameters">
687
					<li>
688
				<span class="var-type">string</span>
689
				<span class="var-name">$data</span><span class="var-description">: Datas to cache</span>			</li>
690
					<li>
691
				<span class="var-type">string</span>
692
				<span class="var-name">$id</span><span class="var-description">: Cache id</span>			</li>
693
					<li>
694
				<span class="var-type">array</span>
695
				<span class="var-name">$tags</span><span class="var-description">: Array of strings, the cache record will be tagged by each string entry</span>			</li>
696
					<li>
697
				<span class="var-type">int</span>
698
				<span class="var-name">$specificLifetime</span><span class="var-description">: If != false, set a specific lifetime for this cache record (null =&gt; infinite lifetime)</span>			</li>
699
					<li>
700
				<span class="var-type"></span>
701
				<span class="var-name">$donnees</span>			</li>
702
					<li>
703
				<span class="var-type"></span>
704
				<span class="var-name">$duree_vie_specifique</span>			</li>
705
				</ul>
706
 
707
 
708
	</div>
709
<a name="methodsetEmplacement" id="setEmplacement"><!-- --></a>
710
<div class="evenrow">
711
 
712
	<div class="method-header">
713
		<span class="method-title">setEmplacement</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a88">88</a></span>)
714
	</div>
715
 
716
	<!-- ========== Info from phpDoc block ========= -->
717
	<ul class="tags">
718
				<li><span class="field">access:</span> public</li>
719
			</ul>
720
 
721
	<div class="method-signature">
722
		<span class="method-result">void</span>
723
		<span class="method-name">
724
			setEmplacement
725
		</span>
726
					(<span class="var-type"></span>&nbsp;<span class="var-name">$emplacement</span>)
727
			</div>
728
 
729
			<ul class="parameters">
730
					<li>
731
				<span class="var-type"></span>
732
				<span class="var-name">$emplacement</span>			</li>
733
				</ul>
734
 
735
 
736
	</div>
737
<a name="methodsupprimer" id="supprimer"><!-- --></a>
738
<div class="oddrow">
739
 
740
	<div class="method-header">
741
		<span class="method-title">supprimer</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a170">170</a></span>)
742
	</div>
743
 
744
	<!-- ========== Info from phpDoc block ========= -->
745
<p class="short-description">Remove a cache record</p>
746
	<ul class="tags">
747
				<li><span class="field">return:</span> True if no problem</li>
748
				<li><span class="field">access:</span> public</li>
749
			</ul>
750
 
751
	<div class="method-signature">
752
		<span class="method-result">boolean</span>
753
		<span class="method-name">
754
			supprimer
755
		</span>
756
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>)
757
			</div>
758
 
759
			<ul class="parameters">
760
					<li>
761
				<span class="var-type">string</span>
762
				<span class="var-name">$id</span><span class="var-description">: Cache id</span>			</li>
763
				</ul>
764
 
765
 
766
	</div>
767
<a name="methodtester" id="tester"><!-- --></a>
768
<div class="evenrow">
769
 
770
	<div class="method-header">
771
		<span class="method-title">tester</span> (line <span class="line-number"><a href="../__filesource/fsource_Framework__CacheSqlite.php.html#a119">119</a></span>)
772
	</div>
773
 
774
	<!-- ========== Info from phpDoc block ========= -->
775
<p class="short-description">Test if a cache is available or not (for the given id)</p>
776
	<ul class="tags">
777
				<li><span class="field">return:</span> (a cache is not available) or &quot;last modified&quot; timestamp (int) of the available cache record</li>
778
				<li><span class="field">access:</span> public</li>
779
			</ul>
780
 
781
	<div class="method-signature">
782
		<span class="method-result">mixed|false</span>
783
		<span class="method-name">
784
			tester
785
		</span>
786
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>)
787
			</div>
788
 
789
			<ul class="parameters">
790
					<li>
791
				<span class="var-type">string</span>
792
				<span class="var-name">$id</span><span class="var-description">: Cache id</span>			</li>
793
				</ul>
794
 
795
 
796
	</div>
797
 
798
		</div>
799
	</div>
800
 
801
 
802
	<p class="notes" id="credit">
302 jpm 803
		Documentation generated on Tue, 18 Jan 2011 15:30:44 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
297 jpm 804
	</p>
805
	</div></body>
806
</html>