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 Fichier</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 Fichier</h2>
89
 
90
<a name="sec-description"></a>
91
<div class="info-box">
92
	<div class="info-box-title">Description</div>
93
	<div class="nav-bar">
94
					<span class="disabled">Description</span> |
95
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
96
 
97
					</div>
98
	<div class="info-box-body">
99
        		<!-- ========== Info from phpDoc block ========= -->
100
<p class="short-description">Classe fournissant des méthodes statiques de manipulation des fichiers.</p>
101
	<ul class="tags">
102
				<li><span class="field">author:</span> Jean-Pascal MILCENT &lt;<a href="mailto:jpm@tela-botanica.org">jpm@tela-botanica.org</a>&gt;</li>
300 jpm 103
				<li><span class="field">version:</span> $Id: Fichier.php 299 2011-01-18 14:03:46Z jpm $</li>
297 jpm 104
				<li><span class="field">copyright:</span> Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)</li>
105
				<li><span class="field">link:</span> /doc/framework/</li>
106
				<li><span class="field">license:</span> <a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL-v2</a></li>
107
				<li><span class="field">license:</span> <a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL-v3</a></li>
108
			</ul>
109
		<p class="notes">
110
			Located in <a class="field" href="_utilitaires---Fichier.php.html">/utilitaires/Fichier.php</a> (line <span class="field"><a href="../__filesource/fsource_Utilitaire__utilitairesFichier.php.html#a15">15</a></span>)
111
		</p>
112
 
113
 
114
		<pre></pre>
115
 
116
			</div>
117
</div>
118
 
119
 
120
 
121
 
122
	<a name="sec-method-summary"></a>
123
	<div class="info-box">
124
		<div class="info-box-title">Method Summary</span></div>
125
		<div class="nav-bar">
126
			<a href="#sec-description">Description</a> |
127
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
128
		</div>
129
		<div class="info-box-body">
130
			<div class="method-summary">
131
 
132
				<div class="method-definition">
133
					static 						<span class="method-result">string</span>
134
										<a href="#convertirTaille" title="details" class="method-name">convertirTaille</a>
135
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$taille</span>)
136
									</div>
137
 
138
				<div class="method-definition">
139
					static 						<span class="method-result">string</span>
140
										<a href="#creerFichier" title="details" class="method-name">creerFichier</a>
141
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$fichier</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$contenu</span>)
142
									</div>
143
 
144
				<div class="method-definition">
145
					static 						<span class="method-result">string</span>
146
										<a href="#creerFichierGzip" title="details" class="method-name">creerFichierGzip</a>
147
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$fichier</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$contenu</span>)
148
									</div>
149
 
150
				<div class="method-definition">
151
					static 						<span class="method-result">boolean</span>
152
										<a href="#etreAccessibleEnLectureEtEcriture" title="details" class="method-name">etreAccessibleEnLectureEtEcriture</a>
153
											(<span class="var-type">$ressource</span>&nbsp;<span class="var-name">$ressource</span>)
154
									</div>
155
 
156
				<div class="method-definition">
157
					static 						<span class="method-result">string|false</span>
158
										<a href="#getDossierTmp" title="details" class="method-name">getDossierTmp</a>
159
										()
160
									</div>
161
 
162
				<div class="method-definition">
163
					static 						<span class="method-result">void</span>
164
										<a href="#supprimerDossier" title="details" class="method-name">supprimerDossier</a>
165
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$dossier</span>)
166
									</div>
167
																																																															</div>
168
		</div>
169
	</div>
170
 
171
 
172
	<a name="sec-methods"></a>
173
	<div class="info-box">
174
		<div class="info-box-title">Methods</div>
175
		<div class="nav-bar">
176
			<a href="#sec-description">Description</a> |
177
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
178
 
179
		</div>
180
		<div class="info-box-body">
181
			<A NAME='method_detail'></A>
182
<a name="methodconvertirTaille" id="convertirTaille"><!-- --></a>
183
<div class="oddrow">
184
 
185
	<div class="method-header">
186
		<span class="method-title">static convertirTaille</span> (line <span class="line-number"><a href="../__filesource/fsource_Utilitaire__utilitairesFichier.php.html#a116">116</a></span>)
187
	</div>
188
 
189
	<!-- ========== Info from phpDoc block ========= -->
190
<p class="short-description">Convertion d'un nombre d'octet en kB, MB, GB.</p>
191
	<ul class="tags">
192
				<li><span class="field">return:</span> la chaine représentant la taille en octets.</li>
193
				<li><span class="field">link:</span> <a href="http://forum.webmaster-rank.info/developpement-site/code-taille-memoire-d-une-variable-en-php-t1344.html">http://forum.webmaster-rank.info/developpement-site/code-taille-memoire-d-une-variable-en-php-t1344.html</a></li>
194
				<li><span class="field">access:</span> public</li>
195
			</ul>
196
 
197
	<div class="method-signature">
198
		static <span class="method-result">string</span>
199
		<span class="method-name">
200
			convertirTaille
201
		</span>
202
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$taille</span>)
203
			</div>
204
 
205
			<ul class="parameters">
206
					<li>
207
				<span class="var-type">integer</span>
208
				<span class="var-name">$taille</span><span class="var-description">: la taille en octet à convertir</span>			</li>
209
				</ul>
210
 
211
 
212
	</div>
213
<a name="methodcreerFichier" id="creerFichier"><!-- --></a>
214
<div class="evenrow">
215
 
216
	<div class="method-header">
217
		<span class="method-title">static creerFichier</span> (line <span class="line-number"><a href="../__filesource/fsource_Utilitaire__utilitairesFichier.php.html#a23">23</a></span>)
218
	</div>
219
 
220
	<!-- ========== Info from phpDoc block ========= -->
221
<p class="short-description">Créer et stocke du contenu dans un fichier.</p>
222
	<ul class="tags">
223
				<li><span class="field">return:</span> true en cas de succès sinon false.</li>
224
				<li><span class="field">access:</span> public</li>
225
			</ul>
226
 
227
	<div class="method-signature">
228
		static <span class="method-result">string</span>
229
		<span class="method-name">
230
			creerFichier
231
		</span>
232
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$fichier</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$contenu</span>)
233
			</div>
234
 
235
			<ul class="parameters">
236
					<li>
237
				<span class="var-type">string</span>
238
				<span class="var-name">$fichier</span><span class="var-description">: le chemin et le nom du fichier.</span>			</li>
239
					<li>
240
				<span class="var-type">string</span>
241
				<span class="var-name">$contenu</span><span class="var-description">: le contenu à stocker dans le fichier.</span>			</li>
242
				</ul>
243
 
244
 
245
	</div>
246
<a name="methodcreerFichierGzip" id="creerFichierGzip"><!-- --></a>
247
<div class="oddrow">
248
 
249
	<div class="method-header">
250
		<span class="method-title">static creerFichierGzip</span> (line <span class="line-number"><a href="../__filesource/fsource_Utilitaire__utilitairesFichier.php.html#a55">55</a></span>)
251
	</div>
252
 
253
	<!-- ========== Info from phpDoc block ========= -->
254
<p class="short-description">Créer et stocke du contenu dans un fichier compressé en Gzip.</p>
255
	<ul class="tags">
256
				<li><span class="field">return:</span> true en cas de succès sinon false.</li>
257
				<li><span class="field">access:</span> public</li>
258
			</ul>
259
 
260
	<div class="method-signature">
261
		static <span class="method-result">string</span>
262
		<span class="method-name">
263
			creerFichierGzip
264
		</span>
265
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$fichier</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$contenu</span>)
266
			</div>
267
 
268
			<ul class="parameters">
269
					<li>
270
				<span class="var-type">string</span>
271
				<span class="var-name">$fichier</span><span class="var-description">: le chemin et le nom du fichier.</span>			</li>
272
					<li>
273
				<span class="var-type">string</span>
274
				<span class="var-name">$contenu</span><span class="var-description">: le contenu à stocker dans le fichier.</span>			</li>
275
				</ul>
276
 
277
 
278
	</div>
279
<a name="methodetreAccessibleEnLectureEtEcriture" id="etreAccessibleEnLectureEtEcriture"><!-- --></a>
280
<div class="evenrow">
281
 
282
	<div class="method-header">
283
		<span class="method-title">static etreAccessibleEnLectureEtEcriture</span> (line <span class="line-number"><a href="../__filesource/fsource_Utilitaire__utilitairesFichier.php.html#a194">194</a></span>)
284
	</div>
285
 
286
	<!-- ========== Info from phpDoc block ========= -->
287
<p class="short-description">Vérifie si le fichier ou dossier est accessible en lecture et écriture.</p>
288
	<ul class="tags">
289
				<li><span class="field">return:</span> true si la ressource est accessible en lecture et écriture.</li>
290
				<li><span class="field">access:</span> protected</li>
291
			</ul>
292
 
293
	<div class="method-signature">
294
		static <span class="method-result">boolean</span>
295
		<span class="method-name">
296
			etreAccessibleEnLectureEtEcriture
297
		</span>
298
					(<span class="var-type">$ressource</span>&nbsp;<span class="var-name">$ressource</span>)
299
			</div>
300
 
301
			<ul class="parameters">
302
					<li>
303
				<span class="var-type">$ressource</span>
304
				<span class="var-name">$ressource</span><span class="var-description">: chemin vers le dossier ou fichier à tester</span>			</li>
305
				</ul>
306
 
307
 
308
	</div>
309
<a name="methodgetDossierTmp" id="getDossierTmp"><!-- --></a>
310
<div class="oddrow">
311
 
312
	<div class="method-header">
313
		<span class="method-title">static getDossierTmp</span> (line <span class="line-number"><a href="../__filesource/fsource_Utilitaire__utilitairesFichier.php.html#a128">128</a></span>)
314
	</div>
315
 
316
	<!-- ========== Info from phpDoc block ========= -->
317
<p class="short-description">Détermine le dossier système temporaire et détecte si nous y avons accès en lecture et écriture.</p>
318
<p class="description"><p>Inspiré de Zend_File_Transfer_Adapter_Abstract &amp; Zend_Cache</p></p>
319
	<ul class="tags">
320
				<li><span class="field">return:</span> le chemine vers le dossier temporaire ou false en cas d'échec.</li>
321
				<li><span class="field">access:</span> public</li>
322
			</ul>
323
 
324
	<div class="method-signature">
325
		static <span class="method-result">string|false</span>
326
		<span class="method-name">
327
			getDossierTmp
328
		</span>
329
				()
330
			</div>
331
 
332
 
333
 
334
	</div>
335
<a name="methodsupprimerDossier" id="supprimerDossier"><!-- --></a>
336
<div class="evenrow">
337
 
338
	<div class="method-header">
339
		<span class="method-title">static supprimerDossier</span> (line <span class="line-number"><a href="../__filesource/fsource_Utilitaire__utilitairesFichier.php.html#a91">91</a></span>)
340
	</div>
341
 
342
	<!-- ========== Info from phpDoc block ========= -->
343
<p class="short-description">Supprime récursivement un dossier et tout son contenu.</p>
344
	<ul class="tags">
345
				<li><span class="field">access:</span> public</li>
346
			</ul>
347
 
348
	<div class="method-signature">
349
		static <span class="method-result">void</span>
350
		<span class="method-name">
351
			supprimerDossier
352
		</span>
353
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$dossier</span>)
354
			</div>
355
 
356
			<ul class="parameters">
357
					<li>
358
				<span class="var-type">string</span>
359
				<span class="var-name">$dossier</span><span class="var-description">: le chemin vers le dossier à supprimer.</span>			</li>
360
				</ul>
361
 
362
 
363
	</div>
364
 
365
		</div>
366
	</div>
367
 
368
 
369
	<p class="notes" id="credit">
302 jpm 370
		Documentation generated on Tue, 18 Jan 2011 15:30:49 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
297 jpm 371
	</p>
372
	</div></body>
373
</html>